From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jan 27 20:30:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82293106566C for ; Tue, 27 Jan 2009 20:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5F8988FC17 for ; Tue, 27 Jan 2009 20:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0RKU4de075810 for ; Tue, 27 Jan 2009 20:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0RKU4rI075805; Tue, 27 Jan 2009 20:30:04 GMT (envelope-from gnats) Resent-Date: Tue, 27 Jan 2009 20:30:04 GMT Resent-Message-Id: <200901272030.n0RKU4rI075805@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, Lewis Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24E581065672 for ; Tue, 27 Jan 2009 20:26:47 +0000 (UTC) (envelope-from moggie@elasticmind.net) Received: from mail.elasticmind.net (mail.elasticmind.net [85.113.90.11]) by mx1.freebsd.org (Postfix) with ESMTP id E03CD8FC13 for ; Tue, 27 Jan 2009 20:26:46 +0000 (UTC) (envelope-from moggie@elasticmind.net) Received: by mail.elasticmind.net (Postfix, from userid 1001) id 9492B26D053; Tue, 27 Jan 2009 20:06:56 +0000 (GMT) Message-Id: <20090127200656.9492B26D053@mail.elasticmind.net> Date: Tue, 27 Jan 2009 20:06:56 +0000 (GMT) From: Lewis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/131060: [maintainer-update|patch] irc/ircd-ratbox: Permissions fix for ratbox 2.2.x X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Lewis List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2009 20:30:04 -0000 >Number: 131060 >Category: ports >Synopsis: [maintainer-update|patch] irc/ircd-ratbox: Permissions fix for ratbox 2.2.x >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: Tue Jan 27 20:30:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Lewis >Release: FreeBSD 6.4-RELEASE amd64 >Organization: >Environment: System: FreeBSD 6.4-RELEASE FreeBSD 6.4-RELEASE #0: Fri Dec 5 00:14:33 GMT 2008 amd64 >Description: In order to modify ban files such as kline.conf and xline.conf, ircd-ratbox 2.2.x needs write permissions to the directory containing these files so it can manipulate their temporary counterparts during the update process. To facilitate this, and to save the user from having to make this change themselves, the '/usr/local/etc/ircd-ratbox/' directory is now set to be owned by the IRCD user instead of root. Worth noting that this issue does not affect ircd-ratbox 3.x since it stores its ban data using sqlite in a different location, and that the IRCD configuration file (ircd.conf) itself should still be owned by root as an additional security measure. Thanks go to steinex@efnet for this. >How-To-Repeat: >Fix: --- ircd-ratbox-2.2.8_update.diff begins here --- diff -ruN ircd-ratbox.orig/Makefile ircd-ratbox/Makefile --- ircd-ratbox.orig/Makefile 2009-01-27 17:44:57.000000000 +0000 +++ ircd-ratbox/Makefile 2009-01-27 17:49:13.000000000 +0000 @@ -179,9 +179,10 @@ pre-su-install: @${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - ${MKDIR} ${PREFIX}/etc/${PORTNAME} - ${MKDIR} ${DATADIR}/help - ${MKDIR} ${PREFIX}/lib/${PORTNAME}/modules + ${MKDIR} ${PREFIX}/etc/${PORTNAME} + ${CHOWN} ircd:ircd ${PREFIX}/etc/${PORTNAME} + ${MKDIR} ${DATADIR}/help + ${MKDIR} ${PREFIX}/lib/${PORTNAME}/modules post-install: .if !defined(NOPORTDOCS) --- ircd-ratbox-2.2.8_update.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: