9be609fad0
close #2796
29 lines
912 B
Bash
29 lines
912 B
Bash
# Template file for 'arpwatch'
|
|
pkgname=arpwatch
|
|
version=2.1a15
|
|
revision=1
|
|
build_style=gnu-configure
|
|
makedepends="libpcap-devel"
|
|
short_desc="Ethernet/FDDI station activity monitor"
|
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
|
license="BSD"
|
|
homepage="ftp://ftp.ee.lbl.gov"
|
|
distfiles="ftp://ftp.ee.lbl.gov/$pkgname-$version.tar.gz"
|
|
checksum=c1df9737e208a96a61fa92ddad83f4b4d9be66f8992f3c917e9edf4b05ff5898
|
|
|
|
make_install_target="install install-man"
|
|
|
|
pre_configure() {
|
|
# move arp database in /var/lib/arpwatch
|
|
# /var is used because arpwatch write its learned mac into this folder
|
|
sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in
|
|
# binary ownership to root
|
|
sed -i 's/-\(o\|g\) bin/-\1 root/g' Makefile.in
|
|
# Do not spam root user
|
|
sed -i 's|root|arpwatch|' addresses.h.in
|
|
}
|
|
|
|
pre_install() {
|
|
install -d -m 0755 $DESTDIR/usr/{bin,share/man/man8}
|
|
vlicense $FILESDIR/LICENSE
|
|
}
|