View | Details | Raw Unified | Return to bug 227224
Collapse All | Expand All

(-)databases/mariadb100-server/Makefile (-1 / +10 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME?=	mariadb
3
PORTNAME?=	mariadb
4
PORTVERSION=	10.0.34
4
PORTVERSION=	10.0.34
5
PORTREVISION?=	0
5
PORTREVISION?=	1
6
CATEGORIES=	databases ipv6
6
CATEGORIES=	databases ipv6
7
MASTER_SITES=	http://ftp.osuosl.org/pub/${SITESDIR}/ \
7
MASTER_SITES=	http://ftp.osuosl.org/pub/${SITESDIR}/ \
8
		http://mirrors.supportex.net/${SITESDIR}/ \
8
		http://mirrors.supportex.net/${SITESDIR}/ \
Lines 161-166 NOT_FOR_ARCHS_REASON= TokuDB not supported on 32-bit platforms, see \ Link Here
161
USE_GCC=	yes
161
USE_GCC=	yes
162
.endif
162
.endif
163
163
164
.include <bsd.port.options.mk>
165
166
.if ${OPSYS} != FreeBSD || ${OSVERSION} < 1101515 || \
167
	${OSVERSION} >= 1200000 && ${OSVERSION} < 1200057
168
SUB_LIST+=	LEGACY_LIMITS="" MODERN_LIMITS="@comment "
169
.else
170
SUB_LIST+=	LEGACY_LIMITS="@comment " MODERN_LIMITS=""
171
.endif
172
164
post-patch:
173
post-patch:
165
	@${REINPLACE_CMD} 's/*.1/${MAN1}/' ${WRKSRC}/man/CMakeLists.txt
174
	@${REINPLACE_CMD} 's/*.1/${MAN1}/' ${WRKSRC}/man/CMakeLists.txt
166
	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/mysys/my_default.c
175
	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/mysys/my_default.c
(-)databases/mariadb100-server/files/mysql-server.in (-13 / +14 lines)
Lines 9-17 Link Here
9
# Add the following line to /etc/rc.conf to enable mysql:
9
# Add the following line to /etc/rc.conf to enable mysql:
10
# mysql_(instance_)?enable (bool):	Set to "NO" by default.
10
# mysql_(instance_)?enable (bool):	Set to "NO" by default.
11
#			Set it to "YES" to enable MySQL.
11
#			Set it to "YES" to enable MySQL.
12
# mysql_(instance_)?limits (bool):	Set to "NO" by default.
12
%%LEGACY_LIMITS%%# mysql_(instance_)?limits (bool):	Set to "NO" by default.
13
#			Set it to yes to run `limits -e -U mysql`
13
%%LEGACY_LIMITS%%#			Set it to yes to run `limits -e -U mysql`
14
#			just before mysql starts.
14
%%LEGACY_LIMITS%%#			just before mysql starts.
15
# mysql_(instance_)?dbdir (str):	Default to "/var/db/mysql"
15
# mysql_(instance_)?dbdir (str):	Default to "/var/db/mysql"
16
#			Base database directory.
16
#			Base database directory.
17
# mysql_(instance_)?args (str):	Custom additional arguments to be passed
17
# mysql_(instance_)?args (str):	Custom additional arguments to be passed
Lines 22-28 Link Here
22
#			Default to "mysql" created by the port
22
#			Default to "mysql" created by the port
23
# mysql_(instance_)?optfile (str): Server-specific option file.
23
# mysql_(instance_)?optfile (str): Server-specific option file.
24
#			Default to "${mysql_dbdir}/my.cnf".
24
#			Default to "${mysql_dbdir}/my.cnf".
25
# mysql_instances (str): Set to "" by default. 
25
# mysql_instances (str): Set to "" by default.
26
#			If defined, list of instances to enable
26
#			If defined, list of instances to enable
27
27
28
. /etc/rc.subr
28
. /etc/rc.subr
Lines 33-41 rcvar=mysql_enable Link Here
33
load_rc_config $name
33
load_rc_config $name
34
34
35
: ${mysql_enable="NO"}
35
: ${mysql_enable="NO"}
36
: ${mysql_limits="NO"}
36
%%LEGACY_LIMITS%%: ${mysql_limits="NO"}
37
: ${mysql_user="mysql"}
37
: ${mysql_user="mysql"}
38
: ${mysql_limits_args="-e -U $mysql_user"}
38
%%LEGACY_LIMITS%%: ${mysql_limits_args="-e -U $mysql_user"}
39
: ${mysql_dbdir="/var/db/mysql"}
39
: ${mysql_dbdir="/var/db/mysql"}
40
: ${mysql_optfile="${mysql_dbdir}/my.cnf"}
40
: ${mysql_optfile="${mysql_dbdir}/my.cnf"}
41
41
Lines 51-59 if [ -n "$2" ]; then Link Here
51
	"$2 "*|*" $2 "*|*" $2"|"$2")
51
	"$2 "*|*" $2 "*|*" $2"|"$2")
52
		eval mysql_args="\${mysql_${instance}_args:-\"${mysql_args}\"}"
52
		eval mysql_args="\${mysql_${instance}_args:-\"${mysql_args}\"}"
53
		eval mysql_dbdir="\${mysql_${instance}_dbdir:-\"/var/db/mysql_${instance}\"}"
53
		eval mysql_dbdir="\${mysql_${instance}_dbdir:-\"/var/db/mysql_${instance}\"}"
54
		eval mysql_limits="\${mysql_${instance}_limits:-\"${mysql_limits}\"}"
54
%%LEGACY_LIMITS%%		eval mysql_limits="\${mysql_${instance}_limits:-\"${mysql_limits}\"}"
55
		eval mysql_user="\${mysql_${instance}_user:-\"${mysql_user}\"}"
55
		eval mysql_user="\${mysql_${instance}_user:-\"${mysql_user}\"}"
56
		eval mysql_limits_args="\${mysql_${instance}_limits_args:-\"-e -U $mysql_user\"}"
56
%%LEGACY_LIMITS%%		eval mysql_limits_args="\${mysql_${instance}_limits_args:-\"-e -U $mysql_user\"}"
57
		eval mysql_optfile="\${mysql_${instance}_optfile:-\"${mysql_dbdir}/my.cnf\"}"
57
		eval mysql_optfile="\${mysql_${instance}_optfile:-\"${mysql_dbdir}/my.cnf\"}"
58
		eval mysql_pidfile="\${mysql_${instance}_pidfile:-\"${mysql_dbdir}/`/bin/hostname`.pid\"}"
58
		eval mysql_pidfile="\${mysql_${instance}_pidfile:-\"${mysql_dbdir}/`/bin/hostname`.pid\"}"
59
	;;
59
	;;
Lines 119-129 mysql_prestart() Link Here
119
	if [ ! -d "${mysql_dbdir}/mysql/." ]; then
119
	if [ ! -d "${mysql_dbdir}/mysql/." ]; then
120
		mysql_create_auth_tables || return 1
120
		mysql_create_auth_tables || return 1
121
	fi
121
	fi
122
	if checkyesno mysql_limits; then
122
%%LEGACY_LIMITS%%	if checkyesno mysql_limits; then
123
		eval `/usr/bin/limits ${mysql_limits_args:-"-e -U $mysql_user"}` 2>/dev/null
123
%%LEGACY_LIMITS%%		eval `/usr/bin/limits ${mysql_limits_args:-"-e -U $mysql_user"}` 2>/dev/null
124
	else
124
%%LEGACY_LIMITS%%	else
125
		return 0
125
%%LEGACY_LIMITS%%		return 0
126
	fi
126
%%LEGACY_LIMITS%%	fi
127
%%MODERN_LIMITS%%	return 0
127
}
128
}
128
129
129
mysql_poststart()
130
mysql_poststart()

Return to bug 227224