1 # Template file for 'arpwatch'
5 build_style=gnu-configure
6 makedepends="libpcap-devel"
7 short_desc="Ethernet/FDDI station activity monitor"
8 maintainer="Andrea Brancaleoni <abc@pompel.me>"
10 homepage="ftp://ftp.ee.lbl.gov"
11 distfiles="ftp://ftp.ee.lbl.gov/$pkgname-$version.tar.gz"
12 checksum=c1df9737e208a96a61fa92ddad83f4b4d9be66f8992f3c917e9edf4b05ff5898
14 make_install_target="install install-man"
18 export CFLAGS="$CFLAGS $LDFLAGS"
19 # move arp database in /var/lib/arpwatch
20 # /var is used because arpwatch write its learned mac into this folder
21 sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in
22 # binary ownership to root
23 sed -i 's/-\(o\|g\) bin/-\1 root/g' Makefile.in
24 # Do not spam root user
25 sed -i 's|root|arpwatch|' addresses.h.in
29 install -d -m 0755 $DESTDIR/usr/{bin,share/man/man8}
30 vlicense $FILESDIR/LICENSE