Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/5289

Submitted by:   rsorasen@broadpark.no, mww@
Reviewed by:    mww@

update to 4.1.4, move to startupitem-code

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14461 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Oct 7, 2005
1 parent 03f16db commit 7de5d11fd6d07d8977c680782bfa2758bb71d62c
Showing with 6 additions and 41 deletions.
  1. +6 −16 databases/mysql4/Portfile
  2. +0 −25 databases/mysql4/files/mysql4.sh
@@ -1,9 +1,8 @@
# $Id: Portfile,v 1.19 2005/09/29 20:33:31 mww Exp $
# $Id: Portfile,v 1.20 2005/10/07 13:12:31 mww Exp $

PortSystem 1.0
name mysql4
version 4.1.12
revision 1
version 4.1.14
categories databases
maintainers michaelm@opendarwin.org
description Multithreaded SQL database server
@@ -27,8 +26,7 @@ master_sites http://www.mirrorservice.org/sites/ftp.mysql.com/${sitedir} \
ftp://ftp.free.fr/pub/MySQL\${sitedir}

distname mysql-${version}
checksums md5 56a6f5cacd97ae290e07bbe19f279af1
patchfiles patch-my_global.h
checksums md5 98ba9caea24b0a48ee06bb242ff2e37f

depends_lib port:openssl

@@ -76,7 +74,6 @@ platform darwin 8 {
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}


configure.args --sysconfdir=${prefix}/etc/${name} --without-debug \
--without-bench \
--mandir=${prefix}/share/man --infodir=${prefix}/share/info \
@@ -86,9 +83,10 @@ configure.args --sysconfdir=${prefix}/etc/${name} --without-debug \
--with-unix-socket-path=${prefix}/var/run/mysqld/mysqld.sock \
--with-mysqld-user=mysql


variant server {
depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
startupitem.create yes
startupitem.start "${prefix}/bin/mysqld_safe --user=mysql --pid-file=${prefix}/var/run/mysqld/mysqld.pid"
startupitem.stop "/usr/bin/kill -15 \$(cat ${prefix}/var/run/mysqld/mysqld.pid)"
}

pre-destroot {
@@ -102,7 +100,6 @@ pre-destroot {

system "chown mysql:mysql ${destroot}${prefix}/var/log/mysql"
}

}

post-destroot {
@@ -116,20 +113,13 @@ post-destroot {
xinstall -o root -m 755 -d ${destroot}${prefix}/etc/${name}
xinstall -o root -m 644 -c ${filespath}/my.cnf ${destroot}${prefix}/etc/${name}/my.cnf.sample
reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/${name}/my.cnf.sample


xinstall -o root -m 755 -d ${destroot}${prefix}/etc/rc.d
xinstall -o root -m 755 -c ${filespath}/${name}.sh ${destroot}${prefix}/etc/rc.d/
reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/rc.d/${name}.sh

xinstall -o mysql -g mysql -m 775 -d ${destroot}${dbdir}
destroot.keepdirs-append ${destroot}${dbdir}
system "chown -R mysql:mysql ${destroot}${dbdir}"

xinstall -o mysql -g mysql -m 755 -d ${destroot}${prefix}/var/run/mysqld
destroot.keepdirs-append ${destroot}${prefix}/var/run/mysqld
system "chown -R mysql:mysql ${destroot}${prefix}/var/run/mysqld"

}

}

This file was deleted.

0 comments on commit 7de5d11

Please sign in to comment.
You can’t perform that action at this time.