[28852] trunk/dports/databases/mysql5/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Mon Sep 10 01:45:23 PDT 2007
Revision: 28852
http://trac.macosforge.org/projects/macports/changeset/28852
Author: ryandesign at macports.org
Date: 2007-09-10 01:45:23 -0700 (Mon, 10 Sep 2007)
Log Message:
-----------
mysql5: fix manpages and sample config files to show the correct
location of my.cnf in the MacPorts directory layout. Thanks to
Juan Manuel Palacios for the patch (via email).
Modified Paths:
--------------
trunk/dports/databases/mysql5/Portfile
Modified: trunk/dports/databases/mysql5/Portfile
===================================================================
--- trunk/dports/databases/mysql5/Portfile 2007-09-10 08:41:20 UTC (rev 28851)
+++ trunk/dports/databases/mysql5/Portfile 2007-09-10 08:45:23 UTC (rev 28852)
@@ -4,7 +4,7 @@
name mysql5
version 5.0.45
-revision 1
+revision 2
homepage http://www.mysql.com/
categories databases
platforms darwin
@@ -40,6 +40,7 @@
patch-mysys-base64.c.diff
set dbdir ${prefix}/var/db/${name}
+set sysconfdir ${prefix}/etc/${name}
set mysqluser mysql
configure.args \
@@ -50,7 +51,7 @@
--bindir=${prefix}/lib/${name}/bin \
--includedir=${prefix}/include/${name} \
--datadir=${prefix}/share/${name} \
- --sysconfdir=${prefix}/etc/${name} \
+ --sysconfdir=${sysconfdir} \
--with-zlib-dir=${prefix} \
--with-openssl=${prefix} \
--with-extra-charsets=complex \
@@ -97,6 +98,14 @@
post-destroot {
delete ${destroot}${prefix}/mysql-test
+ # Fix paths in manpages and sample configuration files
+ foreach manpage [glob -type f ${destroot}${prefix}/share/man/man\[1-9\]/*] {
+ reinplace "s|/etc/my.cnf|${sysconfdir}/my.cnf|g" ${manpage}
+ }
+ foreach samp_conffile [glob -type f ${destroot}${prefix}/share/${name}/mysql/my-*.cnf] {
+ reinplace "s|/etc/my.cnf|${sysconfdir}/my.cnf|g" ${samp_conffile}
+ }
+
# Symlink mysql binaries into bin directory, with a 5 appended to the name
cd ${destroot}${prefix}/bin
foreach f [glob -tails -directory ${destroot}${prefix}/lib/${name}/bin my*] {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070910/1b44dc06/attachment.html
More information about the macports-changes
mailing list