Changeset 14461 for trunk/dports
- Timestamp:
- Oct 7, 2005, 1:12:31 PM (19 years ago)
- 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 $ 2 2 3 3 PortSystem 1.0 4 4 name mysql4 5 version 4.1.12 6 revision 1 5 version 4.1.14 7 6 categories databases 8 7 maintainers michaelm@opendarwin.org … … 28 27 29 28 distname mysql-${version} 30 checksums md5 56a6f5cacd97ae290e07bbe19f279af1 31 patchfiles patch-my_global.h 29 checksums md5 98ba9caea24b0a48ee06bb242ff2e37f 32 30 33 31 depends_lib port:openssl … … 77 75 } 78 76 79 80 77 configure.args --sysconfdir=${prefix}/etc/${name} --without-debug \ 81 78 --without-bench \ … … 87 84 --with-mysqld-user=mysql 88 85 89 90 86 variant 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)" 92 90 } 93 91 … … 103 101 system "chown mysql:mysql ${destroot}${prefix}/var/log/mysql" 104 102 } 105 106 103 } 107 104 … … 117 114 xinstall -o root -m 644 -c ${filespath}/my.cnf ${destroot}${prefix}/etc/${name}/my.cnf.sample 118 115 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.d122 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}.sh124 125 116 xinstall -o mysql -g mysql -m 775 -d ${destroot}${dbdir} 126 117 destroot.keepdirs-append ${destroot}${dbdir} … … 130 121 destroot.keepdirs-append ${destroot}${prefix}/var/run/mysqld 131 122 system "chown -R mysql:mysql ${destroot}${prefix}/var/run/mysqld" 132 133 123 } 134 124
Note: See TracChangeset
for help on using the changeset viewer.