summaryrefslogtreecommitdiff
path: root/net/arpwatch/patches/patch-ab
blob: 532caae25848513cadf076bef43fad5c0eb57365 (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-ab,v 1.3 1998/08/09 20:37:17 kim Exp $

--- Makefile.in.orig	Thu Apr 24 23:02:01 1997
+++ Makefile.in	Sun Aug  9 16:27:51 1998
@@ -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@
@@ -44,7 +46,8 @@
 CC = @CC@
 CCOPT = @V_CCOPT@
 INCLS = -I. @V_INCLS@
-DEFS = -DDEBUG @DEFS@ -DARPDIR=\"$(ARPDIR)\"
+DEFS = -DDEBUG @DEFS@ -DARPDIR=\"$(ARPDIR)\" \
+    -DETHERCODES=\"$(ETCDEST)/ethercodes.dat\"
 
 # Standard CFLAGS
 CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
@@ -109,8 +112,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 \