2008-08-15 10:49:43 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
2009-07-23 19:16:24 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-02-25 14:48:53 +00:00
|
|
|
name = "iptables-1.4.10";
|
2008-08-15 10:49:43 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-07-23 19:16:24 +01:00
|
|
|
url = "http://www.netfilter.org/projects/iptables/files/${name}.tar.bz2";
|
2011-02-25 14:48:53 +00:00
|
|
|
md5 = "f382fe693f0b59d87bd47bea65eca198";
|
2008-08-15 10:49:43 +01:00
|
|
|
};
|
|
|
|
|
2010-05-20 23:11:44 +01: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 10:49:43 +01:00
|
|
|
meta = {
|
|
|
|
description = "A program to configure the Linux IP packet filtering ruleset";
|
|
|
|
homepage = http://www.netfilter.org/projects/iptables/index.html;
|
2010-08-14 00:11:58 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-08-15 10:49:43 +01:00
|
|
|
};
|
|
|
|
}
|