aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql54-server
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>2000-11-16 18:29:06 +0800
committerdirk <dirk@FreeBSD.org>2000-11-16 18:29:06 +0800
commit654f6517149ae64e313bf8fa126dae2c12e4e67c (patch)
treedcc84b25f4a34770d24de56cfce13107f3213b14 /databases/mysql54-server
parent20c8f3b568078ff6cb2daa601d771a9b1efaed25 (diff)
downloadfreebsd-ports-gnome-654f6517149ae64e313bf8fa126dae2c12e4e67c.tar.gz
freebsd-ports-gnome-654f6517149ae64e313bf8fa126dae2c12e4e67c.tar.zst
freebsd-ports-gnome-654f6517149ae64e313bf8fa126dae2c12e4e67c.zip
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/mysql54-server')
-rw-r--r--databases/mysql54-server/Makefile4
-rw-r--r--databases/mysql54-server/files/mysql-client.sh15
2 files changed, 16 insertions, 3 deletions
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