summary refs log tree commit diff
path: root/pkgs/os-specific/linux/net-tools
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2004-02-19 12:46:35 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2004-02-19 12:46:35 +0000
commite5fd37f35db872cb5504dc493a8617274f55e698 (patch)
treeb9e49df45bd83d9c46b8e844b3789692ed4f9af5 /pkgs/os-specific/linux/net-tools
parentcd0e06b9ef4d9dff6271d91d4aa503ec3d34803c (diff)
downloadnixpkgs-e5fd37f35db872cb5504dc493a8617274f55e698.tar
nixpkgs-e5fd37f35db872cb5504dc493a8617274f55e698.tar.gz
nixpkgs-e5fd37f35db872cb5504dc493a8617274f55e698.tar.bz2
nixpkgs-e5fd37f35db872cb5504dc493a8617274f55e698.tar.lz
nixpkgs-e5fd37f35db872cb5504dc493a8617274f55e698.tar.xz
nixpkgs-e5fd37f35db872cb5504dc493a8617274f55e698.tar.zst
nixpkgs-e5fd37f35db872cb5504dc493a8617274f55e698.zip
* Added net-tools (for ifconfig, route, hostname).
svn path=/nixpkgs/trunk/; revision=805
Diffstat (limited to 'pkgs/os-specific/linux/net-tools')
-rwxr-xr-xpkgs/os-specific/linux/net-tools/builder.sh13
-rw-r--r--pkgs/os-specific/linux/net-tools/config.h74
-rw-r--r--pkgs/os-specific/linux/net-tools/default.nix13
3 files changed, 100 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/net-tools/builder.sh b/pkgs/os-specific/linux/net-tools/builder.sh
new file mode 100755
index 00000000000..87bb493c27f
--- /dev/null
+++ b/pkgs/os-specific/linux/net-tools/builder.sh
@@ -0,0 +1,13 @@
+#! /bin/sh -e
+
+buildinputs=""
+. $stdenv/setup
+
+tar xvfj $src
+cd net-tools-*
+cp $config config.h
+sed "s^/usr/share/man^/share^"  < man/Makefile > tmp
+mv tmp man/Makefile
+make
+mkdir $out
+make BASEDIR=$out install
diff --git a/pkgs/os-specific/linux/net-tools/config.h b/pkgs/os-specific/linux/net-tools/config.h
new file mode 100644
index 00000000000..890ac5af409
--- /dev/null
+++ b/pkgs/os-specific/linux/net-tools/config.h
@@ -0,0 +1,74 @@
+/*
+* config.h	Automatically generated configuration includefile
+*
+* NET-TOOLS	A collection of programs that form the base set of the
+*		NET-3 Networking Distribution for the LINUX operating
+*		system.
+*
+*		DO  NOT  EDIT  DIRECTLY
+*
+*/
+
+/* 
+ * 
+ * Internationalization
+ * 
+ * The net-tools package has currently been translated to French,
+ * German and Brazilian Portugese.  Other translations are, of
+ * course, welcome.  Answer `n' here if you have no support for
+ * internationalization on your system.
+ * 
+ */
+#define I18N 0
+
+/* 
+ * 
+ * Protocol Families.
+ * 
+ */
+#define HAVE_AFUNIX 1
+#define HAVE_AFINET 1
+#define HAVE_AFINET6 0
+#define HAVE_AFIPX 1
+#define HAVE_AFATALK 1
+#define HAVE_AFAX25 0
+#define HAVE_AFNETROM 1
+#define HAVE_AFROSE 0
+#define HAVE_AFX25 0
+#define HAVE_AFECONET 0
+#define HAVE_AFDECnet 0
+#define HAVE_AFASH 0
+
+/* 
+ * 
+ * Device Hardware types.
+ * 
+ */
+#define HAVE_HWETHER 1
+#define HAVE_HWARC 1
+#define HAVE_HWSLIP 1
+#define HAVE_HWPPP 1
+#define HAVE_HWTUNNEL 1
+#define HAVE_HWSTRIP 1
+#define HAVE_HWTR 1
+#define HAVE_HWAX25 0
+#define HAVE_HWROSE 0
+#define HAVE_HWNETROM 1
+#define HAVE_HWX25 0
+#define HAVE_HWFR 1
+#define HAVE_HWSIT 0
+#define HAVE_HWFDDI 0
+#define HAVE_HWHIPPI 0
+#define HAVE_HWASH 0
+#define HAVE_HWHDLCLAPB 0
+#define HAVE_HWIRDA 1
+#define HAVE_HWEC 0
+
+/* 
+ * 
+ * Other Features.
+ * 
+ */
+#define HAVE_FW_MASQUERADE 0
+#define HAVE_IP_TOOLS 0
+#define HAVE_MII 0
diff --git a/pkgs/os-specific/linux/net-tools/default.nix b/pkgs/os-specific/linux/net-tools/default.nix
new file mode 100644
index 00000000000..fd6398c7184
--- /dev/null
+++ b/pkgs/os-specific/linux/net-tools/default.nix
@@ -0,0 +1,13 @@
+{stdenv, fetchurl}:
+
+derivation {
+  name = "net-tools-1.60";
+  system = stdenv.system;
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-1.60.tar.bz2;
+    md5 = "888774accab40217dde927e21979c165";
+  };
+  config = ./config.h;
+  inherit stdenv;
+}