nixpkgs/pkgs/os-specific/linux/gw6c/5.1.nix
Michael Raskin d30797b8ac Updated gw6c and cleaned up the expression
svn path=/nixpkgs/trunk/; revision=11614
2008-04-13 08:23:58 +00:00

40 lines
1.3 KiB
Nix

args : with args;
rec {
src = fetchurl {
url = http://go6.net/4105/file.asp?file_id=150;
sha256 = "07svw71wad1kwip7vnsdwcvlhhknqlx8v8kmdnrw11f6xg76w2ln";
name = "gateway6-client-5.1.tar.gz";
};
buildInputs = [nettools openssl procps];
configureFlags = [];
makeFlags = ["target=linux"];
installFlags = ["installdir=$out"];
/* doConfigure should be specified separately */
phaseNames = ["preBuild" "doMakeInstall"];
goSrcDir = "cd ../tspc-advanced";
preBuild = FullDepEntry (''
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 ;
};
}