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
|
2000-10-04 06:40:08 +00:00
|
|
|
CATEGORIES= net security
|
2000-06-14 13:21:38 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
2000-09-23 14:59:10 +00:00
|
|
|
http://misc.ojnk.net/~odin/stuff/
|
2000-06-14 13:21:38 +00:00
|
|
|
MASTER_SITE_SUBDIR= ojnk
|
2000-01-29 21:40:51 +00:00
|
|
|
|
2000-01-30 18:19:45 +00:00
|
|
|
MAINTAINER= ust@cert.siemens.de
|
1999-10-09 16:40:11 +00:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2000-09-23 14:59:10 +00:00
|
|
|
GNU_CONFIGURE= yes
|
1999-10-09 16:40:11 +00:00
|
|
|
|
2000-07-07 18:34:09 +00:00
|
|
|
MAN5= iplog.conf.5
|
1999-10-09 16:40:11 +00:00
|
|
|
MAN8= iplog.8
|
|
|
|
|
2000-01-29 21:40:51 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2000-09-23 14:59:10 +00:00
|
|
|
post-patch:
|
|
|
|
.for file in example-iplog.conf iplog.8 iplog.conf.5 src/iplog.h
|
|
|
|
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
|
|
|
|
.endfor
|
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
|
2000-09-23 14:59:10 +00:00
|
|
|
@${ECHO_MSG}
|
2001-01-07 18:57:24 +00:00
|
|
|
@${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/iplog.sh.sample file."
|
|
|
|
@${CAT} ${FILESDIR}/iplog.sh.tmpl | \
|
|
|
|
${SED} -e 's;PREFIX;${PREFIX};' \
|
|
|
|
> ${PREFIX}/etc/rc.d/iplog.sh.sample
|
2001-01-10 15:38:54 +00:00
|
|
|
@${CHMOD} 555 ${PREFIX}/etc/rc.d/iplog.sh.sample
|
|
|
|
@${ECHO_MSG} "----------------------------------------------------------------------------"
|
|
|
|
@${ECHO_MSG} "If you want iplog to be run as a daemon then do:"
|
|
|
|
@${ECHO_MSG} "cp -p ${PREFIX}/etc/rc.d/iplog.sh.sample ${PREFIX}/etc/rc.d/iplog.sh"
|
|
|
|
@${ECHO_MSG} "----------------------------------------------------------------------------"
|
|
|
|
@${ECHO_MSG}
|
1999-10-09 16:40:11 +00:00
|
|
|
|
2000-01-29 21:40:51 +00:00
|
|
|
.include <bsd.port.post.mk>
|