Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=3d32285b81137dd789f2428decf9ad0b7f93f232

commit 3d32285b81137dd789f2428decf9ad0b7f93f232
Author: James Buren <[email protected]>
Date:   Sun Apr 21 16:12:53 2013 -0500

net-tools-1.60.20130219-1-x86_64
* version bump to git snapshot
* drop all old patches
* add patches for correct config / install pathing
* drop old /usr/bin/hostname symlink (no one appears to use this)
* drop old install scriptlet which hasn't been useful since 1.6 or
* earlier

diff --git a/source/base/net-tools/FrugalBuild 
b/source/base/net-tools/FrugalBuild
index f0f9f7e..535c7dc 100644
--- a/source/base/net-tools/FrugalBuild
+++ b/source/base/net-tools/FrugalBuild
@@ -3,40 +3,28 @@
# Contributor: Miklos Vajna <[email protected]>

pkgname=net-tools
-pkgver=1.60
-pkgrel=31
+pkgver=1.60.20130219
+pkgrel=1
pkgdesc="Important tools for controlling the network subsystem"
url="http://www.tazenda.demon.co.uk/phil/net-tools/";
-depends=('mktemp>=1.5-3' 'chkconfig>=1.3.30c-2')
+depends=('glibc')
groups=('base' 'chroot-core')
conflicts=('hotplug')
archs=('i686' 'x86_64' 'arm')
-up2date="lynx -dump $url |tail -n 1|tr '-' '\n'|sed 's/.tar.bz2//'|tail -n 1"
-source=($url/$pkgname-$pkgver.tar.bz2 \
-        $pkgname-$pkgver-configure.diff $pkgname-$pkgver-gcc34.diff \
-       $pkgname-$pkgver-i18n.diff \
-       $pkgname-$pkgver-kernel26.diff \
-       net-tools-1.60-mii-tool-obsolete.patch)
-sha1sums=('944fb70641505d5d1139dba3aeb81ba124574b83' \
-          'ffc3cd8044f83af7f0dd544d767d5d7623b91093' \
-          'ff8daa4d48f867679d9feab2123cea4838684f79' \
-          '8dd9e07f99356870104dc4c168746055e78b03f1' \
-          '448f5da06b9936c0c0e7ccf38cc36aa3ca5bd9f8' \
-          'fe9c2e8248920f0c8c6fb0214f19eef1f8e6e77a')
-
+up2date="Flasttar http://ftp.frugalware.org/pub/other/sources/$pkgname";
+options=('nomirror')
+source=(http://ftp.frugalware.org/pub/other/sources/$pkgname/$pkgname-$pkgver.tar.xz
 config.patch makefile.patch)
+sha1sums=('a86c887c5147cdcce0bbcb9bba2338b1e4b4db5a' \
+          '496b1263bbef9243c63a03c3153701e07031e965' \
+          '9f57251f1a5326bc656d6dab5f9db8e3bb6f1ecc')

build()
{
-       unset MAKEFLAGS
+       Fcd
Fpatchall
-       Fsed '^\(COPTS = .*\) -O2 \(.*\)' "\1 $CFLAGS \2" Makefile
-       ## fix  for -> warning: incompatible implicit declaration of built-in 
function 'exit'
-       sed -e 's/#include <stdio.h>/#include <stdio.h>\n#include <stdlib.h>/' 
-i hostname.c || Fdie
-       touch config.h || Fdie
-       Fmake
-       make BASEDIR=$Fdestdir update
-
-       Fln ../../bin/hostname /usr/bin/hostname
+       yes '' | make config || Fdie
+       make || Fdie
+       make BASEDIR=$Fdestdir update || Fdie
}

# optimization OK
diff --git a/source/base/net-tools/config.patch 
b/source/base/net-tools/config.patch
new file mode 100644
index 0000000..cd4172c
--- /dev/null
+++ b/source/base/net-tools/config.patch
@@ -0,0 +1,21 @@
+diff -ur a/config.in b/config.in
+--- a/config.in        2013-02-19 03:28:11.000000000 -0600
++++ b/config.in        2013-04-21 15:59:45.966465443 -0500
+@@ -42,7 +42,7 @@
+ * course, welcome.  Answer `n' here if you have no support for
+ * internationalization on your system.
+ *
+-bool 'Does your system support GNU gettext?' I18N n
++bool 'Does your system support GNU gettext?' I18N y
+ *
+ *
+ *             Protocol Families.
+@@ -59,7 +59,7 @@
+ bool 'Econet protocol family' HAVE_AFECONET y
+ bool 'DECnet protocol family' HAVE_AFDECnet n
+ bool 'Ash protocol family' HAVE_AFASH y
+-bool 'Bluetooth protocol family' HAVE_AFBLUETOOTH n
++bool 'Bluetooth protocol family' HAVE_AFBLUETOOTH y
+ *
+ *
+ *            Device Hardware types.
diff --git a/source/base/net-tools/makefile.patch 
b/source/base/net-tools/makefile.patch
new file mode 100644
index 0000000..82a719a
--- /dev/null
+++ b/source/base/net-tools/makefile.patch
@@ -0,0 +1,18 @@
+diff -ur a/Makefile b/Makefile
+--- a/Makefile 2013-02-19 03:28:11.000000000 -0600
++++ b/Makefile 2013-04-21 16:01:51.910460760 -0500
+@@ -198,12 +198,12 @@
+       install -m 0755 -d ${BASEDIR}/bin
+       install -m 0755 arp        ${BASEDIR}/sbin
+       install -m 0755 hostname   ${BASEDIR}/bin
+-      install -m 0755 ifconfig   ${BASEDIR}/bin
++      install -m 0755 ifconfig   ${BASEDIR}/sbin
+       install -m 0755 nameif     ${BASEDIR}/sbin
+       install -m 0755 netstat    ${BASEDIR}/bin
+       install -m 0755 plipconfig $(BASEDIR)/sbin
+       install -m 0755 rarp       ${BASEDIR}/sbin
+-      install -m 0755 route      ${BASEDIR}/bin
++      install -m 0755 route      ${BASEDIR}/sbin
+       install -m 0755 slattach   $(BASEDIR)/sbin
+ ifeq ($(HAVE_IP_TOOLS),1)
+       install -m 0755 ipmaddr    $(BASEDIR)/sbin
diff --git a/source/base/net-tools/net-tools-1.60-configure.diff 
b/source/base/net-tools/net-tools-1.60-configure.diff
deleted file mode 100644
index a14eecf..0000000
--- a/source/base/net-tools/net-tools-1.60-configure.diff
+++ /dev/null
@@ -1,77 +0,0 @@
---- net-tools-1.60.orig/config.h.orig  Wed Mar 21 21:23:31 2001
-+++ net-tools-1.60.orig/config.h       Wed Mar 21 21:23:12 2001
-@@ -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 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 0
-+#define HAVE_AFX25 1
-+#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 1
-+#define HAVE_HWROSE 0
-+#define HAVE_HWNETROM 1
-+#define HAVE_HWX25 1
-+#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 1
-+#define HAVE_IP_TOOLS 1
-+#define HAVE_MII 1
diff --git a/source/base/net-tools/net-tools-1.60-gcc34.diff 
b/source/base/net-tools/net-tools-1.60-gcc34.diff
deleted file mode 100644
index bb796b4..0000000
--- a/source/base/net-tools/net-tools-1.60-gcc34.diff
+++ /dev/null
@@ -1,38 +0,0 @@
-diff -Naur net-tools-1.60.orig/hostname.c net-tools-1.60/hostname.c
---- net-tools-1.60.orig/hostname.c     2001-04-08 19:04:23.000000000 +0200
-+++ net-tools-1.60/hostname.c  2004-07-07 12:59:21.000000000 +0200
-@@ -98,6 +98,7 @@
-           fprintf(stderr, _("%s: name too long\n"), program_name);
-           break;
-       default:
-+          ;
-       }
-       exit(1);
-     };
-@@ -117,6 +118,7 @@
-           fprintf(stderr, _("%s: name too long\n"), program_name);
-           break;
-       default:
-+          ;
-       }
-       exit(1);
-     };
-@@ -174,6 +176,7 @@
-       printf("%s\n", hp->h_name);
-       break;
-     default:
-+      ;
-     }
- }
-
-diff -Naur net-tools-1.60.orig/lib/inet_sr.c net-tools-1.60/lib/inet_sr.c
---- net-tools-1.60.orig/lib/inet_sr.c  2000-02-20 22:46:45.000000000 +0100
-+++ net-tools-1.60/lib/inet_sr.c       2004-07-07 12:57:56.000000000 +0200
-@@ -105,6 +105,7 @@
-     case 2:
-        isnet = 0; break;
-     default:
-+       ;
-     }
-
-     /* Fill in the other fields. */
diff --git a/source/base/net-tools/net-tools-1.60-i18n.diff 
b/source/base/net-tools/net-tools-1.60-i18n.diff
deleted file mode 100644
index 48c4328..0000000
--- a/source/base/net-tools/net-tools-1.60-i18n.diff
+++ /dev/null
@@ -1,16 +0,0 @@
-diff -Naur net-tools-1.60.orig/man/Makefile net-tools-1.60/man/Makefile
---- net-tools-1.60.orig/man/Makefile   2000-10-28 12:59:42.000000000 +0200
-+++ net-tools-1.60/man/Makefile        2004-07-07 13:32:41.000000000 +0200
-@@ -27,12 +27,7 @@
- INSTALL=install
- mandir=/usr/share/man
-
---include ../config.make
--ifeq ($(I18N),1)
- LANGS=`ls -d * | grep -v Makefile`
--else
--LANGS=en_US
--endif
-
- all:
-
diff --git a/source/base/net-tools/net-tools-1.60-kernel26.diff 
b/source/base/net-tools/net-tools-1.60-kernel26.diff
deleted file mode 100644
index 92ce901..0000000
--- a/source/base/net-tools/net-tools-1.60-kernel26.diff
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -ruN net-tools-1.60.orig/lib/x25_sr.c net-tools-1.60/lib/x25_sr.c
---- net-tools-1.60.orig/lib/x25_sr.c   2000-05-20 15:38:10.000000000 +0200
-+++ net-tools-1.60/lib/x25_sr.c        2003-10-18 20:33:31.927574928 +0200
-@@ -22,6 +22,7 @@
- #include <sys/socket.h>
- #include <sys/ioctl.h>
- #include <linux/x25.h>
-+#include <linux/version.h>
- #include <ctype.h>
- #include <errno.h>
- #include <netdb.h>
-@@ -77,7 +78,11 @@
-   rt.sigdigits=sigdigits;
-
-   /* x25_route_struct.address isn't type struct sockaddr_x25, Why? */
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
-   memcpy(&rt.address, &sx25.sx25_addr, sizeof(x25_address));
-+#else
-+  memcpy(&rt.address, &sx25.sx25_addr, sizeof(struct x25_address));
-+#endif
-
-   while (*args) {
-       if (!strcmp(*args,"device") || !strcmp(*args,"dev")) {
diff --git a/source/base/net-tools/net-tools-1.60-mii-tool-obsolete.patch 
b/source/base/net-tools/net-tools-1.60-mii-tool-obsolete.patch
deleted file mode 100644
index efb7f27..0000000
--- a/source/base/net-tools/net-tools-1.60-mii-tool-obsolete.patch
+++ /dev/null
@@ -1,25 +0,0 @@
---- net-tools-1.60/man/en_US/mii-tool.8.obsolete       2000-05-21 
16:21:38.000000000 +0200
-+++ net-tools-1.60/man/en_US/mii-tool.8        2004-11-11 10:45:51.155113000 
+0100
-@@ -18,6 +18,12 @@
- [\fB\-F\fR, \fB\-\-force=\fImedia\fR]
- .RI [ "interface\ ..." ]
-
-+.SH NOTE
-+.P
-+This program is obsolete. Valid media are only \fB100baseT4\fR,
-+\fB100baseTx-FD\fR,\fB100baseTx-HD\fR, \fB10baseT-FD\fR and
-+\fB10baseT-HD\fR ethernet cards. For replacement check \fBethtool\fB.
-+
- .SH DESCRIPTION
- This utility checks or sets the status of a network interface's Media
- Independent Interface (MII) unit.  Most fast ethernet adapters use an
-@@ -72,6 +78,9 @@
- commas.  Valid media are \fB100baseT4\fR, \fB100baseTx-FD\fR,
- \fB100baseTx-HD\fR, \fB10baseT-FD\fR, and \fB10baseT-HD\fR.
-
-+.SH SEE ALSO
-+ethtool(8)
-+
- .SH AUTHORS
- David Hinds \- [email protected]
- .br
diff --git a/source/base/net-tools/net-tools.install 
b/source/base/net-tools/net-tools.install
deleted file mode 100644
index 0619491..0000000
--- a/source/base/net-tools/net-tools.install
+++ /dev/null
@@ -1,57 +0,0 @@
-is_wireless_device()
-{
-       LC_ALL=C iwconfig $1 2>&1 |grep -q "no wireless extensions" || return 1
-       return 0
-}
-
-# arg 1:  the new package version
-# arg 2:  the old package version
-post_upgrade()
-{
-       if [ -f /etc/sysconfig/interfaces -a ! -f 
/etc/sysconfig/network/default ]; then
-               . /etc/sysconfig/interfaces
-               [ -f /etc/sysconfig/wireless ] && . /etc/sysconfig/wireless
-               ( if grep -q ^nameserver /etc/resolv.conf; then
-                       echo "[options]"
-                       if grep -q ^search /etc/resolv.conf; then
-                               grep ^search /etc/resolv.conf|sed 
's/^search/domain =/'
-                       fi
-                       grep ^nameserver /etc/resolv.conf|sed 
's/^nameserver/dns =/'
-               fi
-               for i in 0 1 2 3
-               do
-                       if [ ! -z "${IPADDR[$i]}" -o ! -z "${USE_DHCP[$i]}" ] 
|| is_wireless_device eth$i; then
-                               echo "[eth$i]"
-                               if is_wireless_device eth$i; then
-                                       [ ! -z "$ESSID" ] && echo "essid = 
$ESSID"
-                                       [ ! -z "$KEY" ] && echo "key = $KEY"
-                               fi
-                               if [ ! -z "${IPADDR[$i]}" -o ! -z 
"${USE_DHCP[$i]}" ]; then
-                                       if [ "${USE_DHCP[$i]}" == "yes" ]; then
-                                               echo "options = dhcp"
-                                               if [ ! -z 
"${DHCP_HOSTNAME[$i]}" ]; then
-                                                       echo "dhcp_opts = -h 
${DHCP_HOSTNAME[$i]}"
-                                               fi
-                                       else
-                                               echo "options = ${IPADDR[$i]} 
netmask ${NETMASK[$i]}"
-                                               if [ ! -z "$GATEWAY" ]; then
-                                                       echo "gateway = default 
gw $GATEWAY"
-                                               fi
-                                       fi
-                               fi
-                       fi
-               done ) >/etc/sysconfig/network/default
-               mv /etc/sysconfig/interfaces /etc/sysconfig/interfaces.pacsave
-               echo "warning: your old network configuration file 
(/etc/sysconfig/interfaces)"
-               echo "converted to the new format to 
/etc/sysconfig/network/default"
-       fi
-       # this can be removed after Frugalware-1.6
-       rm -f /etc/rc.d/rc?.d/???rc.hostname
-       rm -f /etc/rc.d/rc?.d/???rc.interfaces
-}
-
-op=$1
-shift
-$op $*
-
-# vim: ft=sh
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to