4d67338c9e
arpwatch changes: - Convert arp2ethers from csh to sh - updated ethercode.dat - misc minor bugfixes Changes from Geert Hendrickx: - move ethercodes.dat to share/arpwatch (from etc) - Use ${VARBASE:Q} instead of ${VARBASE} as suggested by pkglint - Use OWN_DIRS to note the admin about the stale db directory after deinstallation Changes from William Fletcher: - add a rc.d script - add a '-m' option to specify the recipient for email messages (still defaults to root) Fix pkg/32151 by Geert Hendrickx
37 lines
1.2 KiB
Text
37 lines
1.2 KiB
Text
$NetBSD: patch-aa,v 1.6 2005/11/30 22:36:43 bouyer Exp $
|
|
|
|
--- Makefile.in.orig 2000-06-15 02:39:55.000000000 +0200
|
|
+++ Makefile.in
|
|
@@ -30,8 +30,10 @@ exec_prefix = @exec_prefix@
|
|
BINDEST = @sbindir@
|
|
# Pathname of directory to install the man page
|
|
MANDEST = @mandir@
|
|
+# Pathname of directory to install ethernet vendor codes
|
|
+SHAREDEST = $(prefix)/share/arpwatch
|
|
# Pathname of directory to install database file
|
|
-ARPDIR = $(prefix)/arpwatch
|
|
+ARPDIR = ${VARBASE}/db/arpwatch
|
|
|
|
# VPATH
|
|
srcdir = @srcdir@
|
|
@@ -45,7 +47,8 @@ CC = @CC@
|
|
PROG = arpwatch
|
|
CCOPT = @V_CCOPT@
|
|
INCLS = -I. @V_INCLS@
|
|
-DEFS = -DDEBUG @DEFS@ -DARPDIR=\"$(ARPDIR)\" -DPATH_SENDMAIL=\"$(SENDMAIL)\"
|
|
+DEFS = -DDEBUG @DEFS@ -DARPDIR=\"$(ARPDIR)\" -DPATH_SENDMAIL=\"$(SENDMAIL)\" \
|
|
+ -DETHERCODES=\"$(SHAREDEST)/ethercodes.dat\"
|
|
|
|
# Standard CFLAGS
|
|
CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
|
|
@@ -110,8 +113,8 @@ zap: zap.o intoa.o
|
|
$(CC) $(CFLAGS) -o $@ zap.o intoa.o -lutil
|
|
|
|
install: force
|
|
- $(INSTALL) -m 555 -o bin -g bin arpwatch $(DESTDIR)$(BINDEST)
|
|
- $(INSTALL) -m 555 -o bin -g bin arpsnmp $(DESTDIR)$(BINDEST)
|
|
+ $(INSTALL) arpwatch $(DESTDIR)$(BINDEST)
|
|
+ $(INSTALL) arpsnmp $(DESTDIR)$(BINDEST)
|
|
|
|
install-man: force
|
|
$(INSTALL) -m 444 -o bin -g bin $(srcdir)/arpwatch.8 \
|