Skip to content

Commit

Permalink
mysql5 revision of the day.
Browse files Browse the repository at this point in the history
Don't mangle installed names of files, but do symlink into our bin directory
with a 5 appended to the name.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14701 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jdberry committed Oct 19, 2005
1 parent 928d202 commit dbaa06d
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions databases/mysql5/Portfile
@@ -1,10 +1,10 @@
# $Id: Portfile,v 1.12 2005/10/18 04:36:09 jberry Exp $
# $Id: Portfile,v 1.13 2005/10/19 04:04:45 jberry Exp $

PortSystem 1.0

name mysql5
version 5.0.13-rc
revision 3
revision 4
categories databases
platforms darwin
maintainers jberry@opendarwin.org mww@opendarwin.org
Expand All @@ -31,7 +31,6 @@ configure.args --mandir=${prefix}/share/man \
--includedir=${prefix}/include/${name} \
--datadir=${prefix}/share/${name} \
--sysconfdir=${prefix}/etc/${name} \
--program-transform-name='s/mysql/mysql5/g' \
--with-zlib-dir=${prefix} \
--with-openssl=${prefix} \
--with-unix-socket-path=${prefix}/var/run/${name}/mysqld.sock \
Expand All @@ -46,8 +45,8 @@ platform darwin 8 {
variant server {
# Create a startupitem to start/stop the server
startupitem.create yes
startupitem.start "${prefix}/share/mysql5/mysql/mysql5.server start"
startupitem.stop "${prefix}/share/mysql5/mysql/mysql5.server stop"
startupitem.start "${prefix}/share/mysql5/mysql/mysql.server start"
startupitem.stop "${prefix}/share/mysql5/mysql/mysql.server stop"
}

pre-destroot {
Expand Down Expand Up @@ -75,12 +74,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

# Symlink mysql binaries into bin directory, with a 5 appended to the name
foreach f [glob -tails -directory ${destroot}${prefix}/lib/${name}/bin my*] {
system "cd ${destroot}${prefix}/bin && ln -sf ../lib/${name}/bin/${f} ${f}5"
}
}

post-install {
Expand Down

0 comments on commit dbaa06d

Please sign in to comment.