2015-09-15 05:27:19 +01:00
|
|
|
a @ { openssl, gmp, nettools, iproute, zlib, ... } :
|
|
|
|
let
|
2009-09-01 21:12:01 +01:00
|
|
|
s = import ./src-for-default.nix;
|
|
|
|
buildInputs = with a; [
|
2014-10-07 07:38:27 +01:00
|
|
|
openssl gmp zlib
|
2009-09-01 21:12:01 +01:00
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchUrlFromSrcInfo s;
|
|
|
|
|
|
|
|
inherit (s) name;
|
|
|
|
inherit buildInputs;
|
2009-09-01 22:00:34 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-tcp"
|
|
|
|
"--enable-http-proxy"
|
|
|
|
"--enable-dns"
|
|
|
|
];
|
2009-09-01 21:12:01 +01:00
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
2009-09-01 23:42:05 +01: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"];
|
2015-09-15 05:27:19 +01:00
|
|
|
|
2009-09-01 21:12:01 +01:00
|
|
|
meta = {
|
|
|
|
description = "A proteted multinode virtual network";
|
|
|
|
maintainers = [
|
|
|
|
a.lib.maintainers.raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms; linux ++ freebsd;
|
|
|
|
};
|
|
|
|
}
|