iputils: update to 20101006.

This commit is contained in:
Juan RP 2011-02-01 02:05:09 +01:00
parent 27c0e2c407
commit 66076835de
4 changed files with 1068 additions and 26 deletions

View file

@ -1,6 +1,6 @@
--- Makefile.orig 2009-03-06 09:03:41.189028082 +0100
+++ Makefile 2009-03-06 09:08:37.087015943 +0100
@@ -25,6 +25,14 @@ TAG:=`date +s%Y%m%d`
--- a/Makefile.orig 2010-10-06 13:59:20.000000000 +0200
+++ b/Makefile 2011-02-01 01:58:43.338899085 +0100
@@ -25,6 +25,15 @@ TAG:=`date +s%Y%m%d`
all: $(TARGETS)
@ -11,7 +11,8 @@
+ else \
+ install -D -m755 $$f $(DESTDIR)/sbin/$$f; \
+ fi; \
+ \
+ done
tftpd: tftpd.o tftpsubs.o
ping: ping.o ping_common.o
arping: arping.o -lsysfs

View file

@ -1,16 +0,0 @@
the OPEN_MAX define has been removed in newer kernel headers so use the
proper method of getting the value dynamically
http://bugs.gentoo.org/195861
--- rdisc.c
+++ rdisc.c
@@ -247,7 +247,7 @@ void do_fork(void)
if ((pid=fork()) != 0)
exit(0);
- for (t = 0; t < OPEN_MAX; t++)
+ for (t = 0; t < sysconf(_SC_OPEN_MAX); t++)
if (t != s)
close(t);

File diff suppressed because it is too large Load diff

View file

@ -1,15 +1,28 @@
# Template file for 'iputils'
pkgname=iputils
version=20071127
distver=s${version}
wrksrc="$pkgname-$distver"
distfiles="http://www.linuxgrill.com/anonymous/iproute2/$pkgname-$distver.tar.bz2"
version=20101006
patch_args="-Np1"
wrksrc="${pkgname}-s${version}"
distfiles="http://www.skbuff.net/${pkgname}/${pkgname}-s${version}.tar.bz2"
build_style=gnu_makefile
short_desc="IP Configuration Utilities (and Ping)"
short_desc="IP Configuration Utilities (and ping)"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=dbbd87554d66e438245487ac31aa4a542a1c6c1ec8273cfacbbfeda09eb44a93
checksum=fd3af46c80ebb99607c2ca1f2a3608b6fe828e25bbec6e54f2afd25f6ddb6ee7
long_desc="
The iputils package is set of small useful utilities for Linux networking.
It was originally maintained by Alexey Kuznetsov."
Add_dependency run glibc
Add_dependency run libssl
Add_dependency run libsysfs
Add_dependency build libsysfs-devel
Add_dependency build openssl-devel
post_install()
{
install -d ${DESTDIR}/usr/share/man/man8
install -m644 ${wrksrc}/doc/*.8 ${DESTDIR}/usr/share/man/man8
cd ${DESTDIR}/usr/share/man/man8
ln -sf ping.8 ping6.8
ln -sf tracepath.8 tracepath6.8
}