From owner-svn-ports-head@FreeBSD.ORG Wed Jul 23 23:27:40 2014 Return-Path: Delivered-To: svn-ports-head@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 46E78BA; Wed, 23 Jul 2014 23:27:40 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (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 1809526CA; Wed, 23 Jul 2014 23:27:40 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6NNRdqF054466; Wed, 23 Jul 2014 23:27:39 GMT (envelope-from ohauer@svn.freebsd.org) Received: (from ohauer@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6NNRd7A054460; Wed, 23 Jul 2014 23:27:39 GMT (envelope-from ohauer@svn.freebsd.org) Message-Id: <201407232327.s6NNRd7A054460@svn.freebsd.org> From: Olli Hauer Date: Wed, 23 Jul 2014 23:27:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r362754 - in head/www/squidstats: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2014 23:27:40 -0000 Author: ohauer Date: Wed Jul 23 23:27:39 2014 New Revision: 362754 URL: http://svnweb.freebsd.org/changeset/ports/362754 QAT: https://qat.redports.org/buildarchive/r362754/ Log: - unbreak stage phase where the squid user is unknown Noted by John Marino by PM Modified: head/www/squidstats/Makefile head/www/squidstats/files/patch-graph__src__Makefile head/www/squidstats/pkg-plist Modified: head/www/squidstats/Makefile ============================================================================== --- head/www/squidstats/Makefile Wed Jul 23 23:11:05 2014 (r362753) +++ head/www/squidstats/Makefile Wed Jul 23 23:27:39 2014 (r362754) @@ -3,7 +3,7 @@ PORTNAME= squidstats PORTVERSION= 54 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} DISTNAME= squidstats-r${PORTVERSION} @@ -20,6 +20,7 @@ SHEBANG_FILES= graph/src/stats.pl.in USERS= squid GROUPS= squid +PLIST_SUB+= WWWOWN=${WWWOWN} SQUID_USER=${USERS} SUB_FILES= pkg-message Modified: head/www/squidstats/files/patch-graph__src__Makefile ============================================================================== --- head/www/squidstats/files/patch-graph__src__Makefile Wed Jul 23 23:11:05 2014 (r362753) +++ head/www/squidstats/files/patch-graph__src__Makefile Wed Jul 23 23:27:39 2014 (r362754) @@ -1,5 +1,5 @@ ---- ./graph/src/Makefile.orig 2014-07-19 13:30:29.000000000 +0200 -+++ ./graph/src/Makefile 2014-07-19 13:32:27.000000000 +0200 +--- ./graph/src/Makefile.orig 2009-01-07 19:20:02.000000000 +0100 ++++ ./graph/src/Makefile 2014-07-24 01:02:02.000000000 +0200 @@ -33,21 +33,21 @@ $(RM) stats.pl config.ini graph-summary.cgi @@ -25,8 +25,8 @@ - $(INSTALL) -m 0644 templates.conf $(ETCDIR)/templates.conf - $(INSTALL) -m 0644 snmp_monitor.cfg $(ETCDIR)/snmp_monitor.cfg - $(INSTALL) -m 0644 graph.css $(WEB_DATADIR)/graph.css -+ $(INSTALL_DIR) -m 0755 -o $(WEB_USER) $(DESTDIR)$(GRAPH_DATADIR) -+ $(INSTALL_DIR) -m 0755 -o $(STATS_USER) $(DESTDIR)$(RRD_DATADIR) ++ $(INSTALL_DIR) -m 0755 $(DESTDIR)$(GRAPH_DATADIR) ++ $(INSTALL_DIR) -m 0755 $(DESTDIR)$(RRD_DATADIR) + $(INSTALL_DIR) -m 0755 $(DESTDIR)$(WEB_DATADIR) + $(INSTALL_DIR) -m 0755 $(DESTDIR)$(CGIDIR) + $(INSTALL_DIR) -m 0755 $(DESTDIR)$(ETCDIR) Modified: head/www/squidstats/pkg-plist ============================================================================== --- head/www/squidstats/pkg-plist Wed Jul 23 23:11:05 2014 (r362753) +++ head/www/squidstats/pkg-plist Wed Jul 23 23:27:39 2014 (r362754) @@ -24,6 +24,10 @@ www/cgi-bin/graph-summary.cgi @dirrm %%DATADIR%%/templates @dirrm %%DATADIR%% @dirrmtry www/cgi-bin +@cwd / +@comment set directory owner +@exec chown -R %%WWWOWN%% "/var/db/squidstats/graphs" +@exec chown -R %%SQUID_USER%% "/var/db/squidstats/rrd" @unexec rmdir "/var/db/squidstats/graphs" >/dev/null 2>&1 || : @unexec rmdir "/var/db/squidstats/rrd" >/dev/null 2>&1 || : @unexec rmdir "/var/db/squidstats" >/dev/null 2>&1 || :