blob: 109ba463301c57c310c35cd36c2cfcc45c2ed65e (
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.6 2004/01/27 14:13:49 grant Exp $
#
DISTNAME= iplog-2.2.3
PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ojnk/}
MAINTAINER= gremlin@portal-to-web.de
HOMEPAGE= http://ojnk.sourceforge.net/
COMMENT= Iplog is a tool using pcap to log IP traffic
USE_BUILDLINK2= YES
USE_GNU_TOOLS+= make
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"
|