Changeset 14461 for trunk/dports


Ignore:
Timestamp:
Oct 7, 2005, 1:12:31 PM (19 years ago)
Author:
mww
Message:

Bug: #5289
Submitted by: rsorasen@…, mww@
Reviewed by: mww@

update to 4.1.4, move to startupitem-code

Location:
trunk/dports/databases/mysql4
Files:
1 deleted
1 edited

Legend:

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

    r14334 r14461  
    1 # $Id: Portfile,v 1.19 2005/09/29 20:33:31 mww Exp $
     1# $Id: Portfile,v 1.20 2005/10/07 13:12:31 mww Exp $
    22
    33PortSystem 1.0
    44name              mysql4
    5 version           4.1.12
    6 revision          1
     5version           4.1.14
    76categories        databases
    87maintainers       michaelm@opendarwin.org 
     
    2827
    2928distname         mysql-${version}
    30 checksums        md5 56a6f5cacd97ae290e07bbe19f279af1
    31 patchfiles       patch-my_global.h
     29checksums        md5 98ba9caea24b0a48ee06bb242ff2e37f
    3230
    3331depends_lib      port:openssl
     
    7775}
    7876
    79 
    8077configure.args  --sysconfdir=${prefix}/etc/${name} --without-debug  \
    8178                  --without-bench \
     
    8784                  --with-mysqld-user=mysql
    8885
    89 
    9086variant server  {
    91         depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
     87        startupitem.create      yes
     88        startupitem.start       "${prefix}/bin/mysqld_safe --user=mysql --pid-file=${prefix}/var/run/mysqld/mysqld.pid"
     89        startupitem.stop        "/usr/bin/kill -15 \$(cat ${prefix}/var/run/mysqld/mysqld.pid)"
    9290}
    9391
     
    103101                system "chown mysql:mysql ${destroot}${prefix}/var/log/mysql"
    104102        }
    105        
    106103}
    107104
     
    117114                        xinstall -o root -m 644 -c ${filespath}/my.cnf ${destroot}${prefix}/etc/${name}/my.cnf.sample
    118115                        reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/${name}/my.cnf.sample
    119                        
    120                        
    121                         xinstall -o root -m 755 -d ${destroot}${prefix}/etc/rc.d
    122                         xinstall -o root -m 755 -c ${filespath}/${name}.sh ${destroot}${prefix}/etc/rc.d/
    123                         reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/rc.d/${name}.sh
    124                        
    125116                        xinstall -o mysql -g mysql -m 775 -d ${destroot}${dbdir}
    126117                        destroot.keepdirs-append ${destroot}${dbdir}
     
    130121                        destroot.keepdirs-append ${destroot}${prefix}/var/run/mysqld
    131122                        system "chown -R mysql:mysql ${destroot}${prefix}/var/run/mysqld"
    132                        
    133123                }
    134124               
Note: See TracChangeset for help on using the changeset viewer.