miniupnpd: upgrade to 1.7.20121005

This commit is contained in:
Mathijs Kwik 2012-10-13 18:34:31 +02:00
parent c39805d81c
commit e9f0cae00f

View File

@ -1,33 +1,34 @@
{ stdenv, fetchurl, iptables }:
{ stdenv, fetchurl, iptables, libnfnetlink, libnetfilter_conntrack }:
assert stdenv.isLinux;
stdenv.mkDerivation rec {
name = "miniupnpd-1.4";
name = "miniupnpd-1.7.20121005";
src = fetchurl {
url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz";
sha256 = "06q5agkzv2snjxcsszpm27h8bqv41jijahs8jqnarxdrik97rfl5";
sha256 = "03kaxj808hgj1zf2528pzilgywgh70mh0qivjb5nm3spziiq32sv";
};
buildInputs = [ iptables ];
buildInputs = [ iptables libnfnetlink libnetfilter_conntrack ];
patchPhase = ''
sed -i -e 's/upnputils\.o -lnfnetlink/upnputils.o/' Makefile.linux
'';
NIX_CFLAGS_COMPILE = "-DIPTABLES_143";
NIX_CFLAGS_LINK = "-liptc";
NIX_CFLAGS_LINK = "-liptc -lnfnetlink";
makefile = "Makefile.linux";
makeFlags = "LIBS=";
postBuild = "cat config.h";
installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)";
postInstall =
preInstall =
''
mkdir -p $out/share/man/man1
cp miniupnpd.1 $out/share/man/man1/
mkdir -p $out/share/man/man8
'';
meta = {