aboutsummaryrefslogtreecommitdiff
path: root/net/iplog/Makefile
blob: d2b679ebde0f776949395a49f0bacc10bbaf7661 (plain) (blame)
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
# Created by: Dominik Rothert <dr@domix.de>
# $FreeBSD$

PORTNAME=	iplog
PORTVERSION=	2.2.3
PORTREVISION=	3
CATEGORIES=	net security
MASTER_SITES=	SF/ojnk/${PORTNAME}/${PORTVERSION}

MAINTAINER=	udo.schweigert@siemens.com
COMMENT=	TCP/IP traffic logging tool

USES=		gmake
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-lpthread -L${LOCALBASE}/lib

USE_RC_SUBR=	iplog

post-patch:
.for FILE in example-iplog.conf iplog.8 iplog.conf.5 src/iplog.h
	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${FILE}
.endfor
	@${REINPLACE_CMD} -e 's|-pthread||g' ${WRKSRC}/configure

post-install:
	@${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${STAGEDIR}${PREFIX}/etc/iplog.conf.sample

.include <bsd.port.mk>