mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# New ports collection makefile for: iplog
|
|
# Date created: 4 Oct 1999
|
|
# Whom: 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
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
MAN5= iplog.conf.5
|
|
MAN8= iplog.8
|
|
|
|
USE_RC_SUBR= iplog
|
|
SUB_FILES= pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
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 ${PREFIX}/etc
|
|
.if !exists(${PREFIX}/etc/iplog.conf)
|
|
${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${PREFIX}/etc/iplog.conf
|
|
.endif
|
|
.if exists(${PREFIX}/etc/iplog.rules)
|
|
@${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} "============================================================================"
|
|
.endif
|
|
@${MKDIR} /var/run/iplog
|
|
|
|
.include <bsd.port.post.mk>
|