arpwatch: obey our LDFLAGS

This commit is contained in:
Toyam Cox 2016-06-19 11:35:55 -04:00
parent c524183981
commit b92b2d24c8
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'arpwatch'
pkgname=arpwatch
version=2.1a15
revision=1
revision=2
build_style=gnu-configure
makedepends="libpcap-devel"
short_desc="Ethernet/FDDI station activity monitor"
@ -14,6 +14,8 @@ checksum=c1df9737e208a96a61fa92ddad83f4b4d9be66f8992f3c917e9edf4b05ff5898
make_install_target="install install-man"
pre_configure() {
# PIE support
export CFLAGS="$CFLAGS $LDFLAGS"
# 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