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

Collapse All | Expand All

(-)databases/mysqlwsrep57-server/Makefile (+9 lines)
Lines 5-10 PORTNAME= mysqlwsrep Link Here
5
PORTVERSION?=	5.7.21
5
PORTVERSION?=	5.7.21
6
DISTVERSIONPREFIX?=	wsrep_
6
DISTVERSIONPREFIX?=	wsrep_
7
DISTVERSIONSUFFIX?=	-25.14
7
DISTVERSIONSUFFIX?=	-25.14
8
PORTREVISION?=	1
8
CATEGORIES=	databases ipv6
9
CATEGORIES=	databases ipv6
9
MASTER_SITES+=	SF/boost/boost/1.59.0:boost
10
MASTER_SITES+=	SF/boost/boost/1.59.0:boost
10
PKGNAMESUFFIX=	57-server
11
PKGNAMESUFFIX=	57-server
Lines 163-168 PERFSCHM_SUB_LIST_OFF+= PERFSCHEMRC="--skip-performance-schema" Link Here
163
FEDERATED_SUB_LIST+=	FEDER="--federated"
164
FEDERATED_SUB_LIST+=	FEDER="--federated"
164
FEDERATED_SUB_LIST_OFF+=FEDER=""
165
FEDERATED_SUB_LIST_OFF+=FEDER=""
165
166
167
.include <bsd.port.options.mk>
168
169
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057
170
SUB_LIST+=	LEGACY_LIMITS="@comment " MODERN_LIMITS=""
171
.else
172
SUB_LIST+=	LEGACY_LIMITS="" MODERN_LIMITS="@comment "
173
.endif
174
166
.include <bsd.port.pre.mk>
175
.include <bsd.port.pre.mk>
167
176
168
.if ${SSL_DEFAULT} == base
177
.if ${SSL_DEFAULT} == base
(-)databases/mysqlwsrep57-server/files/mysql-server.in (-10 / +11 lines)
Lines 11-19 Link Here
11
# Add the following line to /etc/rc.conf to enable mysql:
11
# Add the following line to /etc/rc.conf to enable mysql:
12
# mysql_enable (bool):	Set to "NO" by default.
12
# mysql_enable (bool):	Set to "NO" by default.
13
#			Set it to "YES" to enable MySQL.
13
#			Set it to "YES" to enable MySQL.
14
# mysql_limits (bool):	Set to "NO" by default.
14
%%LEGACY_LIMITS%%# mysql_limits (bool):	Set to "NO" by default.
15
#			Set it to yes to run `limits -e -U mysql`
15
%%LEGACY_LIMITS%%#			Set it to yes to run `limits -e -U mysql`
16
#			just before mysql starts.
16
%%LEGACY_LIMITS%%#			just before mysql starts.
17
# mysql_dbdir (str):	Default to "%%MY_DBDIR%%"
17
# mysql_dbdir (str):	Default to "%%MY_DBDIR%%"
18
#			Base database directory.
18
#			Base database directory.
19
# mysql_confdir (str):	Default to "%%ETCDIR%%"
19
# mysql_confdir (str):	Default to "%%ETCDIR%%"
Lines 36-42 rcvar=mysql_enable Link Here
36
load_rc_config $name
36
load_rc_config $name
37
37
38
: ${mysql_enable="NO"}
38
: ${mysql_enable="NO"}
39
: ${mysql_limits="NO"}
39
%%LEGACY_LIMITS%%: ${mysql_limits="NO"}
40
: ${mysql_dbdir="%%MY_DBDIR%%"}
40
: ${mysql_dbdir="%%MY_DBDIR%%"}
41
: ${mysql_confdir="%%ETCDIR%%"}
41
: ${mysql_confdir="%%ETCDIR%%"}
42
if [ -f "${mysql_confdir}/my.cnf" ]; then
42
if [ -f "${mysql_confdir}/my.cnf" ]; then
Lines 49-55 mysql_extra="--defaults-extra-file=${mysql_optfile}" Link Here
49
fi
49
fi
50
50
51
mysql_user="mysql"
51
mysql_user="mysql"
52
mysql_limits_args="-e -U ${mysql_user}"
52
%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}"
53
: ${hostname:=`/bin/hostname`}
53
: ${hostname:=`/bin/hostname`}
54
pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"}
54
pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"}
55
command="/usr/sbin/daemon"
55
command="/usr/sbin/daemon"
Lines 84-94 mysql_prestart() Link Here
84
	if [ ! -d "${mysql_dbdir}/mysql/." ]; then
84
	if [ ! -d "${mysql_dbdir}/mysql/." ]; then
85
		mysql_create_auth_tables || return 1
85
		mysql_create_auth_tables || return 1
86
	fi
86
	fi
87
	if checkyesno mysql_limits; then
87
%%LEGACY_LIMITS%%	if checkyesno mysql_limits; then
88
		eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null
88
%%LEGACY_LIMITS%%		eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null
89
	else
89
%%LEGACY_LIMITS%%	else
90
		return 0
90
%%LEGACY_LIMITS%%		return 0
91
	fi
91
%%LEGACY_LIMITS%%	fi
92
%%MODERN_LIMITS%%	return 0
92
}
93
}
93
94
94
mysql_poststart()
95
mysql_poststart()

Return to bug 227233