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

Collapse All | Expand All

(-)databases/mysql80-server/Makefile (-1 / +10 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME?=		mysql
4
PORTNAME?=		mysql
5
PORTVERSION=		8.0.2
5
PORTVERSION=		8.0.2
6
PORTREVISION?=		1
6
PORTREVISION?=		2
7
DISTVERSIONSUFFIX?=	-dmr
7
DISTVERSIONSUFFIX?=	-dmr
8
CATEGORIES=		databases ipv6
8
CATEGORIES=		databases ipv6
9
MASTER_SITES=		MYSQL/MySQL-8.0
9
MASTER_SITES=		MYSQL/MySQL-8.0
Lines 139-144 FEDERATED_SUB_LIST+= FEDER="--federated" Link Here
139
FEDERATED_SUB_LIST_OFF+=	FEDER=""
139
FEDERATED_SUB_LIST_OFF+=	FEDER=""
140
.endif
140
.endif
141
141
142
.include <bsd.port.options.mk>
143
144
.if ${OPSYS} != FreeBSD || ${OSVERSION} < 1101515 || \
145
	${OSVERSION} >= 1200000 && ${OSVERSION} < 1200057
146
SUB_LIST+=	LEGACY_LIMITS="" MODERN_LIMITS="@comment "
147
.else
148
SUB_LIST+=	LEGACY_LIMITS="@comment " MODERN_LIMITS=""
149
.endif
150
142
.include <bsd.port.pre.mk>
151
.include <bsd.port.pre.mk>
143
152
144
.if ${SSL_DEFAULT} == base
153
.if ${SSL_DEFAULT} == base
(-)databases/mysql80-server/files/mysql-server.in (-13 / +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 47-58 fi Link Here
47
if [ ! -z "${mysql_optfile}" ]; then
47
if [ ! -z "${mysql_optfile}" ]; then
48
mysql_extra="--defaults-extra-file=${mysql_optfile}"
48
mysql_extra="--defaults-extra-file=${mysql_optfile}"
49
fi
49
fi
50
if [ "${mysql_limits}" = "NO" ]; then
51
mysql_limits=""
52
fi
53
50
54
mysql_user="mysql"
51
mysql_user="mysql"
55
mysql_limits_args="-e -U ${mysql_user}"
52
%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}"
56
: ${hostname:=`/bin/hostname`}
53
: ${hostname:=`/bin/hostname`}
57
pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"}
54
pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"}
58
command="/usr/sbin/daemon"
55
command="/usr/sbin/daemon"
Lines 73-83 mysql_prestart() Link Here
73
	if [ ! -d "${mysql_dbdir}/mysql/." ]; then
70
	if [ ! -d "${mysql_dbdir}/mysql/." ]; then
74
		mysql_create_auth_tables || return 1
71
		mysql_create_auth_tables || return 1
75
	fi
72
	fi
76
	if [ -z "$mysql_limits" ] || checkyesno mysql_limits; then
73
%%LEGACY_LIMITS%%	if checkyesno mysql_limits; then
77
		eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null
74
%%LEGACY_LIMITS%%		eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null
78
	else
75
%%LEGACY_LIMITS%%	else
79
		return 0
76
%%LEGACY_LIMITS%%		return 0
80
	fi
77
%%LEGACY_LIMITS%%	fi
78
%%MODERN_LIMITS%%	return 0
81
}
79
}
82
80
83
mysql_poststart()
81
mysql_poststart()

Return to bug 227231