blob: 1b62cdae7cfc6117958bb674199c7a6fb62fca13 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $Id: PKGBUILD 82625 2010-06-15 04:22:56Z allan $
# Maintainer: Aaron Griffin <aaron@archlinux.org>
pkgname=iputils
pkgver=20100214
_traceroutever=1.4a12
pkgrel=2
pkgdesc="IP Configuration Utilities (and Ping)"
arch=(i686 x86_64)
license=('GPL')
url="http://www.linuxfoundation.org/en/Net:Iputils"
groups=('base')
depends=('glibc')
makedepends=('opensp' 'libxslt' 'docbook-xsl')
conflicts=('netkit-base' 'arping' 'netkit-tftpd' 'traceroute')
replaces=('netkit-base' 'traceroute')
source=(http://www.skbuff.net/iputils/$pkgname-s$pkgver.tar.bz2
ftp://ftp.ee.lbl.gov/traceroute-$_traceroutever.tar.gz
permission-fix.patch)
options=(!makeflags)
md5sums=('37596c8b3eed537294e77464b9804726'
'964d599ef696efccdeebe7721cd4828d'
'66109966cad06e425bb12a78bab85b70')
build()
{
#build iptuils
cd $srcdir/$pkgname-s$pkgver
make KERNEL_INCLUDE=/usr/include || return 1 # for i686
for i in arping clockdiff rarpd rdisc tftpd tracepath tracepath6; do
install -D -m755 $i $pkgdir/usr/sbin/$i
done
for i in ping ping6 traceroute6; do
install -D -m4755 $i $pkgdir/bin/$i
done
msg ":: building docs"
# good god, these docs are a pain
# special thanks to Michael(tm) Smith <mike@w3.org> - http://people.w3.org/mike/
# from #docbook on freenode.org for figuring this out
cd doc
for file in *.sgml; do
xf=${file/.sgml/.xml}
osx -xlower -xno-nl-in-tag $file > $xf || true
sed -i "s|<refname>\(.*\), \(.*\)</refname>|<refname>\1</refname>, <refname>\2</refname>|g" $xf
xsltproc /usr/share/xml/docbook/xsl-stylesheets-1.76.0/manpages/docbook.xsl $xf
done
mkdir -p $pkgdir/usr/share/man/man8
install -m644 arping.8 clockdiff.8 ping.8 ping6.8 rarpd.8 rdisc.8 \
tftpd.8 tracepath.8 tracepath6.8 traceroute6.8 \
$pkgdir/usr/share/man/man8/
# build traceroute
# this is combined in this package because it's awkward as a separate package
cd ${srcdir}/traceroute-$_traceroutever
patch -Np1 -i ../permission-fix.patch || return 1
./configure --prefix=/usr --sbindir=/bin --mandir=/usr/share/man
make CFLAGS="${CFLAGS} -Ilinux-include/" || return 1
make DESTDIR=${pkgdir} install install-man
}
|