* Added net-tools (for ifconfig, route, hostname).
svn path=/nixpkgs/trunk/; revision=805
This commit is contained in:
parent
cd0e06b9ef
commit
e5fd37f35d
13
pkgs/os-specific/linux/net-tools/builder.sh
Executable file
13
pkgs/os-specific/linux/net-tools/builder.sh
Executable file
@ -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
|
74
pkgs/os-specific/linux/net-tools/config.h
Normal file
74
pkgs/os-specific/linux/net-tools/config.h
Normal file
@ -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
|
13
pkgs/os-specific/linux/net-tools/default.nix
Normal file
13
pkgs/os-specific/linux/net-tools/default.nix
Normal file
@ -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;
|
||||
}
|
@ -577,6 +577,10 @@
|
||||
inherit fetchurl stdenv gettext;
|
||||
};
|
||||
|
||||
nettools = (import ../os-specific/linux/net-tools) {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
|
||||
### DATA
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user