From e5fd37f35db872cb5504dc493a8617274f55e698 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 19 Feb 2004 12:46:35 +0000 Subject: * Added net-tools (for ifconfig, route, hostname). svn path=/nixpkgs/trunk/; revision=805 --- pkgs/os-specific/linux/net-tools/builder.sh | 13 +++++ pkgs/os-specific/linux/net-tools/config.h | 74 ++++++++++++++++++++++++++++ pkgs/os-specific/linux/net-tools/default.nix | 13 +++++ pkgs/system/all-packages-generic.nix | 4 ++ 4 files changed, 104 insertions(+) create mode 100755 pkgs/os-specific/linux/net-tools/builder.sh create mode 100644 pkgs/os-specific/linux/net-tools/config.h create mode 100644 pkgs/os-specific/linux/net-tools/default.nix 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; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 91e9ce1aa6f..00685c545e0 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -577,6 +577,10 @@ inherit fetchurl stdenv gettext; }; + nettools = (import ../os-specific/linux/net-tools) { + inherit fetchurl stdenv; + }; + ### DATA -- cgit 1.4.1