Ticket #768: portfile-mysql4.diff
File portfile-mysql4.diff, 1.5 KB (added by bchesneau@…, 21 years ago) |
---|
-
(a) Portfile-orig vs. (b) Portfile
a b 35 35 36 36 variant server { 37 37 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.sock38 configure.args --localstatedir=${dbdir} --sysconfdir=${prefix}/etc/mysql4 --without-bench --with-innodb --with-unix-socket-path=${prefix}/var/run/mysqld/mysqld.sock 39 39 40 40 pre-destroot { 41 41 system "install -o mysql -g mysql -m 775 -d ${destroot}${dbdir}" 42 file mkdir ${destroot}${prefix}/etc/mysql4 42 43 file mkdir ${destroot}${prefix}/var/run 43 44 file mkdir ${destroot}${prefix}/var/run/mysqld 44 file mkdir ${destroot}${prefix}/var/log s45 file mkdir ${destroot}${prefix}/var/log 45 46 file mkdir ${destroot}${prefix}/var/log/mysql 46 47 system "touch ${destroot}${prefix}/var/run/mysqld/.turd \ 47 48 ${destroot}${prefix}/var/log/mysql/.turd" … … 58 59 59 60 system "install -o root -m 755 -c ${portpath}/files/mysql4.sh ${destroot}${prefix}/etc/rc.d/" 60 61 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 64 66 } 65 67 }