summaryrefslogtreecommitdiff
path: root/testing/net-tools/PKGBUILD
blob: fec4a9806b612a2b5ced7b86120c75e44a5045b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $Id: PKGBUILD 164985 2012-08-07 20:09:18Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>

pkgname=net-tools
pkgver=1.60.20120804git
pkgrel=2
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
	Makefile.patch)
options=(!makeflags)
install=net-tools.install
sha1sums=('a3341086cb403a8d747b783693f72ee2dfd72d82'
          '4191ca56dc01d6aebe26c36c7cc060c638d5ebca')
build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  patch -Np0 -i ${srcdir}/Makefile.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
}