Date: Mon, 5 May 2014 16:55:59 GMT From: Christoph Theis <theis@gmx.at> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/189376: [maintainer-update] Fixes for fail2ban 0.9.0 installation Message-ID: <201405051655.s45GtxDh000256@cgiserv.freebsd.org> Resent-Message-ID: <201405051700.s45H00Vf011575@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 189376 >Category: ports >Synopsis: [maintainer-update] Fixes for fail2ban 0.9.0 installation >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon May 05 17:00:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Christoph Theis >Release: >Organization: >Environment: >Description: The latest version of fail2ban requires a directory /var/db/fail2ban, but the setup did not create that directory. I hope I create the directory the correct way this time. I don't hink we have to increment the port revision: There is nothing new in fail2ban itself. And those who already installed it have the directory created or fail2ban would not start. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 352985) +++ Makefile (working copy) @@ -35,8 +35,9 @@ ${WRKSRC}/man/fail2ban-client.1 \ ${WRKSRC}/man/fail2ban-client.h2m \ ${WRKSRC}/setup.py -FAIL2BAN_DBDIR= /var/db/${PORTNAME} +FAIL2BAN_DBDIR= /var/db/fail2ban + post-patch: # @${ECHO_CMD} ${FILES} | ${XARGS} ${REINPLACE_CMD} -e 's,/etc/fail2ban,${ETCDIR},g' @${REINPLACE_CMD} -e 's,/etc/fail2ban,${ETCDIR},g' ${FILES} @@ -47,6 +48,7 @@ post-install: @${MKDIR} ${STAGEDIR}${FAIL2BAN_DBDIR} + @${MKDIR} ${STAGEDIR}/var/run/fail2ban @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) Index: pkg-plist =================================================================== --- pkg-plist (revision 352985) +++ pkg-plist (working copy) @@ -208,3 +208,7 @@ @dirrmtry %%ETCDIR%%/fail2ban.d @dirrmtry %%ETCDIR%%/action.d @dirrmtry %%ETCDIR%% +@cwd / +@dirrmtry /var/db/fail2ban +@dirrmtry /var/run/fail2ban +@cwd >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405051655.s45GtxDh000256>