blob: 5e338937ca01ba2ce73c61cf77d46cdd0ed91260 (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=arpon
pkgver=3.0
_realver=3.0-ng
pkgrel=0
pkgdesc="Arp handler inspectiON is a handler daemon with tools to handle all ARP aspects"
url="http://arpon.sourceforge.net/"
arch="all"
license="BSD"
depends=""
makedepends="libdnet-dev libpcap-dev libnet-dev cmake"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/ArpON-${_realver}.tar.gz
arpon.initd
arpon.confd
"
builddir="$srcdir"/ArpON-$_realver
build() {
cd "$builddir"
mkdir build && cd build
cmake .. -DCMAKE_C_FLAGS="$CFLAGS"
make || return 1
}
package() {
cd "$builddir"/build
make install DESTDIR="$pkgdir" || return 1
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
md5sums="a89ef9bc18e6f0fc9aa8a89aa676a281 ArpON-3.0-ng.tar.gz
60ff0f9c6d035861d8cd608982b02d63 arpon.initd
26986bed19b28cec66ed08447d22efaf arpon.confd"
sha256sums="ea55d1641b4573b19103ca596368e418aecd2a1409adbdce3a9f76dc8ebad590 ArpON-3.0-ng.tar.gz
89169274080a1e7287f065970c13c912e9f7b966c6fe8c498c0d3321c03e0633 arpon.initd
5ffa4f833e511037c07c68617d139d6f6c769ff2a1024b7a0aa863ded83a58de arpon.confd"
sha512sums="e6338018d65f3f8300958e168a9eb6f6be85cba21ae0aee4b03e9838a29a06afbf2448c2f104367aa18389cc549e4489bcf8dad384ad46eadf2884a0908238af ArpON-3.0-ng.tar.gz
9a7c862c3b07e31da091906b61339680b23af154c088eb259f2540916273d8e5f4dc6af5f883564d5b2ede6552b55376aa37b413270f837067ec5ce3d61a076f arpon.initd
c368acd8b0f9945a750e5c39a22fdad2a10f117270cd07f641333fbb9c22223cbf18809665d8675732408e820da5a806dac10c78ab0b9f2dae58cacbe58c61c1 arpon.confd"
|