ports/153162: [MAINTAINER UPDATE] net-mgmt/torrus: 1.0.9 to 1.0.9_1
Corey Smith
corsmith at gmail.com
Wed Dec 15 02:20:09 UTC 2010
>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 at 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
+ at exec if ! pw groupshow %%TORRUS_USER%% >/dev/null 2>&1; then pw groupadd %%TORRUS_USER%%; fi
+ at 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
+ at unexec if pw groupshow %%TORRUS_USER%% >/dev/null 2>&1; then pw groupdel %%TORRUS_USER%%; fi
+ at unexec if pw usershow %%TORRUS_USER%% >/dev/null 2>&1; then pw userdel %%TORRUS_USER%%; fi
+ at 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
- at exec mkdir -p /var/log/torrus
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list