diff options
author | Dirk Froemberg <dirk@FreeBSD.org> | 2000-11-16 10:29:06 +0000 |
---|---|---|
committer | Dirk Froemberg <dirk@FreeBSD.org> | 2000-11-16 10:29:06 +0000 |
commit | 0a2fa4a15ab8d3e6b27a39ee062b56784a5131c6 (patch) | |
tree | 09224ac2283cfcd33fa12dd50708b9bb5a550978 | |
parent | Reenable mhash support. It seems to work, now. (diff) |
Move mysql-client.sh from Makefile to files/mysql-client.sh
and add a start/stop parameter to satisfy rc.shutdown.
20 files changed, 160 insertions, 30 deletions
diff --git a/databases/mysql322-server/Makefile b/databases/mysql322-server/Makefile index b0418be92624..acb40932d4b6 100644 --- a/databases/mysql322-server/Makefile +++ b/databases/mysql322-server/Makefile @@ -148,9 +148,7 @@ CONFIGURE_ARGS+=--without-server 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} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql-client.sh + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/mysql-client.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-client.sh .include <bsd.port.mk> diff --git a/databases/mysql322-server/files/mysql-client.sh b/databases/mysql322-server/files/mysql-client.sh new file mode 100644 index 000000000000..bef414c12ed2 --- /dev/null +++ b/databases/mysql322-server/files/mysql-client.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/mysql + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/databases/mysql323-server/Makefile b/databases/mysql323-server/Makefile index b004b4c6e891..251880f95b17 100644 --- a/databases/mysql323-server/Makefile +++ b/databases/mysql323-server/Makefile @@ -95,9 +95,7 @@ CONFIGURE_ARGS+=--without-server 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} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql-client.sh + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/mysql-client.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-client.sh .endif diff --git a/databases/mysql323-server/files/mysql-client.sh b/databases/mysql323-server/files/mysql-client.sh new file mode 100644 index 000000000000..bef414c12ed2 --- /dev/null +++ b/databases/mysql323-server/files/mysql-client.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/mysql + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/databases/mysql40-server/Makefile b/databases/mysql40-server/Makefile index b004b4c6e891..251880f95b17 100644 --- a/databases/mysql40-server/Makefile +++ b/databases/mysql40-server/Makefile @@ -95,9 +95,7 @@ CONFIGURE_ARGS+=--without-server 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} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql-client.sh + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/mysql-client.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-client.sh .endif diff --git a/databases/mysql40-server/files/mysql-client.sh b/databases/mysql40-server/files/mysql-client.sh new file mode 100644 index 000000000000..bef414c12ed2 --- /dev/null +++ b/databases/mysql40-server/files/mysql-client.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/mysql + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/databases/mysql41-server/Makefile b/databases/mysql41-server/Makefile index b004b4c6e891..251880f95b17 100644 --- a/databases/mysql41-server/Makefile +++ b/databases/mysql41-server/Makefile @@ -95,9 +95,7 @@ CONFIGURE_ARGS+=--without-server 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} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql-client.sh + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/mysql-client.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-client.sh .endif diff --git a/databases/mysql41-server/files/mysql-client.sh b/databases/mysql41-server/files/mysql-client.sh new file mode 100644 index 000000000000..bef414c12ed2 --- /dev/null +++ b/databases/mysql41-server/files/mysql-client.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/mysql + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/databases/mysql50-server/Makefile b/databases/mysql50-server/Makefile index b004b4c6e891..251880f95b17 100644 --- a/databases/mysql50-server/Makefile +++ b/databases/mysql50-server/Makefile @@ -95,9 +95,7 @@ CONFIGURE_ARGS+=--without-server 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} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql-client.sh + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/mysql-client.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-client.sh .endif diff --git a/databases/mysql50-server/files/mysql-client.sh b/databases/mysql50-server/files/mysql-client.sh new file mode 100644 index 000000000000..bef414c12ed2 --- /dev/null +++ b/databases/mysql50-server/files/mysql-client.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/mysql + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/databases/mysql51-server/Makefile b/databases/mysql51-server/Makefile index b004b4c6e891..251880f95b17 100644 --- a/databases/mysql51-server/Makefile +++ b/databases/mysql51-server/Makefile @@ -95,9 +95,7 @@ CONFIGURE_ARGS+=--without-server 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} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql-client.sh + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/mysql-client.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-client.sh .endif diff --git a/databases/mysql51-server/files/mysql-client.sh b/databases/mysql51-server/files/mysql-client.sh new file mode 100644 index 000000000000..bef414c12ed2 --- /dev/null +++ b/databases/mysql51-server/files/mysql-client.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/mysql + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/databases/mysql54-server/Makefile b/databases/mysql54-server/Makefile index b004b4c6e891..251880f95b17 100644 --- a/databases/mysql54-server/Makefile +++ b/databases/mysql54-server/Makefile @@ -95,9 +95,7 @@ CONFIGURE_ARGS+=--without-server 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} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql-client.sh + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/mysql-client.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-client.sh .endif diff --git a/databases/mysql54-server/files/mysql-client.sh b/databases/mysql54-server/files/mysql-client.sh new file mode 100644 index 000000000000..bef414c12ed2 --- /dev/null +++ b/databases/mysql54-server/files/mysql-client.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/mysql + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile index b004b4c6e891..251880f95b17 100644 --- a/databases/mysql55-server/Makefile +++ b/databases/mysql55-server/Makefile @@ -95,9 +95,7 @@ CONFIGURE_ARGS+=--without-server 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} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql-client.sh + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/mysql-client.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-client.sh .endif diff --git a/databases/mysql55-server/files/mysql-client.sh b/databases/mysql55-server/files/mysql-client.sh new file mode 100644 index 000000000000..bef414c12ed2 --- /dev/null +++ b/databases/mysql55-server/files/mysql-client.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/mysql + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/databases/mysql60-server/Makefile b/databases/mysql60-server/Makefile index b004b4c6e891..251880f95b17 100644 --- a/databases/mysql60-server/Makefile +++ b/databases/mysql60-server/Makefile @@ -95,9 +95,7 @@ CONFIGURE_ARGS+=--without-server 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} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql-client.sh + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/mysql-client.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-client.sh .endif diff --git a/databases/mysql60-server/files/mysql-client.sh b/databases/mysql60-server/files/mysql-client.sh new file mode 100644 index 000000000000..bef414c12ed2 --- /dev/null +++ b/databases/mysql60-server/files/mysql-client.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/mysql + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/databases/percona55-server/Makefile b/databases/percona55-server/Makefile index b004b4c6e891..251880f95b17 100644 --- a/databases/percona55-server/Makefile +++ b/databases/percona55-server/Makefile @@ -95,9 +95,7 @@ CONFIGURE_ARGS+=--without-server 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} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql-client.sh + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/mysql-client.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-client.sh .endif diff --git a/databases/percona55-server/files/mysql-client.sh b/databases/percona55-server/files/mysql-client.sh new file mode 100644 index 000000000000..bef414c12ed2 --- /dev/null +++ b/databases/percona55-server/files/mysql-client.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/mysql + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac |