2015-09-15 06:27:19 +02:00
|
|
|
a @ { openssl, gmp, nettools, iproute, zlib, ... } :
|
|
|
|
let
|
2009-09-01 22:12:01 +02:00
|
|
|
s = import ./src-for-default.nix;
|
|
|
|
buildInputs = with a; [
|
2014-10-07 08:38:27 +02:00
|
|
|
openssl gmp zlib
|
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"];
|
2015-09-15 06:27:19 +02:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|