[78919] trunk/dports/www/phpmyadmin/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu May 26 15:00:42 PDT 2011


Revision: 78919
          http://trac.macports.org/changeset/78919
Author:   ryandesign at macports.org
Date:     2011-05-26 15:00:42 -0700 (Thu, 26 May 2011)
Log Message:
-----------
phpmyadmin: update to 3.4.1, use notes instead of ui_msgs, take open maintainership

Modified Paths:
--------------
    trunk/dports/www/phpmyadmin/Portfile

Modified: trunk/dports/www/phpmyadmin/Portfile
===================================================================
--- trunk/dports/www/phpmyadmin/Portfile	2011-05-26 19:17:53 UTC (rev 78918)
+++ trunk/dports/www/phpmyadmin/Portfile	2011-05-26 22:00:42 UTC (rev 78919)
@@ -5,9 +5,9 @@
 
 name                phpmyadmin
 set my_name         phpMyAdmin
-version             3.3.10
+version             3.4.1
 categories          www php databases
-maintainers         nomaintainer
+maintainers         ryandesign openmaintainer
 supported_archs     noarch
 
 description         A tool written in PHP intended to handle the \
@@ -19,13 +19,13 @@
                     interface (managing databases, tables, fields, relations, \
                     indexes, users, permissions, etc), while you still have \
                     the ability to directly execute any SQL statement.
-homepage            http://www.phpmyadmin.net
+homepage            http://www.phpmyadmin.net/
 master_sites        sourceforge
 distname            ${my_name}-${version}-all-languages
 use_bzip2           yes
 
-checksums           sha1    9a353db29616dbc0fca1680408757c2492169248 \
-                    rmd160  61f01bd216f157e6120c04d8356275235a027e0d
+checksums           sha1    37a2e607a1dbb37bd13fca7a07c84567d9d972c0 \
+                    rmd160  3b4633ffc0ca2cc6ae1213fd406a57db57ff5c73
 
 platforms           darwin freebsd
 
@@ -37,6 +37,7 @@
 
 set docroot         ${destroot}${prefix}/www/${name}
 set configfile      ${prefix}/www/${name}/config.inc.php
+set configsample    ${prefix}/www/${name}/config.sample.inc.php
 
 use_configure       no
 build               {}
@@ -46,14 +47,23 @@
     eval copy [glob ${worksrcpath}/*] ${docroot}
 }
 
+notes "
+phpMyAdmin must be configured before it can be used.\
+Consult the online documentation at ${homepage}documentation/Documentation.html#config
+
+A sample configuration file is installed at ${configsample}, but you mustn’t edit this file.\
+The file to edit is the real configuration file at ${configfile}.
+"
+
+pre-activate {
+    if {[file exists ${configfile}]} {
+        notes-append "\n\nYour existing config file has not been modified. You should manually compare the new sample config file with your existing config file."
+    }
+}
+
 post-activate {
     if {![file exists ${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,"
-        ui_msg "an online version of which can be found at ${homepage}documentation/Documentation.html#config"
-        ui_msg ""
+        xinstall -m 644 ${configsample} ${configfile}
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110526/4b6e1885/attachment.html>


More information about the macports-changes mailing list