summaryrefslogtreecommitdiff
path: root/testing/net-tools
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-06 00:02:23 +0000
committerroot <root@rshg054.dnsready.net>2012-08-06 00:02:23 +0000
commit5cb978c42b6c6444161fa41121ea5f07579404bc (patch)
tree8df32941b47d164ce5c0d12f082337989195a3a7 /testing/net-tools
parent9b4356a4ce894946739f7fff9411f62be0fbc122 (diff)
Mon Aug 6 00:02:23 UTC 2012
Diffstat (limited to 'testing/net-tools')
-rw-r--r--testing/net-tools/PKGBUILD37
-rw-r--r--testing/net-tools/net-tools.install12
2 files changed, 49 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
+}
diff --git a/testing/net-tools/net-tools.install b/testing/net-tools/net-tools.install
new file mode 100644
index 000000000..9eee9e51b
--- /dev/null
+++ b/testing/net-tools/net-tools.install
@@ -0,0 +1,12 @@
+post_upgrade() {
+ if [ "$(vercmp $2 1.60-16)" -lt 0 ]; then
+ echo "hostname and {,yp,nis}domainname has moved:"
+ echo "----------"
+ echo "hostname is now in coreutils"
+ echo "domainname is now in yp-tools"
+ echo "their functionality might have changed slightly"
+ echo ""
+ echo "dnsdomainname remains in net-tools"
+ echo "----------"
+ fi
+}