diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-05-20 22:11:44 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-05-20 22:11:44 +0000 |
commit | 50712e527979a78d6c424bbf6564446e2b621b87 (patch) | |
tree | df5ad33ffdcc09a63c46d6d991413812a9a988ac /pkgs/tools/networking/miniupnpd | |
parent | e316a95859147a703f6ba206213f26508081936c (diff) |
* Added miniupnpd, an implementation of the UPnP Internet Gateway
Device (IGD) specification. * Updated iptables to 1.4.8. svn path=/nixpkgs/trunk/; revision=21929
Diffstat (limited to 'pkgs/tools/networking/miniupnpd')
-rw-r--r-- | pkgs/tools/networking/miniupnpd/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/networking/miniupnpd/default.nix b/pkgs/tools/networking/miniupnpd/default.nix new file mode 100644 index 0000000000000..90de160a3e43b --- /dev/null +++ b/pkgs/tools/networking/miniupnpd/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, iptables }: + +assert stdenv.isLinux; + +stdenv.mkDerivation rec { + name = "miniupnpd-1.4"; + + src = fetchurl { + url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz"; + sha256 = "06q5agkzv2snjxcsszpm27h8bqv41jijahs8jqnarxdrik97rfl5"; + }; + + buildInputs = [ iptables ]; + + NIX_CFLAGS_COMPILE = "-DIPTABLES_143"; + + NIX_CFLAGS_LINK = "-liptc"; + + makefile = "Makefile.linux"; + + makeFlags = "LIBS="; + + postBuild = "cat config.h"; + + installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)"; + + meta = { + homepage = http://miniupnp.free.fr/; + description = "A daemon that implements the UPnP Internet Gateway Device (IGD) specification"; + }; +} |