blob: abd59addb1e42228f0018da43f6887dc9c01cfb7 (
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
40
41
42
43
|
# $Id: PKGBUILD 142002 2011-11-03 21:20:18Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=net-tools
pkgver=1.60.20110819cvs
pkgrel=2
pkgdesc="Configuration tools for Linux networking"
arch=(i686 x86_64)
license=('GPL2')
url="http://www.tazenda.demon.co.uk/phil/net-tools"
depends=('glibc')
# 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)
options=(!makeflags)
install=net-tools.install
sha1sums=('02946449191ff279f9f0f7fd7bc65ae21059a2bf'
'654a96bc6575efb4a2e04b49de45d448d240eb6e'
'7888000d8fe867e58b5b00fe2bcf6c3041d716b4')
build() {
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
}
|