Changeset 153728


Ignore:
Timestamp:
Oct 9, 2016, 4:55:40 PM (3 years ago)
Author:
pixilla@…
Message:

databases/mysql55: replace launchd plist removing daemondo dependency.

Location:
trunk/dports/databases/mysql55
Files:
1 added
1 edited

Legend:

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

    r153192 r153728  
    99# Set revision_client and revision_server to 0 if you bump version.
    1010set revision_client 0
    11 set revision_server 0
     11set revision_server 1
    1212set version_branch  [join [lrange [split ${version} .] 0 1] .]
    1313categories          databases
     
    204204    add_users ${mysqluser} group=${mysqluser} realname=MySQL\ Server
    205205
    206     startupitem.create      yes
    207     startupitem.executable  ${prefix}/lib/${name_mysql}/bin/mysqld --user=${mysqluser}
    208 
     206    pre-extract {
     207        copy ${filespath}/org.macports.mysql-server.plist ${workpath}/org.macports.${subport}.plist
     208    }
     209
     210    post-patch {
     211        reinplace "s|@NAME@|${subport}|g" \
     212            ${workpath}/org.macports.${subport}.plist
     213        reinplace "s|@NAMEMYSQL@|${name_mysql}|g" \
     214            ${workpath}/org.macports.${subport}.plist
     215        reinplace "s|@PREFIX@|${prefix}|g" \
     216            ${workpath}/org.macports.${subport}.plist
     217        reinplace "s|@SUBPORT@|${subport}|g" \
     218            ${workpath}/org.macports.${subport}.plist
     219        reinplace "s|@USER@|${mysqluser}|g" \
     220            ${workpath}/org.macports.${subport}.plist
     221        reinplace "s|@GROUP@|${mysqluser}|g" \
     222            ${workpath}/org.macports.${subport}.plist
     223    }
     224   
    209225    use_configure       no
    210226
     
    212228
    213229    destroot {
     230        xinstall -d -m 755 ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${subport}
     231        xinstall -m 0644 -o root -W ${workpath} \
     232            org.macports.${subport}.plist \
     233            ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${subport}
     234        xinstall -d -m 755 ${destroot}/Library/LaunchDaemons
     235        ln -s ${prefix}/etc/LaunchDaemons/org.macports.${subport}/org.macports.${subport}.plist \
     236            ${destroot}/Library/LaunchDaemons/org.macports.${subport}.plist
    214237        xinstall -m 755 -o root -d \
    215238            ${destroot}${prefix}/var/run
Note: See TracChangeset for help on using the changeset viewer.