updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / owamp / PKGBUILD
blob791764bb28e3b16c53c4f42f4a69438df7c9eda9
1 # Contributor: Mark Smith <markzzzsmith@yahoo.com.au>
2 pkgname=owamp
3 pkgver=3.1
4 pkgrel=2
5 pkgdesc="RFC4656 - One-Way Active Measurement Protocol a.k.a. One Way Ping"
6 url="http://e2epi.internet2.edu/owamp/"
7 license="custom"
8 arch=('i686' 'x86_64')
9 makedepends=('automake' 'coreutils' 'gawk' 'make' 'gcc' 'binutils' 'grep'
10              'glibc')
11 depends=('glibc' 'ntp')
12 backup=('etc/owamp/owampd.conf'
13         'etc/owamp/owampd.limits'
14         'etc/owamp/owampd.pfs')
15 install=install.owamp
16 source=(http://e2epi.internet2.edu/owamp/download/$pkgname-$pkgver.tar.gz
17         install.owamp
18         owampd.rc.d)
19 md5sums=('7e9c75b3102ca48df2cd7e0de77de759'
20          '9a77b37ea8847493d48d857ba5c48efa'
21          '24e6d81e555c44d70e0dbd0ed00f45e1')  
23 build() {
25   cd $startdir/src/$pkgname-$pkgver
27   ./configure -C \
28         --prefix=/usr \
29         --sysconfdir=/etc/owamp \
30         --mandir=/usr/share/man
32   make || return 1
33   make DESTDIR=$startdir/pkg install
35   install -D -m444 conf/owampd.conf \
36         $startdir/pkg/etc/owamp/owampd.conf.sample
37   install -D -m444 conf/owampd.limits \
38         $startdir/pkg/etc/owamp/owampd.limits.sample
40   install -D -m755 $startdir/owampd.rc.d \
41         $startdir/pkg/etc/rc.d/owampd
43   install -D -m444 LICENSE \
44         $startdir/pkg/usr/share/licenses/$pkgname/LICENSE