pkgsrc/net/arpwatch/patches/patch-aa

38 lines
1.2 KiB
Text
Raw Normal View History

$NetBSD: patch-aa,v 1.6 2005/11/30 22:36:43 bouyer Exp $
1998-08-07 13:08:53 +02:00
--- 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 \