[58025] trunk/dports/www/phpmyadmin/Portfile
alakazam at macports.org
alakazam at macports.org
Sun Sep 20 18:34:05 PDT 2009
Revision: 58025
http://trac.macports.org/changeset/58025
Author: alakazam at macports.org
Date: 2009-09-20 18:34:01 -0700 (Sun, 20 Sep 2009)
Log Message:
-----------
phpMyAdmin : Fix configuration file creation so that it is created in the default location for phpMyAdmin instead of a custom macports location
Modified Paths:
--------------
trunk/dports/www/phpmyadmin/Portfile
Modified: trunk/dports/www/phpmyadmin/Portfile
===================================================================
--- trunk/dports/www/phpmyadmin/Portfile 2009-09-21 00:56:00 UTC (rev 58024)
+++ trunk/dports/www/phpmyadmin/Portfile 2009-09-21 01:34:01 UTC (rev 58025)
@@ -5,6 +5,7 @@
name phpmyadmin
set my_name phpMyAdmin
version 3.2.2
+revision 1
categories www php databases
maintainers alakazam
description A tool written in PHP intended to handle the \
@@ -34,7 +35,7 @@
port:php5-zip
set docroot ${destroot}${prefix}/www/${name}
-set configfile ${prefix}/etc/${name}.inc.php
+set configfile ${prefix}/www/${name}/config.inc.php
use_configure no
build {}
@@ -42,13 +43,11 @@
destroot {
xinstall -d -m 0755 ${docroot}
eval copy [glob ${worksrcpath}/*] ${docroot}
-
- ln -s ${configfile} ${docroot}/config.inc.php
}
-post-activate {
+post-activate {
if {![file exists ${configfile}]} {
- xinstall -m 644 ${worksrcpath}/config.sample.inc.php ${configfile}
+ xinstall -m 644 ${prefix}/www/${name}/config.sample.inc.php ${configfile}
ui_msg "A new configuration file has been created at ${configfile}."
ui_msg "Please refer to the ${my_name} documentation when editing this file,"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090920/68c52c84/attachment.html>
More information about the macports-changes
mailing list