diff options
author | Rene Ladan <rene@FreeBSD.org> | 2014-04-06 15:15:52 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2014-04-06 15:15:52 +0000 |
commit | 5c1d26756bf1e8f238e249c86f0d36d288770c35 (patch) | |
tree | ea69bd70d12cb1c5cf21ed8363080279330f9a30 /mail/sgwi | |
parent | 0318479619b5cf182730fed1f7dccc93568f7af1 (diff) | |
download | ports-5c1d26756bf1e8f238e249c86f0d36d288770c35.tar.gz ports-5c1d26756bf1e8f238e249c86f0d36d288770c35.zip |
Notes
Diffstat (limited to 'mail/sgwi')
-rw-r--r-- | mail/sgwi/Makefile | 39 | ||||
-rw-r--r-- | mail/sgwi/files/patch-.htaccess.sample (renamed from mail/sgwi/files/patch-.htaccess) | 2 | ||||
-rw-r--r-- | mail/sgwi/files/patch-.htpasswd.sample (renamed from mail/sgwi/files/patch-.htpasswd) | 2 | ||||
-rw-r--r-- | mail/sgwi/files/pkg-install.in | 5 | ||||
-rw-r--r-- | mail/sgwi/pkg-plist | 1 |
5 files changed, 17 insertions, 32 deletions
diff --git a/mail/sgwi/Makefile b/mail/sgwi/Makefile index 635f3e1cf893..c4646abefbf4 100644 --- a/mail/sgwi/Makefile +++ b/mail/sgwi/Makefile @@ -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 pgsql PHP extension) OPTIONS_DEFAULT=MYSQL -NO_STAGE= yes .include <bsd.port.options.mk> .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 <bsd.port.mk> diff --git a/mail/sgwi/files/patch-.htaccess b/mail/sgwi/files/patch-.htaccess.sample index 49624e3cb58e..a2413a2136bf 100644 --- a/mail/sgwi/files/patch-.htaccess +++ b/mail/sgwi/files/patch-.htaccess.sample @@ -1,5 +1,5 @@ --- /dev/null 2008-03-11 22:05:01.000000000 +0100 -+++ .htaccess 2008-03-11 22:03:36.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 diff --git a/mail/sgwi/files/patch-.htpasswd b/mail/sgwi/files/patch-.htpasswd.sample index e07a41da5c40..1f707a951d9a 100644 --- a/mail/sgwi/files/patch-.htpasswd +++ b/mail/sgwi/files/patch-.htpasswd.sample @@ -1,4 +1,4 @@ --- /dev/null 2008-03-11 22:05:01.000000000 +0100 -+++ .htpasswd 2008-03-11 22:02:21.000000000 +0100 ++++ .htpasswd.sample 2008-03-11 22:02:21.000000000 +0100 @@ -0,0 +1 @@ +admin:1Cm2R1zl5.LII diff --git a/mail/sgwi/files/pkg-install.in b/mail/sgwi/files/pkg-install.in index 0612050f1ce4..3a182f0c1fb0 100644 --- a/mail/sgwi/files/pkg-install.in +++ b/mail/sgwi/files/pkg-install.in @@ -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 diff --git a/mail/sgwi/pkg-plist b/mail/sgwi/pkg-plist index ed38cb9816b5..7d56bcf0d7b4 100644 --- a/mail/sgwi/pkg-plist +++ b/mail/sgwi/pkg-plist @@ -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 |