From b65bfbd36a3cc8e4a3f2be3b717d208b4eaaf606 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 9 Jul 2007 11:21:35 +0000 Subject: [PATCH] Added Gateway6 client - IPv6 tunnels. svn path=/nixpkgs/trunk/; revision=8967 --- pkgs/os-specific/linux/gw6c/default.nix | 30 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 6 ++--- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 pkgs/os-specific/linux/gw6c/default.nix diff --git a/pkgs/os-specific/linux/gw6c/default.nix b/pkgs/os-specific/linux/gw6c/default.nix new file mode 100644 index 000000000000..ea29f5b2776e --- /dev/null +++ b/pkgs/os-specific/linux/gw6c/default.nix @@ -0,0 +1,30 @@ +{stdenv, fetchurl, nettools, openssl, procps}: +stdenv.mkDerivation { + name = "Gateway6-Client"; + + src = fetchurl { + name = "GateWay6-Client.tar.gz"; + url = http://www.go6.net/4105/file.asp?file_id=142; + sha256 = "1578i6j3kq7g5f55gy1nksl4q0lxssdk39ilrgqjc20gb6k5j7j3"; + }; + + setSourceRoot = "sourceRoot=tspc*"; + + preBuild = "sed -e 's@/dev/net/tun@/dev/tun@' -i platform/linux/tsp_tun.c; + sed -e 's@/sbin/@/var/run/current-system/sw/sbin/@' -i template/linux.sh"; + + makeFlags = "target=linux"; + installFlags = "installdir=\$(out)"; + + buildInputs = [nettools openssl procps]; + + meta = { + description = " + Gateway6 client. Provides IPv6 tunnel (by default - using + Freenet6 anonymous server, which means dynamic IPv6 address, + but if you register at any tunnel broker you can easily + enter you data in configuration.nix). You need also to enable + service \"gw6c\". And check that tun, ipv6 and sit are modprobed. +"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index abad521179a8..1abb0f85247c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2485,9 +2485,9 @@ rec { inherit fetchurl stdenv; }; - /*gw6c = import ../os-specific/linux/gw6c { - inherit fetchurl stdenv nettools openssl; - };*/ + gw6c = import ../os-specific/linux/gw6c { + inherit fetchurl stdenv nettools openssl procps; + }; nss_ldap = import ../os-specific/linux/nss_ldap { inherit fetchurl stdenv openldap;