summaryrefslogtreecommitdiff
path: root/net/arpwatch/patches/patch-ab
blob: eb78f0356a0bd8845ba9c2dea72b17c7d44b7513 (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.4 1998/11/04 17:25:12 mycroft Exp $

--- Makefile.in.orig	Wed Jul 29 01:16:45 1998
+++ Makefile.in	Wed Nov  4 12:12:31 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)\" -DPATH_SENDMAIL=\"$(SENDMAIL)\"
+DEFS = -DDEBUG @DEFS@ -DARPDIR=\"$(ARPDIR)\" -DPATH_SENDMAIL=\"$(SENDMAIL)\" \
+       -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 \