blob: 7c9492a967a6235463be2f6ab6a2d7a809c1069a (
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
38
39
40
41
42
43
44
45
46
|
# $NetBSD: Makefile,v 1.30 2007/03/24 19:21:29 joerg Exp $
#
DISTNAME= arpwatch-2.1a13
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.ee.lbl.gov/
MAINTAINER= bouyer@NetBSD.org
COMMENT= Monitor ARP activity on a network, maintaining a database
RCD_SCRIPTS= arpwatch
GNU_CONFIGURE= yes
CFLAGS.Darwin+= -DBIND_8_COMPAT
LIBS+= ${BUILDLINK_LDADD.libpcap}
MAKE_ENV+= VARBASE=${VARBASE:Q}
PLIST_SUBST+= VARBASE=${VARBASE:Q}
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'
OWN_DIRS= ${VARBASE:Q}/db/arpwatch
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
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}/${PKGMANDIR}/man8
${INSTALL_MAN} ${WRKSRC}/arpsnmp.8 ${PREFIX}/${PKGMANDIR}/man8
@${INSTALL_DATA_DIR} ${VARBASE}/db/arpwatch
${TOUCH} ${VARBASE}/db/arpwatch/arp.dat
${INSTALL_DATA_DIR} ${PREFIX}/share/arpwatch
${INSTALL_DATA} ${WRKSRC}/ethercodes.dat ${PREFIX}/share/arpwatch
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|