Ignore:
Timestamp:
Mar 17, 2012, 9:35:27 PM (8 years ago)
Author:
pixilla@…
Message:

databases/mysql_select:

  • Add man pages to mysql_select.

databases/mysql55:

  • Add man pages to mysql_select.
  • Conflict with mysql5 until mysql5 is subdir'ed.
File:
1 edited

Legend:

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

    r90896 r90903  
    55
    66name                mysql55
     7# Fixme: Subdir mysql5.
     8# Conflict due to mysqld_safe finding mysql5 ports ${prefix}/libexec/mysqld.
     9conflicts           mysql5
    710version             5.5.21
     11revision            1
    812categories          databases
    913platforms           darwin
     
    5559                        lib/libreadline.dylib
    5660   
    57     set mysql           ${name}
    58     set libdir          ${prefix}/lib/${mysql}
    59     set bindir          ${prefix}/bin
    60     set dbdir           ${prefix}/var/db/${mysql}
    61     set sysconfdir      ${prefix}/etc/${mysql}
    62     set sockfile        ${prefix}/var/run/${mysql}/mysqld.sock
    63    
    6461    post-patch {
    6562        reinplace "s|@NAME@|${name}|g" ${worksrcpath}/cmake/install_layout.cmake
     
    9895   
    9996    pre-destroot {
    100         xinstall -m 755 -d ${destroot}${sysconfdir}
    101         destroot.keepdirs-append ${destroot}${sysconfdir}
     97        xinstall -m 755 -d ${destroot}${prefix}/etc/${name}
     98        destroot.keepdirs-append ${destroot}${prefix}/etc/${name}
    10299    }
    103100   
    104101    post-destroot {
    105         # Fix paths in manpages and sample configuration files
    106         foreach manpage [glob -type f ${destroot}${prefix}/share/man/${mysql}/man\[1-9\]/*] {
    107             reinplace "s|/etc/|${sysconfdir}/|g" ${manpage}
     102        # proc portdestroot::destroot_finish fails to find and compress our man pages
     103        # so borrow the compress command and run on our files now.
     104        set manpath "${destroot}${prefix}/share/man"
     105        set gzip [findBinary gzip ${portutil::autoconf::gzip_path}]
     106        foreach manpage [glob -type f ${destroot}${prefix}/share/man/${name}/man\[1-9\]/*] {
     107            # Fix paths in manpages
     108            reinplace "s|/etc/|${prefix}/etc/${name}/|g" ${manpage}
     109            # Compress all manpages with gzip
     110            system "$gzip -9vf ${manpage}"
    108111        }
    109         foreach samp_conffile [glob -type f ${destroot}${prefix}/share/${mysql}/support-files/my-*.cnf] {
    110             reinplace "s|/etc/my.cnf|${sysconfdir}/my.cnf|g" ${samp_conffile}
     112        foreach samp_conffile [glob -type f ${destroot}${prefix}/share/${name}/support-files/my-*.cnf] {
     113            # Fix paths in sample configuration files
     114            reinplace "s|/etc/my.cnf|${prefix}/etc/${name}/my.cnf|g" ${samp_conffile}
    111115        }
     116       
    112117    }
    113118   
    114119    post-install {
    115         if {![file exists ${prefix}/etc/LaunchDaemons/org.macports.${mysql}/org.macports.${mysql}.plist]} {
     120        if {![file exists ${prefix}/etc/LaunchDaemons/org.macports.${name}/org.macports.${name}.plist]} {
    116121            ui_msg "The MySQL client has been installed."
    117122            ui_msg "If you also want a MySQL server, install the mysql5-server port."
Note: See TracChangeset for help on using the changeset viewer.