From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 5 17:00:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D4E4B793 for ; Mon, 5 May 2014 17:00:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B21B33ED for ; Mon, 5 May 2014 17:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s45H006x011576 for ; Mon, 5 May 2014 17:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s45H00Vf011575; Mon, 5 May 2014 17:00:00 GMT (envelope-from gnats) Resent-Date: Mon, 5 May 2014 17:00:00 GMT Resent-Message-Id: <201405051700.s45H00Vf011575@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Christoph Theis Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8171673E for ; Mon, 5 May 2014 16:55:59 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6ED413BA for ; Mon, 5 May 2014 16:55:59 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s45Gtx6U000257 for ; Mon, 5 May 2014 16:55:59 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s45GtxDh000256; Mon, 5 May 2014 16:55:59 GMT (envelope-from nobody) Message-Id: <201405051655.s45GtxDh000256@cgiserv.freebsd.org> Date: Mon, 5 May 2014 16:55:59 GMT From: Christoph Theis To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/189376: [maintainer-update] Fixes for fail2ban 0.9.0 installation X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 May 2014 17:00:01 -0000 >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: