2008-08-15 11:49:43 +02:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
2009-07-23 20:16:24 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2011-02-25 15:48:53 +01:00
|
|
|
name = "iptables-1.4.10";
|
2008-08-15 11:49:43 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-07-23 20:16:24 +02:00
|
|
|
url = "http://www.netfilter.org/projects/iptables/files/${name}.tar.bz2";
|
2011-02-25 15:48:53 +01:00
|
|
|
md5 = "f382fe693f0b59d87bd47bea65eca198";
|
2008-08-15 11:49:43 +02:00
|
|
|
};
|
|
|
|
|
2010-05-21 00:11:44 +02: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 11:49:43 +02: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 01:11:58 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-08-15 11:49:43 +02:00
|
|
|
};
|
|
|
|
}
|