-
svn path=/nixpkgs/branches/stdenv-updates-merge/; revision=10823
This commit is contained in:
29
pkgs/os-specific/linux/iptables/1.4.0.nix
Normal file
29
pkgs/os-specific/linux/iptables/1.4.0.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
args : with args; with builderDefs {src="";} null;
|
||||
let localDefs = builderDefs (rec {
|
||||
src = /* put a fetchurl here */
|
||||
fetchurl {
|
||||
url = http://www.netfilter.org/projects/iptables/files/iptables-1.4.0.tar.bz2;
|
||||
sha256 = "0ljxbvdlg5mfxk0y00dr0qvsri1d495ci1pr8hrzga766n09g6px";
|
||||
};
|
||||
|
||||
buildInputs = [];
|
||||
configureFlags = [];
|
||||
makeFlags = [
|
||||
" KERNEL_DIR=${kernelHeaders} "
|
||||
];
|
||||
preBuild = FullDepEntry (''
|
||||
sed -e 's@/usr/local@'$out'@' -i Makefile Rules.make
|
||||
'') ["doUnpack" "minInit"];
|
||||
}) null; /* null is a terminator for sumArgs */
|
||||
in with localDefs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "iptables-"+version;
|
||||
builder = writeScript (name + "-builder")
|
||||
(textClosure localDefs
|
||||
[preBuild doMakeInstall doForceShare doPropagate]);
|
||||
meta = {
|
||||
description = "
|
||||
IPtables Linux firewall.
|
||||
";
|
||||
};
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "iptables-1.3.7";
|
||||
src = fetchurl {
|
||||
url = http://www.netfilter.org/projects/iptables/files/iptables-1.3.7.tar.bz2;
|
||||
sha256 = "00nffc03akgm5p0skz90nl29h5d8b9fjc0d9lhipkbwy0ahcw00f";
|
||||
};
|
||||
preBuild = "makeFlagsArray=(PREFIX=$out)";
|
||||
}
|
||||
Reference in New Issue
Block a user