summary refs log tree commit diff
path: root/pkgs/tools/networking/miniupnpd
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2010-05-20 22:11:44 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2010-05-20 22:11:44 +0000
commit50712e527979a78d6c424bbf6564446e2b621b87 (patch)
treedf5ad33ffdcc09a63c46d6d991413812a9a988ac /pkgs/tools/networking/miniupnpd
parente316a95859147a703f6ba206213f26508081936c (diff)
downloadnixpkgs-50712e527979a78d6c424bbf6564446e2b621b87.tar
nixpkgs-50712e527979a78d6c424bbf6564446e2b621b87.tar.gz
nixpkgs-50712e527979a78d6c424bbf6564446e2b621b87.tar.bz2
nixpkgs-50712e527979a78d6c424bbf6564446e2b621b87.tar.lz
nixpkgs-50712e527979a78d6c424bbf6564446e2b621b87.tar.xz
nixpkgs-50712e527979a78d6c424bbf6564446e2b621b87.tar.zst
nixpkgs-50712e527979a78d6c424bbf6564446e2b621b87.zip
* 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.nix31
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 00000000000..90de160a3e4
--- /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";
+  };
+}