1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/security/fwanalog/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

47 lines
1.1 KiB
Makefile

# Created by: Kimura Fuyuki <fuyuki@mj.0038.net>
# $FreeBSD$
PORTNAME= fwanalog
PORTVERSION= 0.6.9
PORTREVISION= 6
CATEGORIES= security
MASTER_SITES= http://tud.at/programm/fwanalog/
MAINTAINER= cy@FreeBSD.org
COMMENT= Firewall log summarizer that uses Analog
RUN_DEPENDS= analog:www/analog
CONFFILES= fwanalog-dom.tab \
fwanalog.analog.conf \
fwanalog.analog.conf.local \
fwanalog.lng \
fwanalog.opts \
services.conf
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} \
-e "s,the script's directory.*$$,${ETCDIR},;" \
-e 's,cd .*$$,cd ${ETCDIR},; s,sh\$$/,\$$/.,' \
${WRKSRC}/fwanalog.sh
${REINPLACE_CMD} -e 's/"freebsd/"ipf/; s/"ipflog/"messages/' \
${WRKSRC}/fwanalog.opts.freebsd
do-build:
${LN} ${WRKSRC}/fwanalog.opts.freebsd ${WRKSRC}/fwanalog.opts
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/fwanalog.sh ${STAGEDIR}${PREFIX}/sbin/fwanalog
@${MKDIR} ${STAGEDIR}${ETCDIR}
.for i in ${CONFFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${ETCDIR}/${i}.sample
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>