ports/189376: [maintainer-update] Fixes for fail2ban 0.9.0 installation

Christoph Theis theis at gmx.at
Mon May 5 17:00:01 UTC 2014


>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%%
+ at cwd /
+ at dirrmtry /var/db/fail2ban
+ at dirrmtry /var/run/fail2ban
+ at cwd


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list