summaryrefslogtreecommitdiff
path: root/net/arpwatch/patches/patch-aa
blob: 8cb79a4aa5e4c3c0458f25e41023bedcb4631919 (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.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 \