Ignore:
Timestamp:
Oct 9, 2016, 4:53:21 PM (21 months ago)
Author:
pixilla@…
Message:

databases/mariadb: replace launchd plist removing daemondo dependency.

File:
1 edited

Legend:

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

    r153190 r153724  
    1010# Please set revision_client and revision_server to 0 if you bump version.
    1111set revision_client 0
    12 set revision_server 0
     12set revision_server 1
    1313categories          databases
    1414platforms           darwin
     
    217217    add_users ${mysqluser} group=${mysqluser} realname=MySQL\ Server
    218218
    219     startupitem.create      yes
    220     startupitem.executable  ${prefix}/lib/${name_mysql}/bin/mysqld --user=${mysqluser}
    221 
     219    pre-extract {
     220        copy ${filespath}/org.macports.mysql-server.plist ${workpath}/org.macports.${subport}.plist
     221    }
     222
     223    post-patch {
     224        reinplace "s|@NAME@|${subport}|g" \
     225            ${workpath}/org.macports.${subport}.plist
     226        reinplace "s|@NAMEMYSQL@|${name_mysql}|g" \
     227            ${workpath}/org.macports.${subport}.plist
     228        reinplace "s|@PREFIX@|${prefix}|g" \
     229            ${workpath}/org.macports.${subport}.plist
     230        reinplace "s|@SUBPORT@|${subport}|g" \
     231            ${workpath}/org.macports.${subport}.plist
     232        reinplace "s|@USER@|${mysqluser}|g" \
     233            ${workpath}/org.macports.${subport}.plist
     234        reinplace "s|@GROUP@|${mysqluser}|g" \
     235            ${workpath}/org.macports.${subport}.plist
     236    }
     237   
    222238    use_configure       no
    223239
     
    225241
    226242    destroot {
     243        xinstall -d -m 755 ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${subport}
     244        xinstall -m 0644 -o root -W ${workpath} \
     245            org.macports.${subport}.plist \
     246            ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${subport}
     247        xinstall -d -m 755 ${destroot}/Library/LaunchDaemons
     248        ln -s ${prefix}/etc/LaunchDaemons/org.macports.${subport}/org.macports.${subport}.plist \
     249            ${destroot}/Library/LaunchDaemons/org.macports.${subport}.plist
    227250        xinstall -m 755 -o root -d \
    228251            ${destroot}${prefix}/var/run
Note: See TracChangeset for help on using the changeset viewer.