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