2008-08-15 09:49:43 +00:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
2009-07-23 18:16:24 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2012-10-12 10:55:25 +00:00
|
|
|
name = "iptables-1.4.16.2";
|
2008-08-15 09:49:43 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-07-23 18:16:24 +00:00
|
|
|
url = "http://www.netfilter.org/projects/iptables/files/${name}.tar.bz2";
|
2012-10-12 10:55:25 +00:00
|
|
|
md5 = "57220bb26866a713073e5614f88071fc";
|
2008-08-15 09:49:43 +00:00
|
|
|
};
|
|
|
|
|
2010-05-20 22:11:44 +00:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2008-08-15 09:49:43 +00:00
|
|
|
meta = {
|
|
|
|
description = "A program to configure the Linux IP packet filtering ruleset";
|
|
|
|
homepage = http://www.netfilter.org/projects/iptables/index.html;
|
2010-08-13 23:11:58 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-08-15 09:49:43 +00:00
|
|
|
};
|
|
|
|
}
|