Skip to content
Permalink
Browse files

Cleanup names in some of the mysql startup scripts to account for our

mangling of the executable names.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14683 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jdberry committed Oct 18, 2005
1 parent dd6f183 commit 69d820adbaf264ff1e0db100cea8fd444fc99ae0
Showing with 8 additions and 3 deletions.
  1. +8 −3 databases/mysql5/Portfile
@@ -1,10 +1,10 @@
# $Id: Portfile,v 1.11 2005/10/09 01:42:38 jberry Exp $
# $Id: Portfile,v 1.12 2005/10/18 04:36:09 jberry Exp $

PortSystem 1.0

name mysql5
version 5.0.13-rc
revision 2
revision 3
categories databases
platforms darwin
maintainers jberry@opendarwin.org mww@opendarwin.org
@@ -54,7 +54,7 @@ pre-destroot {
# Some directories we must have in all cases
xinstall -m 755 -d ${destroot}${prefix}/etc/${name}
destroot.keepdirs-append ${destroot}${prefix}/etc/${name}

# Setup only for server
if { [variant_isset server] } {
addgroup ${mysqluser}
@@ -76,6 +76,11 @@ pre-destroot {
post-destroot {
system "rm -rf ${destroot}${prefix}/mysql-test/"
system "cd ${destroot}${prefix}/bin && ln -sf ../lib/${name}/bin/mysql5 ."

# Cleanup names in some of the scripts to account for our name mangling
reinplace s|mysqlmanager|mysql5manager| ${destroot}${prefix}/share/mysql5/mysql/mysql5.server
reinplace s|mysqld_safe|mysql5d_safe| ${destroot}${prefix}/share/mysql5/mysql/mysql5.server
reinplace s|MYSQLD=mysqld|MYSQLD=mysql5d| ${destroot}${prefix}/lib/mysql5/bin/mysql5d_safe
}

post-install {

0 comments on commit 69d820a

Please sign in to comment.
You can’t perform that action at this time.