python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / arpwatch / template
blob5eb0da24e5d7a573f9c98df382ba8ff4f62a6e88
1 # Template file for 'arpwatch'
2 pkgname=arpwatch
3 version=2.1a15
4 revision=2
5 build_style=gnu-configure
6 makedepends="libpcap-devel"
7 short_desc="Ethernet/FDDI station activity monitor"
8 maintainer="Andrea Brancaleoni <abc@pompel.me>"
9 license="BSD"
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"
16 pre_configure() {
17         # PIE support
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
28 pre_install() {
29         install -d -m 0755 $DESTDIR/usr/{bin,share/man/man8}
30         vlicense $FILESDIR/LICENSE