diff options
author | Dirk Froemberg <dirk@FreeBSD.org> | 2000-04-02 22:15:13 +0000 |
---|---|---|
committer | Dirk Froemberg <dirk@FreeBSD.org> | 2000-04-02 22:15:13 +0000 |
commit | b96340db555018da241362d9e0c80edb3172cde8 (patch) | |
tree | bac471dfe1e48b6f08bcb03ec8e75a0baed37458 /databases/mysql51-server | |
parent | 78c8d55a477698136b3aba0f0d8c4a128cd73f09 (diff) | |
download | ports-b96340db555018da241362d9e0c80edb3172cde8.tar.gz ports-b96340db555018da241362d9e0c80edb3172cde8.zip |
Notes
Diffstat (limited to 'databases/mysql51-server')
-rw-r--r-- | databases/mysql51-server/Makefile | 13 | ||||
-rw-r--r-- | databases/mysql51-server/files/mysql-server.sh | 18 | ||||
-rw-r--r-- | databases/mysql51-server/files/patch-ab | 16 |
3 files changed, 30 insertions, 17 deletions
diff --git a/databases/mysql51-server/Makefile b/databases/mysql51-server/Makefile index d2f1f968ddc7..15b2deb514e3 100644 --- a/databases/mysql51-server/Makefile +++ b/databases/mysql51-server/Makefile @@ -34,6 +34,7 @@ CONFIGURE_ENV+= PERL=${PERL} \ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ CONFIGURE_ARGS="${CONFIGURE_ARGS}" +# MySQL-Server part .if !defined(CLIENT_ONLY) RUN_DEPENDS= mysql:${PORTSDIR}/databases/mysql322-client @@ -117,13 +118,7 @@ post-install: ${PREFIX}/bin/mysql_install_db @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif - @${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-server.sh - @${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-server.sh - @${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-server.sh - @${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql-server.sh - @${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql-server.sh - @${ECHO} " ${PREFIX}/bin/safe_mysqld --user=mysql > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh - @${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql-server.sh + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-server.sh > ${PREFIX}/etc/rc.d/mysql-server.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-server.sh .if !defined(NOPORTDOCS) @@ -137,6 +132,8 @@ post-install: .endif .include <bsd.port.post.mk> + +# MySQL-Client part .else MAN1= mysql.1 @@ -145,7 +142,7 @@ MAKE_ENV= CLIENT_ONLY="${CLIENT_ONLY}" post-install: @${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-client.sh - @${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-client.sh + @${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-client.sh @${ECHO} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql-client.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-client.sh diff --git a/databases/mysql51-server/files/mysql-server.sh b/databases/mysql51-server/files/mysql-server.sh new file mode 100644 index 000000000000..507a080ec911 --- /dev/null +++ b/databases/mysql51-server/files/mysql-server.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +case "$1" in + start) + if [ -x %%PREFIX%%/bin/safe_mysqld ]; then + %%PREFIX%%/bin/safe_mysqld --user=mysql > /dev/null & && echo -n ' mysqld' + fi + ;; + stop) + /usr/bin/killall mysqld > /dev/null 2>&1 && echo -n ' mysqld' + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 1 + ;; +esac diff --git a/databases/mysql51-server/files/patch-ab b/databases/mysql51-server/files/patch-ab index 04825c3dc4b1..1fd66bbe0cad 100644 --- a/databases/mysql51-server/files/patch-ab +++ b/databases/mysql51-server/files/patch-ab @@ -1,17 +1,15 @@ ---- scripts/mysql_install_db.sh.orig Sat Aug 28 13:10:54 1999 -+++ scripts/mysql_install_db.sh Mon Sep 13 00:13:04 1999 -@@ -15,10 +15,6 @@ +--- scripts/mysql_install_db.sh.orig Wed Jan 12 21:06:30 2000 ++++ scripts/mysql_install_db.sh Sun Mar 26 23:20:27 2000 +@@ -15,8 +15,6 @@ force=0 IN_RPM=0 -# Are we doing an rpm install? -if test "$1" = "-IN-RPM"; then IN_RPM=1; shift; fi --if test "$1" = "--force"; then force=1; shift; fi -- + if test "$1" = "--force"; then force=1; shift; fi + # Get mysqld/safe_mysqld options from /etc/my.cnf or ~/.my.cnf - if test -w / - then -@@ -60,8 +56,6 @@ +@@ -60,8 +58,6 @@ fi fi @@ -20,7 +18,7 @@ hostname=`hostname` # Install this too in the user table # Check if hostname is valid -@@ -255,12 +249,6 @@ +@@ -255,12 +251,6 @@ END_OF_DATA then echo "" |