mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
- Update to 1.1.2
PR: 155727 Submitted by: Lukasz Wasikowski <lukasz@wasikowski.net>
This commit is contained in:
parent
526d30f181
commit
58ade6c1f0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275420
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= sgwi
|
||||
PORTVERSION= 0.8
|
||||
PORTVERSION= 1.1.2
|
||||
CATEGORIES= mail www
|
||||
MASTER_SITES= http://www.vanheusden.com/sgwi/
|
||||
DISTNAME= sqlgreywebinterface-${PORTVERSION}
|
||||
@ -16,7 +16,8 @@ MAINTAINER= lukasz@wasikowski.net
|
||||
COMMENT= PHP web interface to SQLGrey
|
||||
|
||||
NO_BUILD= yes
|
||||
SUB_FILES+= pkg-message
|
||||
SUB_FILES+= pkg-message pkg-install
|
||||
SUB_LIST= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
||||
|
||||
OPTIONS= MYSQL "MySQL back-end (use mysql PHP extension)" on
|
||||
OPTIONS+= PGSQL "PostgreSQL back-end (use pgsql PHP extension)" off
|
||||
@ -33,32 +34,37 @@ USE_PHP+= pgsql
|
||||
IGNORE= needs at least one database back-end
|
||||
.endif
|
||||
|
||||
WANT_PHP_WEB= yes
|
||||
|
||||
post-patch:
|
||||
${FIND} ${WRKSRC} -name '*.orig' -delete
|
||||
|
||||
do-install:
|
||||
@[ ! -f ${WRKSRC}/.htpasswd ] || ${MV} ${WRKSRC}/.htpasswd ${WRKSRC}/.htpasswd.dist
|
||||
@[ ! -f ${WRKSRC}/.htaccess ] || ${MV} ${WRKSRC}/.htaccess ${WRKSRC}/.htaccess.dist
|
||||
@[ ! -f ${WRKSRC}/config.inc.php ] || ${MV} ${WRKSRC}/config.inc.php ${WRKSRC}/config.inc.php.dist
|
||||
@${MKDIR} ${PREFIX}/www/sgwi
|
||||
@${INSTALL_DATA} ${WRKSRC}/*.php ${PREFIX}/www/sgwi
|
||||
@${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/www/sgwi
|
||||
@${INSTALL_DATA} ${WRKSRC}/*.dist ${PREFIX}/www/sgwi
|
||||
@${INSTALL_DATA} ${WRKSRC}/.ht* ${PREFIX}/www/sgwi
|
||||
@[ -f ${PREFIX}/www/sgwi/config.inc.php ] || \
|
||||
${CP} ${PREFIX}/www/sgwi/config.inc.php.dist \
|
||||
${PREFIX}/www/sgwi/config.inc.php
|
||||
@[ -f ${PREFIX}/www/sgwi/.htpasswd ] || \
|
||||
${CP} ${PREFIX}/www/sgwi/.htpasswd.dist \
|
||||
${PREFIX}/www/sgwi/.htpasswd
|
||||
@[ -f ${PREFIX}/www/sgwi/.htaccess ] || \
|
||||
${CP} ${PREFIX}/www/sgwi/.htaccess.dist \
|
||||
${PREFIX}/www/sgwi/.htaccess
|
||||
@[ ! -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} ${PREFIX}/www/sgwi
|
||||
@${CHOWN} root ${PREFIX}/www/sgwi/.ht* ${PREFIX}/www/sgwi/config.inc.php*
|
||||
@${CHMOD} 640 ${PREFIX}/www/sgwi/*.php ${PREFIX}/www/sgwi/*.txt ${PREFIX}/www/sgwi/.ht* ${PREFIX}/www/sgwi/*.dist
|
||||
${CAT} ${PKGMESSAGE}
|
||||
@${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}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,2 @@
|
||||
MD5 (sqlgreywebinterface-0.8.tgz) = dec77354d94a9b66b3246f0a68285608
|
||||
SHA256 (sqlgreywebinterface-0.8.tgz) = 3df6ed0152a9a9f1bac7c22dd12dc3124227596418b4ae3f3a1bceb5e54c9929
|
||||
SIZE (sqlgreywebinterface-0.8.tgz) = 5104
|
||||
SHA256 (sqlgreywebinterface-1.1.2.tgz) = 60f45f9e1ba2f040e1d403825eadbdd5a5659e4c08915f5d3dacbc99f3971bf0
|
||||
SIZE (sqlgreywebinterface-1.1.2.tgz) = 8806
|
||||
|
@ -1,8 +0,0 @@
|
||||
--- copyright.inc.php.orig 2008-03-11 22:23:21.000000000 +0100
|
||||
+++ copyright.inc.php 2008-03-11 22:23:33.000000000 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
<TR HEIGHT=64><TD>
|
||||
<HR>
|
||||
-<FONT SIZE=-1><A HREF="http://www.vanheusden.com/sgwi/" TARGET="_new">SQLGrey webinterface v0.6</A> by <A HREF="http://www.vanheusden.com/feedbackform.php?subject=SQLGrey%20webinterface" TARGET="_new">folkert@vanheusden.com</A>
|
||||
+<FONT SIZE=-1><A HREF="http://www.vanheusden.com/sgwi/" TARGET="_new">SQLGrey webinterface v0.8</A> by <A HREF="http://www.vanheusden.com/feedbackform.php?subject=SQLGrey%20webinterface" TARGET="_new">folkert@vanheusden.com</A>
|
||||
</TD></TR>
|
12
mail/sgwi/files/pkg-install.in
Normal file
12
mail/sgwi/files/pkg-install.in
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
WWWDIR=%%WWWDIR%%
|
||||
WWWOWN=%%WWWOWN%%
|
||||
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
|
||||
fi
|
@ -1,14 +1,14 @@
|
||||
|
||||
1. Configure sgwi
|
||||
-----------------
|
||||
Edit the %%PREFIX%%/www/sgwi/config.inc.php file to reflect your
|
||||
Edit the %%WWWDIR%%/includes/config.inc.php file to reflect your
|
||||
setup.
|
||||
|
||||
The default password for sgwi is admin/admin. It's specified in
|
||||
the .htpasswd file in %%PREFIX%%/www/sgwi/ directory. Change it
|
||||
the .htpasswd file in %%WWWDIR%%/ directory. Change it
|
||||
with:
|
||||
|
||||
htpasswd %%PREFIX%%/www/sgwi/.htpasswd admin
|
||||
htpasswd %%WWWDIR%%/.htpasswd admin
|
||||
|
||||
Also make sure that the location of the .htpasswd file specified
|
||||
in .htaccess file matches your path.
|
||||
@ -17,7 +17,7 @@ in .htaccess file matches your path.
|
||||
-------------------
|
||||
Add a line in your httpd.conf to allow the use of .htaccess file.
|
||||
|
||||
<Directory "%%PREFIX%%/www/sgwi">
|
||||
<Directory "%%WWWDIR%%/">
|
||||
Options Indexes
|
||||
AllowOverride AuthConfig
|
||||
</Directory>
|
||||
|
@ -1,28 +1,23 @@
|
||||
@unexec if cmp -s %D/www/sgwi/.htaccess %D/www/sgwi/.htaccess.dist; then rm -f %D/www/sgwi/.htaccess; fi
|
||||
www/sgwi/.htaccess.dist
|
||||
@unexec if cmp -s %D/www/sgwi/.htaccess %D/www/sgwi/.htaccess.sample; then rm -f %D/www/sgwi/.htaccess; fi
|
||||
www/sgwi/.htaccess.sample
|
||||
@exec [ -f %B/.htaccess ] || cp %B/%f %B/.htaccess
|
||||
@unexec if cmp -s %D/www/sgwi/.htpasswd %D/www/sgwi/.htpasswd.dist; then rm -f %D/www/sgwi/.htpasswd; fi
|
||||
www/sgwi/.htpasswd.dist
|
||||
@unexec if cmp -s %D/www/sgwi/.htpasswd %D/www/sgwi/.htpasswd.sample; then rm -f %D/www/sgwi/.htpasswd; fi
|
||||
www/sgwi/.htpasswd.sample
|
||||
@exec [ -f %B/.htpasswd ] || cp %B/%f %B/.htpasswd
|
||||
www/sgwi/awl.php
|
||||
www/sgwi/awl_add.php
|
||||
www/sgwi/awl_delete.php
|
||||
www/sgwi/awl_delete_undef.php
|
||||
@unexec if cmp -s %D/www/sgwi/config.inc.php %D/www/sgwi/config.inc.php.dist; then rm -f %D/www/sgwi/config.inc.php; fi
|
||||
www/sgwi/config.inc.php.dist
|
||||
@exec [ -f %B/config.inc.php ] || cp %B/%f %B/config.inc.php
|
||||
www/sgwi/connect.php
|
||||
www/sgwi/connect_delete.php
|
||||
www/sgwi/connect_purge.php
|
||||
www/sgwi/connect_whitelist.php
|
||||
www/sgwi/copyright.inc.php
|
||||
www/sgwi/db.inc.php
|
||||
www/sgwi/includes/awl.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
|
||||
www/sgwi/includes/connect.inc.php
|
||||
www/sgwi/includes/copyright.inc.php
|
||||
www/sgwi/includes/functions.inc.php
|
||||
www/sgwi/includes/opt_in_out.inc.php
|
||||
www/sgwi/index.php
|
||||
www/sgwi/license.txt
|
||||
www/sgwi/main.css
|
||||
www/sgwi/opt_in_out.php
|
||||
www/sgwi/opt_in_out_add.php
|
||||
www/sgwi/opt_in_out_delete.php
|
||||
www/sgwi/opt_in_out_helpers.inc.php
|
||||
www/sgwi/readme.txt
|
||||
www/sgwi/tools.inc.php
|
||||
@dirrm www/sgwi/includes
|
||||
@dirrm www/sgwi
|
||||
|
Loading…
Reference in New Issue
Block a user