1999-10-09 18:40:11 +02:00
|
|
|
# New ports collection makefile for: iplog
|
|
|
|
# Date created: 4 Oct 1999
|
|
|
|
# Whom: Dominik Rothert <dr@domix.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 20:14:07 +02:00
|
|
|
PORTNAME= iplog
|
2001-01-04 16:03:10 +01:00
|
|
|
PORTVERSION= 2.2.3
|
2004-02-04 06:10:27 +01:00
|
|
|
PORTREVISION= 3
|
2000-10-04 08:40:08 +02:00
|
|
|
CATEGORIES= net security
|
2009-08-22 02:32:25 +02:00
|
|
|
MASTER_SITES= SF/ojnk/${PORTNAME}/${PORTVERSION}
|
2000-01-29 22:40:51 +01:00
|
|
|
|
2001-08-31 22:09:58 +02:00
|
|
|
MAINTAINER= udo.schweigert@siemens.com
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= TCP/IP traffic logging tool
|
1999-10-09 18:40:11 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2000-09-23 16:59:10 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2010-03-13 13:54:15 +01:00
|
|
|
MAN5= iplog.conf.5
|
|
|
|
MAN8= iplog.8
|
|
|
|
|
|
|
|
USE_RC_SUBR= iplog
|
|
|
|
SUB_FILES= pkg-message
|
1999-10-09 18:40:11 +02:00
|
|
|
|
2000-01-29 22:40:51 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2000-09-23 16:59:10 +02:00
|
|
|
post-patch:
|
2003-10-28 13:55:09 +01:00
|
|
|
.for FILE in example-iplog.conf iplog.8 iplog.conf.5 src/iplog.h
|
|
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${FILE}
|
2000-09-23 16:59:10 +02:00
|
|
|
.endfor
|
2003-10-28 13:55:09 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-pthread||g' ${WRKSRC}/configure
|
2000-01-29 22:40:51 +01:00
|
|
|
|
1999-10-09 18:40:11 +02:00
|
|
|
post-install:
|
2000-09-23 16:59:10 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${PREFIX}/etc
|
2000-07-07 20:34:09 +02:00
|
|
|
.if !exists(${PREFIX}/etc/iplog.conf)
|
2000-09-23 16:59:10 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${PREFIX}/etc/iplog.conf
|
2001-01-16 16:32:49 +01:00
|
|
|
.endif
|
|
|
|
.if exists(${PREFIX}/etc/iplog.rules)
|
2000-09-23 16:59:10 +02:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "============================================================================"
|
|
|
|
@${ECHO_MSG} "Hint: iplog changed its configuration file from ${PREFIX}/etc/iplog.rules"
|
|
|
|
@${ECHO_MSG} " to ${PREFIX}/etc/iplog.conf"
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "See ${PREFIX}/etc/example-iplog.conf for an example"
|
|
|
|
@${ECHO_MSG} "============================================================================"
|
2001-01-16 16:32:49 +01:00
|
|
|
.endif
|
2010-03-13 13:54:15 +01:00
|
|
|
@${MKDIR} /var/run/iplog
|
1999-10-09 18:40:11 +02:00
|
|
|
|
2000-01-29 22:40:51 +01:00
|
|
|
.include <bsd.port.post.mk>
|