nixpkgs/pkgs/os-specific/linux/iptables/default.nix
Eelco Dolstra 55050ba5c6 * iptables updated to 1.4.10.
svn path=/nixpkgs/trunk/; revision=26113
2011-02-25 14:48:53 +00:00

29 lines
869 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "iptables-1.4.10";
src = fetchurl {
url = "http://www.netfilter.org/projects/iptables/files/${name}.tar.bz2";
md5 = "f382fe693f0b59d87bd47bea65eca198";
};
# 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
'';
meta = {
description = "A program to configure the Linux IP packet filtering ruleset";
homepage = http://www.netfilter.org/projects/iptables/index.html;
platforms = stdenv.lib.platforms.linux;
};
}