blob: adb4340e5ccaf288335e3d56ac27e690f981cff9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$NetBSD: patch-aa,v 1.4 2001/08/24 11:37:07 abs Exp $
--- Makefile.in.orig Thu Jun 15 01:39:55 2000
+++ Makefile.in
@@ -30,8 +30,10 @@
BINDEST = @sbindir@
# Pathname of directory to install the man page
MANDEST = @mandir@
+# Pathname of directory to install ethernet vendor codes
+ETCDEST = $(prefix)/etc
# Pathname of directory to install database file
-ARPDIR = $(prefix)/arpwatch
+ARPDIR = /var/db/arpwatch
# VPATH
srcdir = @srcdir@
@@ -45,7 +47,8 @@
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=\"$(ETCDEST)/ethercodes.dat\"
# Standard CFLAGS
CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
@@ -110,8 +113,8 @@
$(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 \
|