From 10e512f2b8b1426bf5e2238a7ff97e6785b719af Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Feb 2012 00:10:05 +0000 Subject: gogoclient: ipv6 tunnel svn path=/nixpkgs/trunk/; revision=32668 --- pkgs/os-specific/linux/gogoclient/default.nix | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/os-specific/linux/gogoclient/default.nix (limited to 'pkgs/os-specific/linux/gogoclient/default.nix') diff --git a/pkgs/os-specific/linux/gogoclient/default.nix b/pkgs/os-specific/linux/gogoclient/default.nix new file mode 100644 index 000000000000..d1a4bf9feb65 --- /dev/null +++ b/pkgs/os-specific/linux/gogoclient/default.nix @@ -0,0 +1,38 @@ +{stdenv, fetchurl, openssl, nettools, iproute, procps}: + +let baseName = "gogoclient"; + version = "1.2"; +in + +stdenv.mkDerivation rec { + name = "${baseName}-${version}"; + + src = fetchurl { + url = http://gogo6.com/downloads/gogoc-1_2-RELEASE.tar.gz; + sha256 = "a0ef45c0bd1fc9964dc8ac059b7d78c12674bf67ef641740554e166fa99a2f49"; + }; + patches = [./gcc46-include-fix.patch ./config-paths.patch ]; + makeFlags = ["target=linux"]; + installFlags = ["installdir=$(out)"]; + + buildInputs = [openssl]; + + preFixup = '' + ensureDir $out/share/${name} + chmod 444 $out/bin/gogoc.conf + mv $out/bin/gogoc.conf $out/share/${name}/gogoc.conf.sample + rm $out/bin/gogoc.conf.sample + + substituteInPlace "$out/template/linux.sh" \ + --replace "/sbin/ifconfig" "${nettools}/sbin/ifconfig" \ + --replace "/sbin/route" "${nettools}/sbin/route" \ + --replace "/sbin/ip" "${iproute}/sbin/ip" \ + --replace "/sbin/sysctl" "${procps}/sbin/sysctl" + ''; + + meta = { + homepage = http://gogonet.gogo6.com; + description = "Client to connect to the Freenet6 IPv6 tunnel broker service"; + maintainers = [stdenv.lib.maintainers.bluescreen303]; + }; +} -- cgit 1.4.1