Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 2014 13:30:20 -0400 (EDT)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/189781: [patch] install manpages for security/py-fail2ban
Message-ID:  <20140513173020.BE3B311F811@apnoea.adamw.org>
Resent-Message-ID: <201405131740.s4DHe0M1096240@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         189781
>Category:       ports
>Synopsis:       [patch] install manpages for security/py-fail2ban
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 13 17:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Adam Weinberger
>Release:        FreeBSD 10.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD apnoea.adamw.org 10.0-STABLE FreeBSD 10.0-STABLE #6: Wed Apr 30 16:48:25 EDT 2014 root@apnoea.adamw.org:/usr/obj/usr/src/sys/PEEP i386


	
>Description:

fail2ban's documentation isn't the greatest. Information on how to configure
the jails and run the commands doesn't even exist on the fail2ban website, so
we really should install the included manpages.

The attached patch installs the manpages included in the source tarball.

>How-To-Repeat:
>Fix:

--- fail2ban.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 353232)
+++ Makefile	(working copy)
@@ -2,6 +2,7 @@
 
 PORTNAME=	fail2ban
 PORTVERSION=	0.9.0
+PORTREVISION=	1
 CATEGORIES=	security python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -49,5 +50,9 @@
 	@${MKDIR} ${STAGEDIR}${FAIL2BAN_DBDIR}
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
+.for file in fail2ban-client fail2ban-regex fail2ban-server fail2ban
+	@${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
 
 .include <bsd.port.mk>
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 353232)
+++ pkg-plist	(working copy)
@@ -199,6 +199,11 @@
 %%PYTHON_SITELIBDIR%%/fail2ban/tests/__init__.pyc
 %%PYTHON_SITELIBDIR%%/fail2ban/tests/utils.py
 %%PYTHON_SITELIBDIR%%/fail2ban/tests/utils.pyc
+man/man1/fail2ban-client.1.gz
+man/man1/fail2ban-regex.1.gz
+man/man1/fail2ban-server.1.gz
+man/man1/fail2ban.1.gz
+man/man5/fail2ban-jail.conf.5.gz
 @dirrm %%PYTHON_SITELIBDIR%%/fail2ban/tests
 @dirrm %%PYTHON_SITELIBDIR%%/fail2ban/server
 @dirrm %%PYTHON_SITELIBDIR%%/fail2ban/client
--- fail2ban.patch ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140513173020.BE3B311F811>