summary refs log tree commit diff
path: root/pkgs/os-specific/linux/iptables
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/os-specific/linux/iptables
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/os-specific/linux/iptables')
-rw-r--r--pkgs/os-specific/linux/iptables/default.nix17
1 files changed, 15 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/iptables/default.nix b/pkgs/os-specific/linux/iptables/default.nix
index 2dc3217f290..5209518cb61 100644
--- a/pkgs/os-specific/linux/iptables/default.nix
+++ b/pkgs/os-specific/linux/iptables/default.nix
@@ -1,13 +1,26 @@
 {stdenv, fetchurl}:
 
 stdenv.mkDerivation rec {
-  name = "iptables-1.4.6";
+  name = "iptables-1.4.8";
 
   src = fetchurl {
     url = "http://www.netfilter.org/projects/iptables/files/${name}.tar.bz2";
-    sha256 = "193jdplnkzikrmk0y313d9alc4kp5gi55aikw3b668fnrac2fwvf";
+    sha256 = "1d6wykz1x2h0hp03akpm5gdgnamb1ij1nxzx3w3lhdvbzjwpbaxq";
   };
 
+  # Install header files required by miniupnpd.
+  postInstall =
+    ''
+      cp include/iptables.h $out/include
+      cp include/libiptc/libiptc.h include/libiptc/ipt_kernel_headers.h $out/include/libiptc
+      mkdir $out/include/iptables
+      cp include/iptables/internal.h $out/include/iptables
+      mkdir $out/include/net
+      cp -prd include/net/netfilter $out/include/net/netfilter
+      mkdir $out/include/linux
+      ln -s $out/include/net/netfilter $out/include/linux/netfilter
+    '';
+
   meta = {
     description = "A program to configure the Linux IP packet filtering ruleset";
     homepage = http://www.netfilter.org/projects/iptables/index.html;