From owner-svn-ports-all@FreeBSD.ORG Sun Apr 6 15:15:53 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org 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 DF93486E; Sun, 6 Apr 2014 15:15:53 +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 BF6F4802; Sun, 6 Apr 2014 15:15:53 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s36FFrBp043794; Sun, 6 Apr 2014 15:15:53 GMT (envelope-from rene@svn.freebsd.org) Received: (from rene@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s36FFqYI043789; Sun, 6 Apr 2014 15:15:52 GMT (envelope-from rene@svn.freebsd.org) Message-Id: <201404061515.s36FFqYI043789@svn.freebsd.org> From: Rene Ladan Date: Sun, 6 Apr 2014 15:15:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r350365 - in head/mail/sgwi: . 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-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2014 15:15:54 -0000 Author: rene Date: Sun Apr 6 15:15:52 2014 New Revision: 350365 URL: http://svnweb.freebsd.org/changeset/ports/350365 QAT: https://qat.redports.org/buildarchive/r350365/ Log: - Stage support - Add a second MASTER_SITE - Suffix patch and resulting files for .htaccess and .htpasswd with ".sample" PR: ports/187798 Submitted by: Lukasz Wasikowski (maintainer) Added: head/mail/sgwi/files/patch-.htaccess.sample (contents, props changed) head/mail/sgwi/files/patch-.htpasswd.sample (contents, props changed) Deleted: head/mail/sgwi/files/patch-.htaccess head/mail/sgwi/files/patch-.htpasswd Modified: head/mail/sgwi/Makefile head/mail/sgwi/files/pkg-install.in head/mail/sgwi/pkg-plist Modified: head/mail/sgwi/Makefile ============================================================================== --- head/mail/sgwi/Makefile Sun Apr 6 15:11:09 2014 (r350364) +++ head/mail/sgwi/Makefile Sun Apr 6 15:15:52 2014 (r350365) @@ -4,7 +4,8 @@ PORTNAME= sgwi PORTVERSION= 1.1.6 CATEGORIES= mail www -MASTER_SITES= http://www.vanheusden.com/sgwi/ +MASTER_SITES= http://www.vanheusden.com/sgwi/ \ + http://lukasz.wasikowski.net/files/ DISTNAME= sqlgreywebinterface-${PORTVERSION} EXTRACT_SUFX= .tgz @@ -25,7 +26,6 @@ PGSQL_DESC= PostgreSQL back-end (use pgs OPTIONS_DEFAULT=MYSQL -NO_STAGE= yes .include .if ${PORT_OPTIONS:MMYSQL} @@ -42,31 +42,14 @@ post-patch: ${FIND} ${WRKSRC} -name '*.orig' -delete do-install: - @[ ! -f ${WRKSRC}/.htpasswd ] || ${MV} ${WRKSRC}/.htpasswd ${WRKSRC}/.htpasswd.sample - @[ ! -f ${WRKSRC}/.htaccess ] || ${MV} ${WRKSRC}/.htaccess ${WRKSRC}/.htaccess.sample - @[ ! -f ${WRKSRC}/includes/config.inc.php ] || ${MV} ${WRKSRC}/includes/config.inc.php ${WRKSRC}/includes/config.inc.php.sample - @${MKDIR} ${WWWDIR} - @${MKDIR} ${WWWDIR}/includes - ${INSTALL_DATA} ${WRKSRC}/*.php ${WWWDIR} - ${INSTALL_DATA} ${WRKSRC}/*.txt ${WWWDIR} - ${INSTALL_DATA} ${WRKSRC}/*.css ${WWWDIR} - ${INSTALL_DATA} ${WRKSRC}/.ht* ${WWWDIR} - ${INSTALL_DATA} ${WRKSRC}/includes/*.sample ${WWWDIR}/includes/ - ${INSTALL_DATA} ${WRKSRC}/includes/*.php ${WWWDIR}/includes/ - @if [ -f ${WWWDIR}/config.inc.php ]; then \ - ${MV} ${WWWDIR}/config.inc.php ${WWWDIR}/includes/config.inc.php; \ - fi - @[ -f ${WWWDIR}/includes/config.inc.php ] || \ - ${CP} ${WWWDIR}/includes/config.inc.php.sample ${WWWDIR}/includes/config.inc.php - @[ -f ${WWWDIR}/.htpasswd ] || \ - ${CP} ${WWWDIR}/.htpasswd.sample ${WWWDIR}/.htpasswd - @[ -f ${WWWDIR}/.htaccess ] || \ - ${CP} ${WWWDIR}/.htaccess.sample ${WWWDIR}/.htaccess - -post-install: - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/ - @${CHOWN} root ${WWWDIR}/.ht* ${WWWDIR}/includes/config.inc.php* - @${CHMOD} -R 0640 ${WWWDIR}/*.php ${WWWDIR}/*.txt ${WWWDIR}/*.css ${WWWDIR}/.ht* ${WWWDIR}/includes/*.php ${WWWDIR}/includes/*.sample - @${CAT} ${PKGMESSAGE} + @${MV} ${WRKSRC}/includes/config.inc.php ${WRKSRC}/includes/config.inc.php.sample + @${MKDIR} ${STAGEDIR}${WWWDIR} + @${MKDIR} ${STAGEDIR}${WWWDIR}/includes + ${INSTALL_DATA} ${WRKSRC}/*.php ${STAGEDIR}${WWWDIR} + ${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${WWWDIR} + ${INSTALL_DATA} ${WRKSRC}/*.css ${STAGEDIR}${WWWDIR} + ${INSTALL_DATA} ${WRKSRC}/.ht* ${STAGEDIR}${WWWDIR} + ${INSTALL_DATA} ${WRKSRC}/includes/*.sample ${STAGEDIR}${WWWDIR}/includes/ + ${INSTALL_DATA} ${WRKSRC}/includes/*.php ${STAGEDIR}${WWWDIR}/includes/ .include Added: head/mail/sgwi/files/patch-.htaccess.sample ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/sgwi/files/patch-.htaccess.sample Sun Apr 6 15:15:52 2014 (r350365) @@ -0,0 +1,11 @@ +--- /dev/null 2008-03-11 22:05:01.000000000 +0100 ++++ .htaccess.sample 2008-03-11 22:03:36.000000000 +0100 +@@ -0,0 +1,8 @@ ++AuthUserFile /usr/local/www/sgwi/.htpasswd ++AuthGroupFile /dev/null ++AuthName "sgwi Admin" ++AuthType Basic ++ ++ ++require valid-user ++ Added: head/mail/sgwi/files/patch-.htpasswd.sample ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/sgwi/files/patch-.htpasswd.sample Sun Apr 6 15:15:52 2014 (r350365) @@ -0,0 +1,4 @@ +--- /dev/null 2008-03-11 22:05:01.000000000 +0100 ++++ .htpasswd.sample 2008-03-11 22:02:21.000000000 +0100 +@@ -0,0 +1 @@ ++admin:1Cm2R1zl5.LII Modified: head/mail/sgwi/files/pkg-install.in ============================================================================== --- head/mail/sgwi/files/pkg-install.in Sun Apr 6 15:11:09 2014 (r350364) +++ head/mail/sgwi/files/pkg-install.in Sun Apr 6 15:15:52 2014 (r350365) @@ -7,6 +7,7 @@ WWWGRP=%%WWWGRP%% if [ "$2" != "POST-INSTALL" ]; then exit 0 else - /usr/sbin/chown ${WWWOWN}:${WWWGRP} ${WWWDIR}/includes/ - /usr/bin/chgrp ${WWWGRP} ${WWWDIR}/.ht* ${WWWDIR}/includes/config.inc.php + /usr/sbin/chown -R ${WWWOWN}:${WWWGRP} ${WWWDIR} + /usr/sbin/chown root:${WWWGRP} ${WWWDIR}/.ht* ${WWWDIR}/includes/config.inc.php* + /bin/chmod -R 0640 ${STAGEDIR}${WWWDIR}/*.php ${STAGEDIR}${WWWDIR}/*.txt ${STAGEDIR}${WWWDIR}/*.css ${STAGEDIR}${WWWDIR}/.ht* ${STAGEDIR}${WWWDIR}/includes/*.php ${STAGEDIR}${WWWDIR}/includes/*.sample fi Modified: head/mail/sgwi/pkg-plist ============================================================================== --- head/mail/sgwi/pkg-plist Sun Apr 6 15:11:09 2014 (r350364) +++ head/mail/sgwi/pkg-plist Sun Apr 6 15:15:52 2014 (r350365) @@ -7,6 +7,7 @@ www/sgwi/.htpasswd.sample www/sgwi/awl.php www/sgwi/connect.php www/sgwi/includes/awl.inc.php +@exec [ -f %D/www/sgwi/config.inc.php ] && mv -f %D/www/sgwi/config.inc.php %D/www/sgwi/includes/config.inc.php @unexec if cmp -s %D/www/sgwi/includes/config.inc.php %D/www/sgwi/includes/config.inc.php.sample; then rm -f %D/www/sgwi/includes/config.inc.php; fi www/sgwi/includes/config.inc.php.sample @exec [ -f %B/config.inc.php ] || cp %B/%f %B/config.inc.php