2004-12-11 00:32:34 +01:00
|
|
|
# $NetBSD: Makefile,v 1.21 2004/12/10 23:32:34 minskim Exp $
|
1998-04-27 20:06:37 +02:00
|
|
|
#
|
|
|
|
|
2001-08-24 13:37:07 +02:00
|
|
|
DISTNAME= arpwatch-2.1a11
|
2002-08-05 19:54:02 +02:00
|
|
|
PKGREVISION= 1
|
1998-05-14 11:23:58 +02:00
|
|
|
CATEGORIES= net
|
1998-04-27 21:54:25 +02:00
|
|
|
MASTER_SITES= ftp://ftp.ee.lbl.gov/
|
1998-04-27 20:06:37 +02:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= bouyer@NetBSD.org
|
2003-07-21 19:10:16 +02:00
|
|
|
COMMENT= Monitor ARP activity on a network, maintaining a database
|
1998-04-27 20:06:37 +02:00
|
|
|
|
2004-04-25 10:11:38 +02:00
|
|
|
USE_BUILDLINK3= yes
|
1998-04-27 20:06:37 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2004-11-03 11:59:40 +01:00
|
|
|
LIBS+= ${BUILDLINK_LDADD.libpcap}
|
|
|
|
|
2004-12-11 00:32:34 +01:00
|
|
|
PLIST_SUBST+= VARBASE=${VARBASE}
|
|
|
|
|
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_MESSAGE.paths= "Fixing hardcoded paths."
|
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
SUBST_FILES.paths= arpsnmp.8 arpwatch.8
|
|
|
|
SUBST_SED.paths= -e 's,/usr/operator/arpwatch,${VARBASE}/db/arpwatch,g'
|
|
|
|
|
1999-11-19 13:32:26 +01:00
|
|
|
pre-patch:
|
|
|
|
f=arpwatch.h; \
|
|
|
|
${MV} ${WRKSRC}/$$f ${WRKSRC}/$$f-prepatch; \
|
|
|
|
${SED} -e '/Header/s|\$$||g' ${WRKSRC}/$$f-prepatch > ${WRKSRC}/$$f
|
|
|
|
|
1998-04-27 20:06:37 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/arpwatch.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/arpsnmp.8 ${PREFIX}/man/man8
|
2004-12-11 00:32:34 +01:00
|
|
|
@${INSTALL_DATA_DIR} ${VARBASE}/db/arpwatch
|
|
|
|
${TOUCH} ${VARBASE}/db/arpwatch/arp.dat
|
1998-04-27 20:06:37 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/ethercodes.dat ${PREFIX}/etc
|
|
|
|
|
2004-04-25 10:11:38 +02:00
|
|
|
.include "../../net/libpcap/buildlink3.mk"
|
1998-04-27 20:06:37 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|