2008-04-13 10:23:58 +02:00
|
|
|
args : with args;
|
2009-03-28 16:22:52 +01:00
|
|
|
let version = "6.0"; in
|
2008-04-13 10:23:58 +02:00
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
2009-09-29 17:59:37 +02:00
|
|
|
url = http://go6.net/4105/file.asp?file_id=166;
|
|
|
|
sha256 = "e6b345f11398026c8be17e0c26fc22632a6a1053bbf18b5303e514cf44b52c4a";
|
2009-09-29 18:22:23 +02:00
|
|
|
name = "gateway6-client-${version}.tar";
|
2008-04-13 10:23:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [nettools openssl procps];
|
|
|
|
configureFlags = [];
|
|
|
|
makeFlags = ["target=linux"];
|
|
|
|
installFlags = ["installdir=$out"];
|
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
|
|
|
phaseNames = ["preBuild" "doMakeInstall"];
|
|
|
|
|
2009-03-28 16:22:52 +01:00
|
|
|
goSrcDir = "cd tspc-advanced";
|
2008-04-13 10:23:58 +02:00
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
preBuild = fullDepEntry (''
|
2008-04-13 10:23:58 +02:00
|
|
|
sed -e 's@/dev/net/tun@/dev/tun@' -i platform/linux/tsp_tun.c;
|
|
|
|
sed -e 's@/sbin/ifconfig@${nettools}/sbin/ifconfig@' -i template/linux.sh
|
|
|
|
sed -e 's@/sbin/route@${nettools}/sbin/route@' -i template/linux.sh
|
|
|
|
sed -e 's@/sbin/ip@${iproute}/sbin/ip@' -i template/linux.sh
|
|
|
|
sed -e 's@/sbin/sysctl@${procps}/sbin/sysctl@' -i template/linux.sh
|
|
|
|
'') ["minInit" "addInputs" "doUnpack"];
|
|
|
|
|
|
|
|
name = "gateway6-client-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "Gateway6 client - provides IPv6 tunnel";
|
|
|
|
longDescription = "
|
|
|
|
This package provides Gateway6 client (gw6c) daemon,
|
|
|
|
which connects to so called tunnel broker via IPv4
|
|
|
|
network, and tunnels IPv6 packets through broker,
|
|
|
|
thus giving global IPv6 connectivity. You may need
|
|
|
|
tun, ipv6 and sit modules.
|
|
|
|
";
|
|
|
|
homepage = http://go6.net ;
|
2009-08-04 09:49:16 +02:00
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2008-04-13 10:23:58 +02:00
|
|
|
};
|
|
|
|
}
|