Date: Wed, 15 Dec 2010 02:10:09 GMT From: Corey Smith <corsmith@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/153162: [MAINTAINER UPDATE] net-mgmt/torrus: 1.0.9 to 1.0.9_1 Message-ID: <201012150210.oBF2A9NE052214@red.freebsd.org> Resent-Message-ID: <201012150220.oBF2K8Mt045295@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 153162 >Category: ports >Synopsis: [MAINTAINER UPDATE] net-mgmt/torrus: 1.0.9 to 1.0.9_1 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Dec 15 02:20:08 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Corey Smith >Release: 8.1-RELEASE >Organization: >Environment: FreeBSD host 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Tue Nov 16 13:55:37 EST 2010 root@host:/usr/src/sys/amd64/compile/CUSTOM amd64 >Description: Maintainer update to torrus 1.0.9_1 This revision fixes some inconsistencies between the port and package installs regarding directory permissions and user/group creation. This revision also allows torrus to support multiple threads if the installed perl supports it. >How-To-Repeat: Patch attached >Fix: Patch attached Patch attached with submission follows: diff -urN torrus-1.0.9/Makefile torrus/Makefile --- torrus-1.0.9/Makefile 2010-11-26 06:16:34.000000000 -0500 +++ torrus/Makefile 2010-12-14 13:49:50.270310278 -0500 @@ -7,6 +7,7 @@ PORTNAME= torrus PORTVERSION= 1.0.9 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= SF @@ -42,8 +43,7 @@ pkgdocdir=${DOCSDIR} \ exmpdir=${EXAMPLESDIR} \ perllibdir=${SITE_PERL} \ - scriptsdir=${PREFIX}/libexec/torrus/scripts \ - --enable-pkgonly + scriptsdir=${PREFIX}/libexec/torrus/scripts MAN1= torrus.1 torrus_acledit.1 torrus_buildsearchdb.1 \ torrus_cleanup.1 torrus_clearcache.1 torrus_collector.1 \ @@ -60,13 +60,13 @@ .include <bsd.port.pre.mk> -pre-install: - @if ! pw groupshow ${TORRUS_USER}; then \ +pre-configure: + @if ! pw groupshow ${TORRUS_USER} >/dev/null 2>&1; then \ pw groupadd ${TORRUS_USER}; \ fi - @if ! pw usershow ${TORRUS_USER}; then \ + @if ! pw usershow ${TORRUS_USER} >/dev/null 2>&1; then \ pw useradd ${TORRUS_USER} -g ${TORRUS_USER} \ - -h - -d ${PREFIX}/torrus -c "torrus daemon"; \ + -h - -d /var/torrus -c "torrus daemon"; \ pw usermod www -G ${TORRUS_USER}; \ fi diff -urN torrus-1.0.9/pkg-plist torrus/pkg-plist --- torrus-1.0.9/pkg-plist 2010-11-26 06:16:34.000000000 -0500 +++ torrus/pkg-plist 2010-12-14 16:47:23.777743071 -0500 @@ -269,6 +269,11 @@ %%SITE_PERL%%/Torrus/SQL/SrvExport.pm %%SITE_PERL%%/Torrus/SQL.pm %%SITE_PERL%%/Torrus/TimeStamp.pm +@exec if ! pw groupshow %%TORRUS_USER%% >/dev/null 2>&1; then pw groupadd %%TORRUS_USER%%; fi +@exec if ! pw usershow %%TORRUS_USER%% >/dev/null 2>&1; then pw useradd %%TORRUS_USER%% -g %%TORRUS_USER%% -h - -d /var/torrus -c "torrus daemon"; pw usermod www -G %%TORRUS_USER%%; fi +@unexec if pw groupshow %%TORRUS_USER%% >/dev/null 2>&1; then pw groupdel %%TORRUS_USER%%; fi +@unexec if pw usershow %%TORRUS_USER%% >/dev/null 2>&1; then pw userdel %%TORRUS_USER%%; fi +@exec install -d -g %%TORRUS_USER%% -o %%TORRUS_USER%% -m 2775 /var/log/torrus 2>/dev/null || true @exec install -d -g %%TORRUS_USER%% -o %%TORRUS_USER%% -m 755 /var/torrus 2>/dev/null || true @exec install -d -g %%TORRUS_USER%% -o %%TORRUS_USER%% -m 2775 /var/torrus/cache 2>/dev/null || true @exec install -d -g %%TORRUS_USER%% -o %%TORRUS_USER%% -m 2775 /var/torrus/collector_rrd 2>/dev/null || true @@ -321,4 +326,3 @@ @dirrm %%SITE_PERL%%/Torrus/Collector @dirrm %%SITE_PERL%%/Torrus/ACL @dirrm %%SITE_PERL%%/Torrus -@exec mkdir -p /var/log/torrus >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012150210.oBF2A9NE052214>