diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 17:45:19 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 17:45:19 (GMT) |
commit | 80d1276c4aab094c21ca671b71e5e3cddadefd58 (patch) | |
tree | d0a8e94b9cbfc407a5ee36bbfd6af15d6d063f55 /abs/core/net-tools/PKGBUILD | |
parent | 89ff735fa81051c94f7faeef86049d86aa2d4af7 (diff) | |
download | linhes_pkgbuild-80d1276c4aab094c21ca671b71e5e3cddadefd58.zip linhes_pkgbuild-80d1276c4aab094c21ca671b71e5e3cddadefd58.tar.gz linhes_pkgbuild-80d1276c4aab094c21ca671b71e5e3cddadefd58.tar.bz2 |
net-tools 1.60
Diffstat (limited to 'abs/core/net-tools/PKGBUILD')
-rw-r--r-- | abs/core/net-tools/PKGBUILD | 61 |
1 files changed, 34 insertions, 27 deletions
diff --git a/abs/core/net-tools/PKGBUILD b/abs/core/net-tools/PKGBUILD index da2a710..605620a 100644 --- a/abs/core/net-tools/PKGBUILD +++ b/abs/core/net-tools/PKGBUILD @@ -1,36 +1,43 @@ -# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ -# Maintainer: judd <jvinet@zeroflux.org> +# $Id: PKGBUILD 142384 2011-11-08 22:05:28Z ronald $ +# Maintainer: Ronald van Haren <ronald.archlinux.org> +# Contributor: judd <jvinet@zeroflux.org> + pkgname=net-tools -pkgver=1.60 -pkgrel=22 +pkgver=1.60.20110819cvs +pkgrel=3 pkgdesc="Configuration tools for Linux networking" arch=(i686 x86_64) -license=('GPL') +license=('GPL2') url="http://www.tazenda.demon.co.uk/phil/net-tools" -groups=('base') depends=('glibc') -backup=('etc/conf.d/nisdomainname') -source=(http://www.tazenda.demon.co.uk/phil/$pkgname/$pkgname-$pkgver.tar.bz2 - net-tools.patch gcc340.patch net-tools-1.60-2.6-compilefix.patch - net-tools-1.60-miiioctl.patch nisdomainname.conf.d - net-tools-1.60-nameif.patch + +# http://www.tazenda.demon.co.uk/phil/$pkgname/$pkgname-$pkgver.tar.bz2 +# use cvs checkout instead +source=(ftp://ftp.archlinux.org/other/net-tools/net-tools-1.60.20110819cvs.tar.bz2 + net-tools-1.60-miiioctl.patch net-tools-1.60-nameif_strncpy.patch) -md5sums=('888774accab40217dde927e21979c165' '7ef8d0c6818faa0fdeea94970a20e3fb' - 'b52d899cba9956bb0055150506f41ac1' '51de6eabe2d6d6dc860f72c41cee636b' - 'c16109863bc63f3dad4ef35305a340bb' 'af3eef5d4837939f7858eec692aa4671' - '29a32617382fab1735acba4d920f1fcd' 'e66466b9304dac85eb42b32f1ec3b284') +options=(!makeflags) +install=net-tools.install +sha1sums=('02946449191ff279f9f0f7fd7bc65ae21059a2bf' + '654a96bc6575efb4a2e04b49de45d448d240eb6e' + '7888000d8fe867e58b5b00fe2bcf6c3041d716b4') build() { - cd $startdir/src/$pkgname-$pkgver - export MAKEFLAGS="-j1" - patch -Np1 -i ../net-tools.patch || return 1 - patch -Np1 -i ../net-tools-1.60-2.6-compilefix.patch || return 1 - patch -Np1 -i ../net-tools-1.60-miiioctl.patch || return 1 - patch -Np1 -i ../gcc340.patch || return 1 - patch -Np1 -i ${startdir}/src/net-tools-1.60-nameif.patch || return 1 - patch -Np1 -i ${startdir}/src/net-tools-1.60-nameif_strncpy.patch || return 1 - yes "" | make || return 1 - make BASEDIR=$startdir/pkg update - install -D -m644 ../nisdomainname.conf.d \ - $startdir/pkg/etc/conf.d/nisdomainname + cd $srcdir/$pkgname-$pkgver + patch -Np1 -i ../net-tools-1.60-miiioctl.patch + patch -Np1 -i ${srcdir}/net-tools-1.60-nameif_strncpy.patch + yes "" | make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make BASEDIR=$pkgdir update + + # the following is provided by yp-tools + rm "${pkgdir}"/bin/{nis,yp}domainname + rm "${pkgdir}"/usr/share/man/man1/{nis,yp}domainname.1 + + # hostname is provided by inetutils + rm "${pkgdir}"/bin/{hostname,dnsdomainname,domainname} + rm -rf "${pkgdir}"/usr/share/man/man1 } |