View | Details | Raw Unified | Return to bug 91696 | Differences between
and this patch

Collapse All | Expand All

(-)mysql41-server/Makefile (-4 / +4 lines)
Lines 24-29 Link Here
24
USE_RC_SUBR=	mysql-server.sh
24
USE_RC_SUBR=	mysql-server.sh
25
.endif
25
.endif
26
26
27
.if ${PKGNAMESUFFIX} == "-client"
28
USE_RC_SUBR=	000.mysql-client.sh
29
.endif
30
27
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
31
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
28
CONFIGURE_ARGS=	--localstatedir=/var/db/mysql \
32
CONFIGURE_ARGS=	--localstatedir=/var/db/mysql \
29
		--without-debug \
33
		--without-debug \
Lines 189-198 Link Here
189
.if defined(WITH_PROC_SCOPE_PTH)
193
.if defined(WITH_PROC_SCOPE_PTH)
190
	@${REINPLACE_CMD} -e "s|PTHREAD_SCOPE_SYSTEM|PTHREAD_SCOPE_PROCESS|g" ${WRKSRC}/tools/mysqlmanager.c
194
	@${REINPLACE_CMD} -e "s|PTHREAD_SCOPE_SYSTEM|PTHREAD_SCOPE_PROCESS|g" ${WRKSRC}/tools/mysqlmanager.c
191
.endif
195
.endif
192
193
post-install:
194
	@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh
195
	@${CHMOD} 750 ${PREFIX}/etc/rc.d/000.mysql-client.sh
196
196
197
.else
197
.else
198
# MySQL-Scripts part
198
# MySQL-Scripts part
(-)mysql41-server/files/000.mysql-client.sh.in (+22 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# PROVIDE: mysql_client
6
# REQUIRE: ldconfig
7
#
8
# Add the following to /etc/rc.conf[.local] to enable this service
9
#
10
# mysql_client_enable="YES"
11
#
12
13
. %%RC_SUBR%%
14
15
name=mysql_client
16
rcvar=`set_rcvar`
17
18
command=%%LDCONFIG%%
19
command_args='-m %%PREFIX%%/lib/mysql'
20
21
load_rc_config ${name}
22
run_rc_command "$1"
(-)mysql41-server/files/mysql-client.sh (-15 lines)
Lines 1-15 Link Here
1
#!/bin/sh
2
3
case "$1" in
4
	start)
5
		/sbin/ldconfig -m %%PREFIX%%/lib/mysql
6
		;;
7
	stop)
8
		;;
9
	*)
10
		echo ""
11
		echo "Usage: `basename $0` { start | stop }"
12
		echo ""
13
		exit 64
14
		;;
15
esac
(-)mysql41-server/pkg-plist.client (-1 lines)
Lines 11-17 Link Here
11
bin/mysqlmanagerc
11
bin/mysqlmanagerc
12
bin/mysqlshow
12
bin/mysqlshow
13
bin/mysqltest
13
bin/mysqltest
14
etc/rc.d/000.mysql-client.sh
15
include/mysql/errmsg.h
14
include/mysql/errmsg.h
16
include/mysql/keycache.h
15
include/mysql/keycache.h
17
include/mysql/m_ctype.h
16
include/mysql/m_ctype.h

Return to bug 91696