2008-08-15 11:49:43 +02:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
2009-07-23 20:16:24 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2010-05-21 00:11:44 +02:00
|
|
|
name = "iptables-1.4.8";
|
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";
|
2010-05-26 21:01:15 +02:00
|
|
|
sha256 = "342926b3f9635f89f479660835b0ba518ccd465552e41c29aa83c5af7d506496";
|
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
|
|
|
};
|
|
|
|
}
|