diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-12-14 07:43:49 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-12-14 07:56:37 -0800 |
commit | 86df89f3821b1a4b9760d6a9614ffa9c899f4981 (patch) | |
tree | 0d4342da9e785b799f9b1b09cee1b6e9b2d893c1 | |
parent | 9a022d8ca83e85bd61c34a1dad6bb54d5bf776e0 (diff) | |
download | net-tools-86df89f3821b1a4b9760d6a9614ffa9c899f4981.tar.gz net-tools-86df89f3821b1a4b9760d6a9614ffa9c899f4981.tar.bz2 net-tools-86df89f3821b1a4b9760d6a9614ffa9c899f4981.zip |
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | packaging/net-tools-config.h | 78 | ||||
-rw-r--r-- | packaging/net-tools-config.make | 39 | ||||
-rw-r--r-- | packaging/net-tools.changes | 3 | ||||
-rw-r--r-- | packaging/net-tools.spec | 62 |
5 files changed, 183 insertions, 1 deletions
@@ -92,7 +92,7 @@ all: config.h version.h subdirs $(PROGS) config: cleanconfig config.h -install: all savebin installbin installdata +install: all savebin installbin update: all installbin installdata diff --git a/packaging/net-tools-config.h b/packaging/net-tools-config.h new file mode 100644 index 0000000..8ac018b --- /dev/null +++ b/packaging/net-tools-config.h @@ -0,0 +1,78 @@ +/* +* 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 1 + +/* + * + * Protocol Families. + * + */ +#define HAVE_AFUNIX 1 +#define HAVE_AFINET 1 +#define HAVE_AFINET6 1 +#define HAVE_AFIPX 1 +#define HAVE_AFATALK 1 +#define HAVE_AFAX25 1 +#define HAVE_AFNETROM 1 +#define HAVE_AFROSE 1 +#define HAVE_AFX25 1 +#define HAVE_AFECONET 1 +#define HAVE_AFDECnet 0 +#define HAVE_AFASH 1 +#define HAVE_AFBLUETOOTH 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 0 +#define HAVE_HWTR 0 +#define HAVE_HWAX25 1 +#define HAVE_HWROSE 1 +#define HAVE_HWNETROM 1 +#define HAVE_HWX25 1 +#define HAVE_HWFR 1 +#define HAVE_HWSIT 1 +#define HAVE_HWFDDI 1 +#define HAVE_HWHIPPI 1 +#define HAVE_HWASH 1 +#define HAVE_HWHDLCLAPB 1 +#define HAVE_HWIRDA 1 +#define HAVE_HWEC 1 +#define HAVE_HWEUI64 1 +#define HAVE_HWIB 1 + +/* + * + * Other Features. + * + */ +#define HAVE_FW_MASQUERADE 1 +#define HAVE_IP_TOOLS 1 +#define HAVE_MII 1 +#define HAVE_SELINUX 0 diff --git a/packaging/net-tools-config.make b/packaging/net-tools-config.make new file mode 100644 index 0000000..64133db --- /dev/null +++ b/packaging/net-tools-config.make @@ -0,0 +1,39 @@ +I18N=1 +HAVE_AFUNIX=1 +HAVE_AFINET=1 +HAVE_AFINET6=1 +HAVE_AFIPX=1 +HAVE_AFATALK=1 +HAVE_AFAX25=1 +HAVE_AFNETROM=1 +HAVE_AFROSE=1 +HAVE_AFX25=1 +HAVE_AFECONET=1 +# HAVE_AFDECnet=0 +HAVE_AFASH=1 +# HAVE_AFBLUETOOTH=0 +HAVE_HWETHER=1 +HAVE_HWARC=1 +HAVE_HWSLIP=1 +HAVE_HWPPP=1 +HAVE_HWTUNNEL=1 +HAVE_HWSTRIP=0 +HAVE_HWTR=0 +HAVE_HWAX25=1 +HAVE_HWROSE=1 +HAVE_HWNETROM=1 +HAVE_HWX25=1 +HAVE_HWFR=1 +HAVE_HWSIT=1 +HAVE_HWFDDI=1 +HAVE_HWHIPPI=1 +HAVE_HWASH=1 +HAVE_HWHDLCLAPB=1 +HAVE_HWIRDA=1 +HAVE_HWEC=1 +HAVE_HWEUI64=1 +HAVE_HWIB=1 +HAVE_FW_MASQUERADE=1 +HAVE_IP_TOOLS=1 +HAVE_MII=1 +HAVE_SELINUX=0 diff --git a/packaging/net-tools.changes b/packaging/net-tools.changes new file mode 100644 index 0000000..6170045 --- /dev/null +++ b/packaging/net-tools.changes @@ -0,0 +1,3 @@ +* Fri Dec 14 2012 Anas Nashif <anas.nashif@intel.com> 9a022d8 +- initial release + diff --git a/packaging/net-tools.spec b/packaging/net-tools.spec new file mode 100644 index 0000000..6dc34a2 --- /dev/null +++ b/packaging/net-tools.spec @@ -0,0 +1,62 @@ +Summary: Basic networking tools +Name: net-tools +Version: 2.0_20121208git +Release: 0 +License: GPLv2+ +Group: System/Base +URL: http://sourceforge.net/projects/net-tools/ + +# git archive --format=tar --remote=git://net-tools.git.sourceforge.net/gitroot/net-tools/net-tools master | xz > net-tools-%%{version}.%%{checkout}.tar.xz +Source0: net-tools-%{version}.tar.xz +Source1: net-tools-config.h +Source2: net-tools-config.make + +%description +The net-tools package contains basic networking tools, +including ifconfig, netstat, route, and others. +Most of them are obsolete. For replacement check iproute package. + +%prep +%setup -q + +cp %SOURCE1 ./config.h +cp %SOURCE2 ./config.make + +%build +export CFLAGS="$RPM_OPT_FLAGS $CFLAGS -fpie" +export LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now" + +make + +%install +make BASEDIR=%{buildroot} mandir=%{_mandir} install + +mkdir -p %{buildroot}/usr/sbin +mv %{buildroot}/bin/ifconfig %{buildroot}/usr/sbin +mv %{buildroot}/bin/route %{buildroot}/usr/sbin + + +rm %{buildroot}/sbin/rarp + +# remove hostname (has its own package) +rm %{buildroot}/bin/dnsdomainname +rm %{buildroot}/bin/domainname +rm %{buildroot}/bin/hostname +rm %{buildroot}/bin/nisdomainname +rm %{buildroot}/bin/ypdomainname + +%docs_package + + +%files +%license COPYING +/bin/netstat +/usr/sbin/ifconfig +/usr/sbin/route +/sbin/arp +/sbin/ipmaddr +/sbin/iptunnel +/sbin/nameif +/sbin/plipconfig +/sbin/slattach +/sbin/mii-tool |