Ticket #768: portfile-mysql4.diff

File portfile-mysql4.diff, 1.5 KB (added by bchesneau@…, 21 years ago)

patch to Portfile

  • (a) Portfile-orig vs. (b) Portfile

    a b  
    3535
    3636variant server  {
    3737        depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
    38         configure.args  --localstatedir=${dbdir} --sysconfdir=${prefix}/etc --without-bench --with-innodb --with-unix-socket-path=${prefix}/var/run/mysqld/mysqld.sock
     38        configure.args  --localstatedir=${dbdir} --sysconfdir=${prefix}/etc/mysql4 --without-bench --with-innodb --with-unix-socket-path=${prefix}/var/run/mysqld/mysqld.sock
    3939       
    4040        pre-destroot    {
    4141                system "install -o mysql -g mysql -m 775 -d ${destroot}${dbdir}"
     42                file mkdir ${destroot}${prefix}/etc/mysql4
    4243                file mkdir ${destroot}${prefix}/var/run
    4344                file mkdir ${destroot}${prefix}/var/run/mysqld
    44                 file mkdir ${destroot}${prefix}/var/logs
     45                file mkdir ${destroot}${prefix}/var/log
    4546                file mkdir ${destroot}${prefix}/var/log/mysql
    4647                system "touch ${destroot}${prefix}/var/run/mysqld/.turd \
    4748                ${destroot}${prefix}/var/log/mysql/.turd" 
     
    5859               
    5960                system "install -o root -m 755 -c ${portpath}/files/mysql4.sh ${destroot}${prefix}/etc/rc.d/"
    6061                reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/rc.d/mysql4.sh
    61                
    62                 system "cp ${portpath}/files/my.cnf ${destroot}${prefix}/etc/my.cnf"
    63                 reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/my.cnf
     62       
     63                       
     64                system "cp ${portpath}/files/my.cnf ${destroot}${prefix}/etc/mysql4/my.cnf"
     65                reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc//mysql4/my.cnf
    6466        }
    6567}