diff options
Diffstat (limited to 'databases/mysql40-server')
-rw-r--r-- | databases/mysql40-server/Makefile | 4 | ||||
-rw-r--r-- | databases/mysql40-server/files/mysql-client.sh | 15 |
2 files changed, 16 insertions, 3 deletions
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 |