summaryrefslogtreecommitdiff
path: root/testing/net-tools/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/net-tools/PKGBUILD')
-rw-r--r--testing/net-tools/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/net-tools/PKGBUILD b/testing/net-tools/PKGBUILD
new file mode 100644
index 000000000..9468ff936
--- /dev/null
+++ b/testing/net-tools/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 164775 2012-08-04 20:55:03Z ronald $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgname=net-tools
+pkgver=1.60.20120804git
+pkgrel=1
+pkgdesc="Configuration tools for Linux networking"
+arch=(i686 x86_64)
+license=('GPL2')
+url="http://net-tools.sourceforge.net/"
+depends=('glibc')
+
+# http://www.tazenda.demon.co.uk/phil/$pkgname/$pkgname-$pkgver.tar.bz2
+# use git checkout instead
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz)
+options=(!makeflags)
+install=net-tools.install
+sha1sums=('a3341086cb403a8d747b783693f72ee2dfd72d82')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ 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
+}