From 85897fa31aaa4428596a28a3ef5ece06d22c8f71 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 15 Aug 2008 09:49:43 +0000 Subject: [PATCH] * iptables updated to 1.4.1.1. svn path=/nixpkgs/trunk/; revision=12630 --- pkgs/os-specific/linux/iptables/1.4.0.nix | 30 --------------------- pkgs/os-specific/linux/iptables/default.nix | 15 +++++++++++ pkgs/top-level/all-packages.nix | 4 +-- 3 files changed, 17 insertions(+), 32 deletions(-) delete mode 100644 pkgs/os-specific/linux/iptables/1.4.0.nix create mode 100644 pkgs/os-specific/linux/iptables/default.nix diff --git a/pkgs/os-specific/linux/iptables/1.4.0.nix b/pkgs/os-specific/linux/iptables/1.4.0.nix deleted file mode 100644 index 04858c5c3cc5..000000000000 --- a/pkgs/os-specific/linux/iptables/1.4.0.nix +++ /dev/null @@ -1,30 +0,0 @@ -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. -"; - inherit src; - }; -} diff --git a/pkgs/os-specific/linux/iptables/default.nix b/pkgs/os-specific/linux/iptables/default.nix new file mode 100644 index 000000000000..89566ab1bb47 --- /dev/null +++ b/pkgs/os-specific/linux/iptables/default.nix @@ -0,0 +1,15 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "iptables-1.4.1.1"; + + src = fetchurl { + url = http://www.netfilter.org/projects/iptables/files/iptables-1.4.1.1.tar.bz2; + sha256 = "10mmf0d2gpshhi5a73z1y14wdh7pdk3hvn78ps5i37qayv6irqgr"; + }; + + meta = { + description = "A program to configure the Linux IP packet filtering ruleset"; + homepage = http://www.netfilter.org/projects/iptables/index.html; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 96f020d0c831..be33d2b2b05f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4823,8 +4823,8 @@ let pkgs = rec { kernelHeaders = stdenv.gcc.libc.kernelHeaders; }; - iptables = composedArgsAndFun (selectVersion ../os-specific/linux/iptables "1.4.0") { - inherit builderDefs kernelHeaders; + iptables = import ../os-specific/linux/iptables { + inherit fetchurl stdenv; }; ipw2200fw = import ../os-specific/linux/firmware/ipw2200 {