summaryrefslogtreecommitdiffstats
path: root/databases/mysql40-server
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2006-01-12 08:57:43 +0000
committerale <ale@FreeBSD.org>2006-01-12 08:57:43 +0000
commite2bed49905d9be22dd0a0df6da7ce264f498eaff (patch)
tree20cfda97edc750039fd00ac75e1355b51eba2ea2 /databases/mysql40-server
parent57d043031dd9518596d10725f520e2cb81693a87 (diff)
downloadFreeBSD-ports-e2bed49905d9be22dd0a0df6da7ce264f498eaff.zip
FreeBSD-ports-e2bed49905d9be22dd0a0df6da7ce264f498eaff.tar.gz
Convert mysql-client.sh to rcNG.
Diffstat (limited to 'databases/mysql40-server')
-rw-r--r--databases/mysql40-server/Makefile12
-rw-r--r--databases/mysql40-server/files/mysql-client.sh15
-rw-r--r--databases/mysql40-server/pkg-plist.client1
3 files changed, 5 insertions, 23 deletions
diff --git a/databases/mysql40-server/Makefile b/databases/mysql40-server/Makefile
index 3e2eeff..6d37497 100644
--- a/databases/mysql40-server/Makefile
+++ b/databases/mysql40-server/Makefile
@@ -20,10 +20,6 @@ SLAVEDIRS= databases/mysql40-client
USE_AUTOTOOLS= libtool:15
USE_REINPLACE= yes
-.if ${PKGNAMESUFFIX} == "-server"
-USE_RC_SUBR= mysql-server.sh
-.endif
-
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
--without-debug \
@@ -104,6 +100,8 @@ LATEST_LINK= mysql40-server
CONFLICTS= mysql-server-3.* mysql-server-4.[1-9].* mysql-server-5.*
+USE_RC_SUBR= mysql-server.sh
+
MAN1= isamchk.1 isamlog.1 mysqld.1 \
mysqld_safe.1 perror.1 replace.1
@@ -152,6 +150,8 @@ MAN1= mysql.1 mysqladmin.1 mysqldump.1 mysqlshow.1
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/lib/mysql
+USE_LDCONFIG= ${PREFIX}/lib/mysql
+.include "${PORTSDIR}/misc/ldconfig_compat/bsd.ldconfig.mk"
CONFIGURE_ARGS+=--without-server
@@ -164,9 +164,7 @@ post-patch:
@${REINPLACE_CMD} -e "s|PTHREAD_SCOPE_SYSTEM|PTHREAD_SCOPE_PROCESS|g" ${WRKSRC}/tools/mysqlmanager.c
.endif
-post-install:
- @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh
- @${CHMOD} 750 ${PREFIX}/etc/rc.d/000.mysql-client.sh
+post-install: install-ldconfig-file
.else
# MySQL-Scripts part
diff --git a/databases/mysql40-server/files/mysql-client.sh b/databases/mysql40-server/files/mysql-client.sh
deleted file mode 100644
index bef414c..0000000
--- a/databases/mysql40-server/files/mysql-client.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/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/pkg-plist.client b/databases/mysql40-server/pkg-plist.client
index 23923af..2a8a52b 100644
--- a/databases/mysql40-server/pkg-plist.client
+++ b/databases/mysql40-server/pkg-plist.client
@@ -11,7 +11,6 @@ bin/mysqlmanager-pwgen
bin/mysqlmanagerc
bin/mysqlshow
bin/mysqltest
-etc/rc.d/000.mysql-client.sh
include/mysql/errmsg.h
include/mysql/m_ctype.h
include/mysql/m_string.h
OpenPOWER on IntegriCloud