summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-21 09:56:06 +0100
committerLukc <lukc@upyum.com>2010-12-21 09:56:06 +0100
commita469da22d2381caa14bbbb504268a58703652eca (patch)
treeeb242a8d0bc25321e9066d581709392c63343206
parent4e64ce3b7ff980a304e18684d2d612396ad975f1 (diff)
downloadbase-a469da22d2381caa14bbbb504268a58703652eca.tar.gz
base-a469da22d2381caa14bbbb504268a58703652eca.tar.bz2
base-a469da22d2381caa14bbbb504268a58703652eca.tar.xz
base-a469da22d2381caa14bbbb504268a58703652eca.zip
Recette mise à jour.
-rw-r--r--iproute2/Pkgfile15
1 files changed, 12 insertions, 3 deletions
diff --git a/iproute2/Pkgfile b/iproute2/Pkgfile
index 409003c..a75c1ae 100644
--- a/iproute2/Pkgfile
+++ b/iproute2/Pkgfile
@@ -1,4 +1,4 @@
-description="A collection of utilites for controlling TCP/IP networking and traffic in Linux"
+description="A collection of utilites for controlling TCP/IP networking and traffic in Linux."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
@@ -11,8 +11,17 @@ source=(http://devresources.linuxfoundation.org/dev/iproute2/download/$name-$ver
build ()
{
cd $name-$version;
- sed -i "s|-O2|$CFLAGS -DIPT_LIB_DIR=\\\\\"/usr/lib/xtables\\\\\"|" Makefile;
- make;
+ sed -i "s|-O2|$CFLAGS -DIPT_LIB_DIR=\\\\\"$prefix/lib/xtables\\\\\"|" Makefile;
+ make ${CTARGET:+CC=$CTARGET-gcc};
make MANDIR=$mandir DESTDIR=$PKG install;
+
+ install -d $PKG/{{s,}bin,$prefix/{${mandir/$prefix}/man8,sbin}}
+ install ping $PKG/bin
+ install arping $PKG/sbin
+ install tracepath clockdiff rarpd rdisc ipg tftpd $PKG$prefix/sbin
+ cp -d $SRC/$name-man-$version/* $PKG$mandir/man8
+
+ rm $PKG$mandir/man8/*6.*
+ chmod u+s $PKG/bin/ping
install -D -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net
}