diff options
-rw-r--r-- | net-mgmt/arpwatch/Makefile | 4 | ||||
-rw-r--r-- | net-mgmt/arpwatch/files/patch-ab | 19 |
2 files changed, 18 insertions, 5 deletions
diff --git a/net-mgmt/arpwatch/Makefile b/net-mgmt/arpwatch/Makefile index 6af570b3fa77..29466e93de93 100644 --- a/net-mgmt/arpwatch/Makefile +++ b/net-mgmt/arpwatch/Makefile @@ -24,6 +24,10 @@ MAN8= arpwatch.8 arpsnmp.8 USE_RC_SUBR= arpwatch.sh +.ifdef ARPDIR +MAKE_ARGS= ARPDIR=${ARPDIR} +.endif + post-install: if [ ! -d ${PREFIX}/arpwatch ]; then \ ${MKDIR} ${PREFIX}/arpwatch; \ diff --git a/net-mgmt/arpwatch/files/patch-ab b/net-mgmt/arpwatch/files/patch-ab index 76cbc814dfaf..4928d0c9586f 100644 --- a/net-mgmt/arpwatch/files/patch-ab +++ b/net-mgmt/arpwatch/files/patch-ab @@ -1,7 +1,16 @@ ---- Makefile.in.orig Wed Jul 29 06:16:45 1998 -+++ Makefile.in Fri Aug 21 10:57:51 1998 -@@ -44,7 +44,7 @@ - CC = @CC@ +--- Makefile.in.orig Thu Jun 15 08:39:55 2000 ++++ Makefile.in Fri Feb 3 17:12:51 2006 +@@ -31,7 +31,7 @@ + # Pathname of directory to install the man page + MANDEST = @mandir@ + # Pathname of directory to install database file +-ARPDIR = $(prefix)/arpwatch ++ARPDIR ?= $(prefix)/arpwatch + + # VPATH + srcdir = @srcdir@ +@@ -45,7 +45,7 @@ + PROG = arpwatch CCOPT = @V_CCOPT@ INCLS = -I. @V_INCLS@ -DEFS = -DDEBUG @DEFS@ -DARPDIR=\"$(ARPDIR)\" -DPATH_SENDMAIL=\"$(SENDMAIL)\" @@ -9,7 +18,7 @@ # Standard CFLAGS CFLAGS = $(CCOPT) $(DEFS) $(INCLS) -@@ -109,8 +109,8 @@ +@@ -110,8 +110,8 @@ $(CC) $(CFLAGS) -o $@ zap.o intoa.o -lutil install: force |