Changeset 14701 for trunk/dports


Ignore:
Timestamp:
Oct 19, 2005, 4:04:45 AM (14 years ago)
Author:
jberry
Message:

mysql5 revision of the day.

Don't mangle installed names of files, but do symlink into our bin directory
with a 5 appended to the name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/mysql5/Portfile

    r14683 r14701  
    1 # $Id: Portfile,v 1.12 2005/10/18 04:36:09 jberry Exp $
     1# $Id: Portfile,v 1.13 2005/10/19 04:04:45 jberry Exp $
    22
    33PortSystem 1.0
     
    55name                    mysql5
    66version                 5.0.13-rc
    7 revision                3
     7revision                4
    88categories              databases
    99platforms               darwin
     
    3232                                --datadir=${prefix}/share/${name} \
    3333                                --sysconfdir=${prefix}/etc/${name} \
    34                                 --program-transform-name='s/mysql/mysql5/g' \
    3534                                --with-zlib-dir=${prefix} \
    3635                                --with-openssl=${prefix} \
     
    4746        # Create a startupitem to start/stop the server
    4847        startupitem.create      yes
    49         startupitem.start       "${prefix}/share/mysql5/mysql/mysql5.server start"
    50         startupitem.stop        "${prefix}/share/mysql5/mysql/mysql5.server stop"
     48        startupitem.start       "${prefix}/share/mysql5/mysql/mysql.server start"
     49        startupitem.stop        "${prefix}/share/mysql5/mysql/mysql.server stop"
    5150}
    5251
     
    7675post-destroot {
    7776        system "rm -rf ${destroot}${prefix}/mysql-test/"
    78         system "cd ${destroot}${prefix}/bin && ln -sf ../lib/${name}/bin/mysql5 ."
    79 
    80         # Cleanup names in some of the scripts to account for our name mangling
    81         reinplace s|mysqlmanager|mysql5manager|         ${destroot}${prefix}/share/mysql5/mysql/mysql5.server
    82         reinplace s|mysqld_safe|mysql5d_safe|           ${destroot}${prefix}/share/mysql5/mysql/mysql5.server
    83         reinplace s|MYSQLD=mysqld|MYSQLD=mysql5d|       ${destroot}${prefix}/lib/mysql5/bin/mysql5d_safe
     77       
     78        # Symlink mysql binaries into bin directory, with a 5 appended to the name
     79        foreach f [glob -tails -directory ${destroot}${prefix}/lib/${name}/bin my*] {
     80                system "cd ${destroot}${prefix}/bin && ln -sf ../lib/${name}/bin/${f} ${f}5"
     81        }
    8482}
    8583
Note: See TracChangeset for help on using the changeset viewer.