diff options
author | tron <tron> | 2012-08-28 15:54:54 +0000 |
---|---|---|
committer | tron <tron> | 2012-08-28 15:54:54 +0000 |
commit | 47a2ec45a532ec9590ba4dc935e715a76718a3e4 (patch) | |
tree | ef9583ac4ab149c3a2817439abaf1b9633b51daa /databases/phpmyadmin/INSTALL | |
parent | 9415bb32badeb18c36ce4aef63512cd96461973b (diff) | |
download | pkgsrc-47a2ec45a532ec9590ba4dc935e715a76718a3e4.tar.gz |
Fix last commit:
- The setup scripts *must* not get write access to the real "config.inc.php".
Allow then instead to generate a file in "/var/phpmyadmin" which the
administrator copies it place manually. This is the intended procedure
as documented by the developers.
- Restore the normal "config.inc.php" to its original location. Not sure
why I didn't encounter any problems during testing the last change
because phpMyAdmin isn't working very well without this.
While here change dependences to require both the "php-mysql" and the
"php-mysqli" packages. Old installations will use the former, new
installation will use the later.
Bump the package revision again because of these changes.
Diffstat (limited to 'databases/phpmyadmin/INSTALL')
-rw-r--r-- | databases/phpmyadmin/INSTALL | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/databases/phpmyadmin/INSTALL b/databases/phpmyadmin/INSTALL new file mode 100644 index 00000000000..c5022b61616 --- /dev/null +++ b/databases/phpmyadmin/INSTALL @@ -0,0 +1,19 @@ +# $NetBSD: INSTALL,v 1.3 2012/08/28 15:54:54 tron Exp $ + +APACHE_USER=@APACHE_USER@ +APACHE_GROUP=@APACHE_GROUP@ +PMSETUPDIR=@PMSETUPDIR@ +PMSETUPFILE=@PMSETUPFILE@ + +case ${STAGE} in +POST-INSTALL) + if [ ! -f ${PMSETUPFILE} ]; then + ${MKDIR} ${PMSETUPDIR} + ${CHOWN} ${APACHE_USER}:${APACHE_GROUP} ${PMSETUPDIR} + ${CHMOD} 755 ${PMSETUPDIR} + ${TOUCH} ${PMSETUPFILE} + ${CHOWN} ${APACHE_USER}:${APACHE_GROUP} ${PMSETUPFILE} + ${CHMOD} 644 ${PMSETUPFILE} + fi + ;; +esac |