core/iputils/PKGBUILD

65 lines
2.3 KiB
Bash
Raw Normal View History

2010-09-22 04:32:15 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2010-03-13 23:25:19 +08:00
pkgname=iputils
pkgver=20100214
_traceroutever=1.4a12
2010-09-22 04:32:15 +08:00
pkgrel=3
2010-03-13 23:25:19 +08:00
pkgdesc="IP Configuration Utilities (and Ping)"
arch=(i686 x86_64)
license=('GPL')
url="http://www.linuxfoundation.org/en/Net:Iputils"
groups=('base')
depends=('glibc')
2010-09-22 04:32:15 +08:00
makedepends=('libxslt') # 'opensp' 'docbook-xsl'
2010-03-13 23:25:19 +08:00
conflicts=('netkit-base' 'arping' 'netkit-tftpd' 'traceroute')
replaces=('netkit-base' 'traceroute')
2010-05-16 23:08:55 +08:00
source=(http://www.skbuff.net/iputils/$pkgname-s$pkgver.tar.bz2
2010-03-13 23:25:19 +08:00
ftp://ftp.ee.lbl.gov/traceroute-$_traceroutever.tar.gz
permission-fix.patch)
options=(!makeflags)
md5sums=('37596c8b3eed537294e77464b9804726'
'964d599ef696efccdeebe7721cd4828d'
'66109966cad06e425bb12a78bab85b70')
build()
{
#build iptuils
cd $startdir/src/$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 $startdir/pkg/usr/sbin/$i
done
for i in ping ping6 traceroute6; do
install -D -m4755 $i $startdir/pkg/bin/$i
done
2010-09-22 04:32:15 +08:00
#msg ":: building docs"
2010-03-13 23:25:19 +08:00
# 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
2010-09-22 04:32:15 +08:00
#cd doc
#for file in *.sgml; do
# xf=${file/.sgml/.xml}
# osx -xlower -xno-nl-in-tag $file > $xf
# sed -i "s|<refname>\(.*\), \(.*\)</refname>|<refname>\1</refname>, <refname>\2</refname>|g" $xf
# xsltproc /usr/share/xml/docbook/xsl-stylesheets-1.75.2/manpages/docbook.xsl $xf
#done
2010-03-13 23:25:19 +08:00
2010-04-04 22:20:41 +08:00
mkdir -p $startdir/pkg/usr/share/man/man8
2010-09-22 04:32:15 +08:00
#install -m644 arping.8 clockdiff.8 ping.8 ping6.8 rarpd.8 rdisc.8 \
# tftpd.8 tracepath.8 tracepath6.8 traceroute6.8 \
# $startdir/pkg/usr/share/man/man8/
2010-03-13 23:25:19 +08:00
# build traceroute
# this is combined in this package because it's awkward as a separate package
cd ${startdir}/src/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
2010-04-04 22:20:41 +08:00
make DESTDIR=${startdir}/pkg install install-man
2010-03-13 23:25:19 +08:00
}