Changeset 39951


Ignore:
Timestamp:
Sep 14, 2008, 2:38:18 AM (11 years ago)
Author:
ryandesign@…
Message:

mysql5:

  • use bindir in mysql_secure_installation script so it can find mysql regardless of $PATH; see the second issue in #14600
  • use absolute links instead of relative ones in ${prefix}/bin; see #13421
Location:
trunk/dports/databases/mysql5
Files:
1 added
1 edited

Legend:

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

    r39173 r39951  
    55name                    mysql5
    66version                 5.0.67
     7revision                1
    78set branch              [join [lrange [split ${version} .] 0 1] .]
    89homepage                http://www.mysql.com/
     
    4142set major_version       [strsed ${version} {s/\..*$//}]
    4243set mysql               mysql${major_version}
     44set libdir              ${prefix}/lib/${mysql}
     45set bindir              ${libdir}/bin
    4346set dbdir               ${prefix}/var/db/${mysql}
    4447set sysconfdir          ${prefix}/etc/${mysql}
    4548set mysqluser           mysql
     49
     50patchfiles \
     51    patch-mysql_secure_installation.sh.diff
     52
     53post-patch {
     54    reinplace s%@BINDIR@%${bindir}%g ${worksrcpath}/scripts/mysql_secure_installation.sh
     55}
    4656
    4757configure.args \
     
    4959    --infodir=${prefix}/share/info \
    5060    --localstatedir=${dbdir} \
    51     --libdir=${prefix}/lib/${mysql} \
    52     --bindir=${prefix}/lib/${mysql}/bin \
     61    --libdir=${libdir} \
     62    --bindir=${bindir} \
    5363    --includedir=${prefix}/include/${mysql} \
    5464    --datadir=${prefix}/share/${mysql} \
     
    105115   
    106116    # Symlink mysql binaries into bin directory, with ${major_version} appended to the name
    107     foreach f [glob -tails -directory ${destroot}${prefix}/lib/${mysql}/bin my*] {
    108         ln -sf ../lib/${mysql}/bin/${f} ${destroot}${prefix}/bin/${f}${major_version}
     117    foreach f [glob -tails -directory ${destroot}${bindir} my*] {
     118        ln -sf ${bindir}/${f} ${destroot}${prefix}/bin/${f}${major_version}
    109119    }
    110120}
Note: See TracChangeset for help on using the changeset viewer.