summaryrefslogtreecommitdiffstats
path: root/net-tools/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'net-tools/Pkgfile')
-rwxr-xr-xnet-tools/Pkgfile15
1 files changed, 4 insertions, 11 deletions
diff --git a/net-tools/Pkgfile b/net-tools/Pkgfile
index 232cd5f73..cf0734b40 100755
--- a/net-tools/Pkgfile
+++ b/net-tools/Pkgfile
@@ -6,20 +6,13 @@
name=net-tools
version=1.60
-release=1
-source=( http://www.tazenda.demon.co.uk/phil/$name/$name-$version.tar.bz2\
- http://www.linuxfromscratch.org/patches/blfs/svn/net-tools-1.60-gcc34-3.patch\
- http://www.linuxfromscratch.org/patches/blfs/svn/net-tools-1.60-kernel_headers-2.patch\
- http://www.linuxfromscratch.org/patches/blfs/svn/net-tools-1.60-mii_ioctl-1.patch)
-
+release=20101030-1
+source=(http://anduin.linuxfromscratch.org/sources/BLFS/svn/n/net-tools-CVS_${release%-*}.tar.gz)
build() {
unset MAKEFLAGS
- cd $name-$version
- patch -Np1 -i ../net-tools-1.60-gcc34-3.patch &&
- patch -Np1 -i ../net-tools-1.60-kernel_headers-2.patch &&
- patch -Np1 -i ../net-tools-1.60-mii_ioctl-1.patch &&
-yes "" | make config &&
+ cd $name-CVS_${release%-*}
+ yes "" | make config &&
sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' \
-e 's|HAVE_MII 0|HAVE_MII 1|g' config.h &&
sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' \