pkgsrc/net/arpwatch/Makefile

39 lines
1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.21 2004/12/10 23:32:34 minskim Exp $
#
DISTNAME= arpwatch-2.1a11
PKGREVISION= 1
1998-05-14 11:23:58 +02:00
CATEGORIES= net
MASTER_SITES= ftp://ftp.ee.lbl.gov/
2003-07-18 00:50:55 +02:00
MAINTAINER= bouyer@NetBSD.org
COMMENT= Monitor ARP activity on a network, maintaining a database
2004-04-25 10:11:38 +02:00
USE_BUILDLINK3= yes
GNU_CONFIGURE= yes
LIBS+= ${BUILDLINK_LDADD.libpcap}
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'
pre-patch:
f=arpwatch.h; \
${MV} ${WRKSRC}/$$f ${WRKSRC}/$$f-prepatch; \
${SED} -e '/Header/s|\$$||g' ${WRKSRC}/$$f-prepatch > ${WRKSRC}/$$f
post-install:
${INSTALL_MAN} ${WRKSRC}/arpwatch.8 ${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/arpsnmp.8 ${PREFIX}/man/man8
@${INSTALL_DATA_DIR} ${VARBASE}/db/arpwatch
${TOUCH} ${VARBASE}/db/arpwatch/arp.dat
${INSTALL_DATA} ${WRKSRC}/ethercodes.dat ${PREFIX}/etc
2004-04-25 10:11:38 +02:00
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"