arpwatch stable port information

Package: arpwatch
Version: 2.1a15
Revision: 1
BuildDepends: libpcap1, fink (>= 0.24.12-1)
Depends: libpcap1-shlibs, daemonic
Source: ftp://ftp.ee.lbl.gov/%n-%v.tar.gz
Source-MD5: cebfeb99c4a7c2a6cee2564770415fe7
SourceDirectory: arpwatch-%v
UpdateConfigGuess: true

PatchFile: %n.patch
PatchFile-MD5: e660b5739b748597fb544c7e5204f152

SetCFLAGS: -L%p/lib -DBIND_8_COMPAT

CompileScript: <<
./configure %c
# patch directory in Makefile
sed -i.bak 's|(prefix)/arpwatch|(prefix)/var/arpwatch|g' Makefile
make
<<

InstallScript: <<
mkdir -p %i/sbin
mkdir -p %i/share/man/man8
mkdir -p %i/var/arpwatch
make install prefix=%i
make install-man prefix=%i/share
cp ethercodes.dat %i/var/arpwatch
<<

PostInstScript: touch %p/var/arpwatch/arp.dat
DocFiles: CHANGES INSTALL README

DaemonicFile: <<

arpwatch
arpwatch


%p/sbin/arpwatch -f %p/var/arpwatch/arp.dat
%p/var/arpwatch/arp.dat



<<

PreRmScript: <<
# clean up
if [ $1 != "upgrade" ]; then
daemonic remove arpwatch
fi
<<

Description: Program monitors mac/ip address pairings
DescDetail: <<
This directory contains source code for arpwatch and arpsnmp, tools
that monitors ethernet or fddi activity and maintain a database of
ethernet/ip address pairings. It also reports certain changes via
email.
<<

DescUsage: <<
email is sent to root. In order to receive this email, do the following:
(1) uncomment the line #O AliasFile=/etc/mail/aliases in /etc/mail/sendmail.cf
(2) create a file /etc/mail/aliases containing one line
root: YourUserName
(3) run sendmail -bi
<<

License: BSD
Homepage: http://www-nrg.ee.lbl.gov/nrg.html
Maintainer: None

arpwatch stable port .patch

diff -ru arpwatch-2.1a15/Makefile.in arpwatch-2.1a15-patched/Makefile.in
--- arpwatch-2.1a15/Makefile.in Thu Jun 15 01:39:55 2000
+++ arpwatch-2.1a15-patched/Makefile.in Sat Jan 12 22:41:51 2002
@@ -44,7 +44,7 @@
CC = @CC@
PROG = arpwatch
CCOPT = @V_CCOPT@
-INCLS = -I. @V_INCLS@
+INCLS = -I. @V_INCLS@ -I@prefix@/include
DEFS = -DDEBUG @DEFS@ -DARPDIR=\"$(ARPDIR)\" -DPATH_SENDMAIL=\"$(SENDMAIL)\"

# Standard CFLAGS
@@ -110,13 +110,13 @@
$(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) -m 555 arpwatch $(DESTDIR)$(BINDEST)
+ $(INSTALL) -m 555 arpsnmp $(DESTDIR)$(BINDEST)

install-man: force
- $(INSTALL) -m 444 -o bin -g bin $(srcdir)/arpwatch.8 \
+ $(INSTALL) -m 444 $(srcdir)/arpwatch.8 \
$(DESTDIR)$(MANDEST)/man8
- $(INSTALL) -m 444 -o bin -g bin $(srcdir)/arpsnmp.8 \
+ $(INSTALL) -m 444 $(srcdir)/arpsnmp.8 \
$(DESTDIR)$(MANDEST)/man8

lint: $(GENSRC) force

arpwatch _unstable_ port .patch