Bug 189781 - [patch] install manpages for security/py-fail2ban
Summary: [patch] install manpages for security/py-fail2ban
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Adam Weinberger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-13 18:40 UTC by Adam Weinberger
Modified: 2014-05-13 19:30 UTC (History)
0 users

See Also:


Attachments
fail2ban.patch (1.30 KB, patch)
2014-05-13 18:40 UTC, Adam Weinberger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Weinberger freebsd_committer freebsd_triage 2014-05-13 18:40:00 UTC
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.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-13 18:40:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-13 18:40:05 UTC
Maintainer of security/py-fail2ban,

Please note that PR ports/189781 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/189781

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-13 18:40:06 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 theis 2014-05-13 18:50:04 UTC
Am 13.05.2014 19:40, schrieb Edwin Groothuis:
> Maintainer of security/py-fail2ban,
>
> Please note that PR ports/189781 has just been submitted.
>
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
>
> The full text of the PR can be found at:
>      http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/189781

 From my side OK. And thank you for creating the patch.

There is one patch from me pending, where I try to correctly create the 
/var/run/fail2ban directory.


Christoph
Comment 5 Adam Weinberger freebsd_committer freebsd_triage 2014-05-13 19:11:07 UTC
Responsible Changed
From-To: freebsd-python->adamw

Taking this.
Comment 6 dfilter service freebsd_committer freebsd_triage 2014-05-13 19:22:32 UTC
Author: adamw
Date: Tue May 13 18:22:28 2014
New Revision: 353975
URL: http://svnweb.freebsd.org/changeset/ports/353975
QAT: https://qat.redports.org/buildarchive/r353975/

Log:
  Install manpages [1] and create /var/{run,db} directories [2]
  
  PR:		ports/189781 [1], ports/189376 [2]
  Approved by:	maintainer

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

Modified: head/security/py-fail2ban/Makefile
==============================================================================
--- head/security/py-fail2ban/Makefile	Tue May 13 17:11:36 2014	(r353974)
+++ head/security/py-fail2ban/Makefile	Tue May 13 18:22:28 2014	(r353975)
@@ -2,6 +2,7 @@
 
 PORTNAME=	fail2ban
 PORTVERSION=	0.9.0
+PORTREVISION=	1
 CATEGORIES=	security python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -49,5 +50,11 @@ post-install:
 	@${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
+	@${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	Tue May 13 17:11:36 2014	(r353974)
+++ head/security/py-fail2ban/pkg-plist	Tue May 13 18:22:28 2014	(r353975)
@@ -199,6 +199,13 @@ bin/fail2ban-server
 %%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
+/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
@@ -208,3 +215,5 @@ bin/fail2ban-server
 @dirrmtry %%ETCDIR%%/fail2ban.d
 @dirrmtry %%ETCDIR%%/action.d
 @dirrmtry %%ETCDIR%%
+@dirrmtry /var/run/fail2ban
+@dirrmtry /var/db/fail2ban
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 7 Adam Weinberger freebsd_committer freebsd_triage 2014-05-13 19:23:09 UTC
State Changed
From-To: feedback->closed

Committed.