updated on Fri Jan 20 04:00:45 UTC 2012
[aur-mirror.git] / arpon / PKGBUILD
blob690918a6dec5584c49798dd88ca8bca4b613ce95
1 # Maintainer: Jonathan Liu <net147@gmail.com>
2 pkgname=arpon
3 _realpkgname=ArpON
4 pkgver=2.7
5 pkgrel=1
6 pkgdesc="Arp handler inspectiON - a portable Arp handler"
7 arch=('i686' 'x86_64')
8 url="http://arpon.sourceforge.net/"
9 license=('custom')
10 depends=('bash' 'libnet' 'libpcap')
11 makedepends=('cmake' 'libdnet')
12 backup=('etc/conf.d/arpon')
13 source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${_realpkgname}-${pkgver}.tar.gz"
14         "arpon"
15         "arpon.conf.d")
16 md5sums=('3c3230f6852b9ffd5618a35c2f25221c'
17          '86f43d0040e3947c0509de1ed0902775'
18          '9b5ee4ac66f42a10efc2768bbd999a18')
20 build() {
21   cd "${srcdir}/${_realpkgname}-${pkgver}"
22   [ -d build ] || mkdir build
23   cd build
24   cmake -DPCAP_LIB_DIR=/usr/lib -DPCAP_LIBRARY=/usr/lib/libpcap.so ..
25   make
28 package() {
29   cd "${srcdir}/${_realpkgname}-${pkgver}/build"
30   make DESTDIR="${pkgdir}" install
31   install -D -m644 "../LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
32   install -D -m755 "${srcdir}/arpon" "${pkgdir}/etc/rc.d/arpon"
33   install -D -m644 "${srcdir}/arpon.conf.d" "${pkgdir}/etc/conf.d/arpon"
36 # vim:set ts=2 sw=2 et: