add changelog accepted/trunk/20121214.165330 submit/trunk/20121214.155951
authorAnas Nashif <anas.nashif@intel.com>
Fri, 14 Dec 2012 15:43:49 +0000 (07:43 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Fri, 14 Dec 2012 15:56:37 +0000 (07:56 -0800)
Makefile
packaging/net-tools-config.h [new file with mode: 0644]
packaging/net-tools-config.make [new file with mode: 0644]
packaging/net-tools.changes [new file with mode: 0644]
packaging/net-tools.spec [new file with mode: 0644]

index 361ff69..c6ea5da 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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 (file)
index 0000000..8ac018b
--- /dev/null
@@ -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 (file)
index 0000000..64133db
--- /dev/null
@@ -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 (file)
index 0000000..6170045
--- /dev/null
@@ -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 (file)
index 0000000..6dc34a2
--- /dev/null
@@ -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