svn commit: r368222 - head/security/py-fail2ban

Tijl Coosemans tijl at FreeBSD.org
Sun Sep 14 19:31:17 UTC 2014


Author: tijl
Date: Sun Sep 14 19:31:16 2014
New Revision: 368222
URL: http://svnweb.freebsd.org/changeset/ports/368222
QAT: https://qat.redports.org/buildarchive/r368222/

Log:
  - Patch a script to use the right syslogd socket (/var/run/log)
  - Remove .keep_me files because pkg can handle empty directories
  
  PR:		193621
  Submitted by:	theis at gmx.at (maintainer)

Modified:
  head/security/py-fail2ban/Makefile
  head/security/py-fail2ban/pkg-plist

Modified: head/security/py-fail2ban/Makefile
==============================================================================
--- head/security/py-fail2ban/Makefile	Sun Sep 14 19:31:03 2014	(r368221)
+++ head/security/py-fail2ban/Makefile	Sun Sep 14 19:31:16 2014	(r368222)
@@ -2,7 +2,7 @@
 
 PORTNAME=	fail2ban
 PORTVERSION=	0.9.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	security python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -39,12 +39,12 @@ FILES=		${WRKSRC}/bin/fail2ban-client \
 FAIL2BAN_DBDIR=	/var/db/${PORTNAME}
 
 post-patch:
-#	@${ECHO_CMD} ${FILES} | ${XARGS} ${REINPLACE_CMD} -e 's,/etc/fail2ban,${ETCDIR},g'
 	@${REINPLACE_CMD} -e 's,/etc/fail2ban,${ETCDIR},g' ${FILES}
 	@${REINPLACE_CMD} -e 's,paths-debian.conf,paths-freebsd.conf,g' \
 		${WRKSRC}/config/jail.conf
 	@${REINPLACE_CMD} -e 's,/var/lib/fail2ban/fail2ban.sqlite3,${FAIL2BAN_DBDIR}/fail2ban.sqlite3,g' \
 		${WRKSRC}/config/fail2ban.conf
+	@${REINPLACE_CMD} -e 's,"/dev/log","/var/run/log",g' ${WRKSRC}/fail2ban/server/server.py
 
 post-install:
 	@${MKDIR} ${STAGEDIR}${FAIL2BAN_DBDIR} ${STAGEDIR}/var/run/fail2ban
@@ -54,7 +54,5 @@ post-install:
 	@${INSTALL_MAN} ${WRKSRC}/man/${file}.1 ${STAGEDIR}${MANPREFIX}/man/man1
 .endfor
 	@${INSTALL_MAN} ${WRKSRC}/man/jail.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5/fail2ban-jail.conf.5
-	@${TOUCH} ${STAGEDIR}${FAIL2BAN_DBDIR}/.keep_me
-	@${TOUCH} ${STAGEDIR}/var/run/fail2ban/.keep_me
 
 .include <bsd.port.mk>

Modified: head/security/py-fail2ban/pkg-plist
==============================================================================
--- head/security/py-fail2ban/pkg-plist	Sun Sep 14 19:31:03 2014	(r368221)
+++ head/security/py-fail2ban/pkg-plist	Sun Sep 14 19:31:16 2014	(r368222)
@@ -204,8 +204,6 @@ man/man1/fail2ban-regex.1.gz
 man/man1/fail2ban-server.1.gz
 man/man1/fail2ban.1.gz
 man/man5/fail2ban-jail.conf.5.gz
-/var/db/fail2ban/.keep_me
-/var/run/fail2ban/.keep_me
 @dirrm %%PYTHON_SITELIBDIR%%/fail2ban/tests
 @dirrm %%PYTHON_SITELIBDIR%%/fail2ban/server
 @dirrm %%PYTHON_SITELIBDIR%%/fail2ban/client


More information about the svn-ports-head mailing list