mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
miniupnpd: Update to 1.8.20140401
This commit is contained in:
parent
06edd48842
commit
61cc18c55f
|
@ -1,20 +1,16 @@
|
||||||
{ stdenv, fetchurl, iptables, libnfnetlink, libnetfilter_conntrack }:
|
{ stdenv, fetchurl, iptables, libnfnetlink }:
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "miniupnpd-1.7.20121005";
|
name = "miniupnpd-1.8.20140401";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz";
|
url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz";
|
||||||
sha256 = "03kaxj808hgj1zf2528pzilgywgh70mh0qivjb5nm3spziiq32sv";
|
sha256 = "1gfdbfqcw6ih830si51yzqbyymgcbwkiv9vk5dwnxs78b7xgyv88";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ iptables libnfnetlink libnetfilter_conntrack ];
|
buildInputs = [ iptables libnfnetlink ];
|
||||||
|
|
||||||
patchPhase = ''
|
|
||||||
sed -i -e 's/upnputils\.o -lnfnetlink/upnputils.o/' Makefile.linux
|
|
||||||
'';
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-DIPTABLES_143";
|
NIX_CFLAGS_COMPILE = "-DIPTABLES_143";
|
||||||
|
|
||||||
|
@ -24,12 +20,9 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
makeFlags = "LIBS=";
|
makeFlags = "LIBS=";
|
||||||
|
|
||||||
installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)";
|
buildFlags = "miniupnpd genuuid";
|
||||||
|
|
||||||
preInstall =
|
installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)";
|
||||||
''
|
|
||||||
mkdir -p $out/share/man/man8
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://miniupnp.free.fr/;
|
homepage = http://miniupnp.free.fr/;
|
||||||
|
|
Loading…
Reference in a new issue