gogoclient: ipv6 tunnel

svn path=/nixpkgs/trunk/; revision=32668

+101
+39
pkgs/os-specific/linux/gogoclient/config-paths.patch
··· 1 + diff -urN gogoc-1_2-RELEASE/gogoc-tsp/conf/gogoc.conf.in gogoc-1_2-RELEASE-fix/gogoc-tsp/conf/gogoc.conf.in 2 + --- gogoc-1_2-RELEASE/gogoc-tsp/conf/gogoc.conf.in 2009-11-20 17:53:12.000000000 +0100 3 + +++ gogoc-1_2-RELEASE-fix/gogoc-tsp/conf/gogoc.conf.in 2012-02-25 15:16:12.758849219 +0100 4 + @@ -224,7 +224,7 @@ 5 + # 6 + # broker_list=<file_name> 7 + # 8 + -broker_list=tsp-broker-list.txt 9 + +broker_list=/var/lib/gogoc/tsp-broker-list.txt 10 + 11 + # 12 + # Last Server Used File Name: 13 + @@ -234,7 +234,7 @@ 14 + # 15 + # last_server=<file_name> 16 + # 17 + -last_server=tsp-last-server.txt 18 + +last_server=/var/lib/gogoc/tsp-last-server.txt 19 + 20 + # 21 + # Always Use Last Known Working Server: 22 + @@ -294,7 +294,7 @@ 23 + # 24 + # log_filename=<file_name> 25 + # 26 + -log_filename=gogoc.log 27 + +log_filename=/var/log/gogoc.log 28 + 29 + # 30 + # Log File Rotation: 31 + @@ -313,7 +313,7 @@ 32 + # 33 + # log_rotation=<yes|no> 34 + # 35 + -log_rotation=yes 36 + +log_rotation=no 37 + 38 + # 39 + # Log File Rotation Size:
+38
pkgs/os-specific/linux/gogoclient/default.nix
··· 1 + {stdenv, fetchurl, openssl, nettools, iproute, procps}: 2 + 3 + let baseName = "gogoclient"; 4 + version = "1.2"; 5 + in 6 + 7 + stdenv.mkDerivation rec { 8 + name = "${baseName}-${version}"; 9 + 10 + src = fetchurl { 11 + url = http://gogo6.com/downloads/gogoc-1_2-RELEASE.tar.gz; 12 + sha256 = "a0ef45c0bd1fc9964dc8ac059b7d78c12674bf67ef641740554e166fa99a2f49"; 13 + }; 14 + patches = [./gcc46-include-fix.patch ./config-paths.patch ]; 15 + makeFlags = ["target=linux"]; 16 + installFlags = ["installdir=$(out)"]; 17 + 18 + buildInputs = [openssl]; 19 + 20 + preFixup = '' 21 + ensureDir $out/share/${name} 22 + chmod 444 $out/bin/gogoc.conf 23 + mv $out/bin/gogoc.conf $out/share/${name}/gogoc.conf.sample 24 + rm $out/bin/gogoc.conf.sample 25 + 26 + substituteInPlace "$out/template/linux.sh" \ 27 + --replace "/sbin/ifconfig" "${nettools}/sbin/ifconfig" \ 28 + --replace "/sbin/route" "${nettools}/sbin/route" \ 29 + --replace "/sbin/ip" "${iproute}/sbin/ip" \ 30 + --replace "/sbin/sysctl" "${procps}/sbin/sysctl" 31 + ''; 32 + 33 + meta = { 34 + homepage = http://gogonet.gogo6.com; 35 + description = "Client to connect to the Freenet6 IPv6 tunnel broker service"; 36 + maintainers = [stdenv.lib.maintainers.bluescreen303]; 37 + }; 38 + }
+22
pkgs/os-specific/linux/gogoclient/gcc46-include-fix.patch
··· 1 + diff -urN gogoc-1_2-RELEASE/gogoc-messaging/src/clientmsgsender.cc gogoc-1_2-RELEASE-fix/gogoc-messaging/src/clientmsgsender.cc 2 + --- gogoc-1_2-RELEASE/gogoc-messaging/src/clientmsgsender.cc 2009-11-20 17:34:55.000000000 +0100 3 + +++ gogoc-1_2-RELEASE-fix/gogoc-messaging/src/clientmsgsender.cc 2012-02-25 15:06:20.764698284 +0100 4 + @@ -15,6 +15,7 @@ 5 + // ************************************************************************** 6 + #include <gogocmessaging/clientmsgsender.h> 7 + #include <assert.h> 8 + +#include <stddef.h> 9 + 10 + 11 + namespace gogocmessaging 12 + diff -urN gogoc-1_2-RELEASE/gogoc-messaging/src/servermsgsender.cc gogoc-1_2-RELEASE-fix/gogoc-messaging/src/servermsgsender.cc 13 + --- gogoc-1_2-RELEASE/gogoc-messaging/src/servermsgsender.cc 2009-11-20 17:34:56.000000000 +0100 14 + +++ gogoc-1_2-RELEASE-fix/gogoc-messaging/src/servermsgsender.cc 2012-02-25 15:06:36.722740288 +0100 15 + @@ -15,6 +15,7 @@ 16 + // ************************************************************************** 17 + #include <gogocmessaging/servermsgsender.h> 18 + #include <assert.h> 19 + +#include <stddef.h> 20 + 21 + 22 + namespace gogocmessaging
+2
pkgs/top-level/all-packages.nix
··· 5989 5989 5990 5990 numactl = callPackage ../os-specific/linux/numactl { }; 5991 5991 5992 + gogoclient = callPackage ../os-specific/linux/gogoclient { }; 5993 + 5992 5994 gw6c = builderDefsPackage (import ../os-specific/linux/gw6c) { 5993 5995 inherit fetchurl stdenv nettools openssl procps iproute; 5994 5996 };