blob: 9f0d9af59e833dcde7bf79625dc4891b57fc1b71 (
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
|
# $NetBSD: Makefile,v 1.3 2003/07/30 15:41:51 jmmv Exp $
#
DISTNAME= iplog-2.2.3
PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ojnk/}
MAINTAINER= gremlin@portal-to-web.de
HOMEPAGE= http://ojnl.sourceforge.net
COMMENT= Iplog is a tool using pcap to log ip traffic
USE_BUILDLINK2= YES
USE_GMAKE= YES
USE_PKGINSTALL= YES
GNU_CONFIGURE= YES
CFLAGSTMP="-I${PREFIX}/include -Wall"
LDFLAGSTMP="-L${PREFIX}/lib -Wl,-R${PREFIX}/lib"
LIBSTMP="-lpthread"
RCD_SCRIPTS= iplog
EGDIR= ${PREFIX}/share/examples/iplog
post-patch:
cd ${WRKSRC}/src && ${SED} s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g \
< iplog.h > iplog.h.patched && ${MV} iplog.h.patched iplog.h
do-configure:
cd ${WRKSRC} && CFLAGS=${CFLAGSTMP} \
LDFLAGS=${LDFLAGSTMP} \
LIBS=${LIBSTMP} \
MAKE=${GMAKE} \
${SH} ./configure --prefix=${PREFIX} --prefix=${GNU_CONFIGURE_PREFIX}
do-build:
cd ${WRKSRC} && ${GMAKE} all
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${EGDIR}/iplog.conf
.include "../../mk/pthread.buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|