diff options
author | dirk <dirk@FreeBSD.org> | 2000-11-16 10:29:06 +0000 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2000-11-16 10:29:06 +0000 |
commit | 654f6517149ae64e313bf8fa126dae2c12e4e67c (patch) | |
tree | dcc84b25f4a34770d24de56cfce13107f3213b14 /databases/mysql55-server | |
parent | 20c8f3b568078ff6cb2daa601d771a9b1efaed25 (diff) | |
download | FreeBSD-ports-654f6517149ae64e313bf8fa126dae2c12e4e67c.zip FreeBSD-ports-654f6517149ae64e313bf8fa126dae2c12e4e67c.tar.gz |
Move mysql-client.sh from Makefile to files/mysql-client.sh
and add a start/stop parameter to satisfy rc.shutdown.
Diffstat (limited to 'databases/mysql55-server')
-rw-r--r-- | databases/mysql55-server/Makefile | 4 | ||||
-rw-r--r-- | databases/mysql55-server/files/mysql-client.sh | 15 |
2 files changed, 16 insertions, 3 deletions
diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile index b004b4c..251880f 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 0000000..bef414c --- /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 |