- move startup file from Makefile to files/mysql-server.sh
- check for start/stop arguments in startup file - don't rip off --force option from mysql_install_db
This commit is contained in:
parent
78c8d55a47
commit
b96340db55
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=27292
30 changed files with 300 additions and 170 deletions
|
@ -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
|
||||
|
||||
|
|
18
databases/mysql322-server/files/mysql-server.sh
Normal file
18
databases/mysql322-server/files/mysql-server.sh
Normal file
|
@ -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
|
|
@ -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 ""
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
18
databases/mysql323-server/files/mysql-server.sh
Normal file
18
databases/mysql323-server/files/mysql-server.sh
Normal file
|
@ -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
|
|
@ -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 ""
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
18
databases/mysql40-server/files/mysql-server.sh
Normal file
18
databases/mysql40-server/files/mysql-server.sh
Normal file
|
@ -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
|
|
@ -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 ""
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
18
databases/mysql41-server/files/mysql-server.sh
Normal file
18
databases/mysql41-server/files/mysql-server.sh
Normal file
|
@ -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
|
|
@ -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 ""
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
18
databases/mysql50-server/files/mysql-server.sh
Normal file
18
databases/mysql50-server/files/mysql-server.sh
Normal file
|
@ -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
|
|
@ -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 ""
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
18
databases/mysql51-server/files/mysql-server.sh
Normal file
18
databases/mysql51-server/files/mysql-server.sh
Normal file
|
@ -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
|
|
@ -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 ""
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
18
databases/mysql54-server/files/mysql-server.sh
Normal file
18
databases/mysql54-server/files/mysql-server.sh
Normal file
|
@ -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
|
|
@ -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 ""
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
18
databases/mysql55-server/files/mysql-server.sh
Normal file
18
databases/mysql55-server/files/mysql-server.sh
Normal file
|
@ -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
|
|
@ -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 ""
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
18
databases/mysql60-server/files/mysql-server.sh
Normal file
18
databases/mysql60-server/files/mysql-server.sh
Normal file
|
@ -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
|
|
@ -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 ""
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
18
databases/percona55-server/files/mysql-server.sh
Normal file
18
databases/percona55-server/files/mysql-server.sh
Normal file
|
@ -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
|
|
@ -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 ""
|
||||
|
|
Loading…
Reference in a new issue