2009-09-01 22:12:01 +02:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
s = import ./src-for-default.nix;
|
|
|
|
buildInputs = with a; [
|
2009-09-01 23:00:34 +02:00
|
|
|
openssl gmp
|
2009-09-01 22:12:01 +02:00
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchUrlFromSrcInfo s;
|
|
|
|
|
|
|
|
inherit (s) name;
|
|
|
|
inherit buildInputs;
|
2009-09-01 23:00:34 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-tcp"
|
|
|
|
"--enable-http-proxy"
|
|
|
|
"--enable-dns"
|
|
|
|
];
|
2009-09-01 22:12:01 +02:00
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
2009-09-02 00:42:05 +02:00
|
|
|
phaseNames = ["doConfigure" "preBuild" "doMakeInstall"];
|
|
|
|
preBuild = a.fullDepEntry (''
|
|
|
|
sed -e 's@"/sbin/ifconfig.*"@"${a.iproute}/sbin/ip link set $IFNAME address $MAC mtu $MTU"@' -i src/device-linux.C
|
|
|
|
sed -e 's@/sbin/ifconfig@${a.nettools}/sbin/ifconfig@g' -i src/device-*.C
|
|
|
|
'') ["minInit" "doUnpack"];
|
2009-09-01 22:12:01 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A proteted multinode virtual network";
|
|
|
|
maintainers = [
|
|
|
|
a.lib.maintainers.raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms; linux ++ freebsd;
|
|
|
|
};
|
|
|
|
}
|