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

Collapse All | Expand All

(-)databases/percona57-server/Makefile (-1 / +10 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME?=	percona
4
PORTNAME?=	percona
5
DISTVERSION=	5.7.21-20
5
DISTVERSION=	5.7.21-20
6
PORTREVISION?=	0
6
PORTREVISION?=	1
7
CATEGORIES=	databases ipv6
7
CATEGORIES=	databases ipv6
8
MASTER_SITES=	http://www.percona.com/downloads/Percona-Server-5.7/Percona-Server-${DISTVERSION}/source/tarball/:percona \
8
MASTER_SITES=	http://www.percona.com/downloads/Percona-Server-5.7/Percona-Server-${DISTVERSION}/source/tarball/:percona \
9
		SF/boost/boost/1.59.0:boost
9
		SF/boost/boost/1.59.0:boost
Lines 127-132 CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER="ON" Link Here
127
# But this keeps the pkg-plist not overlaping
127
# But this keeps the pkg-plist not overlaping
128
CMAKE_ARGS+=	-DWITH_AUTHENTICATION_LDAP=0
128
CMAKE_ARGS+=	-DWITH_AUTHENTICATION_LDAP=0
129
129
130
.include <bsd.port.options.mk>
131
132
.if ${OPSYS} != FreeBSD || ${OSVERSION} < 1101515 || \
133
	${OSVERSION} >= 1200000 && ${OSVERSION} < 1200057
134
SUB_LIST+=	LEGACY_LIMITS="" MODERN_LIMITS="@comment "
135
.else
136
SUB_LIST+=	LEGACY_LIMITS="@comment " MODERN_LIMITS=""
137
.endif
138
130
post-install:
139
post-install:
131
	${MKDIR} ${STAGEDIR}/var/db/mysql
140
	${MKDIR} ${STAGEDIR}/var/db/mysql
132
	${MKDIR} ${STAGEDIR}${ETCDIR}/keyring
141
	${MKDIR} ${STAGEDIR}${ETCDIR}/keyring
(-)databases/percona57-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 34-40 rcvar=mysql_enable Link Here
34
load_rc_config $name
34
load_rc_config $name
35
35
36
: ${mysql_enable="NO"}
36
: ${mysql_enable="NO"}
37
: ${mysql_limits="NO"}
37
%%LEGACY_LIMITS%%: ${mysql_limits="NO"}
38
: ${mysql_dbdir="%%MY_DBDIR%%"}
38
: ${mysql_dbdir="%%MY_DBDIR%%"}
39
: ${mysql_confdir="%%ETCDIR%%"}
39
: ${mysql_confdir="%%ETCDIR%%"}
40
if [ -f "${mysql_dbdir}/my.cnf" ]; then
40
if [ -f "${mysql_dbdir}/my.cnf" ]; then
Lines 44-50 else Link Here
44
fi
44
fi
45
45
46
mysql_user="mysql"
46
mysql_user="mysql"
47
mysql_limits_args="-e -U ${mysql_user}"
47
%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}"
48
: ${hostname:=`/bin/hostname`}
48
: ${hostname:=`/bin/hostname`}
49
pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"}
49
pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"}
50
command="/usr/sbin/daemon"
50
command="/usr/sbin/daemon"
Lines 76-86 mysql_prestart() Link Here
76
	if [ ! -d "${mysql_dbdir}/mysql" ]; then
76
	if [ ! -d "${mysql_dbdir}/mysql" ]; then
77
		mysql_create_auth_tables || return 1
77
		mysql_create_auth_tables || return 1
78
	fi
78
	fi
79
	if checkyesno mysql_limits; then
79
%%LEGACY_LIMITS%%	if checkyesno mysql_limits; then
80
		eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null
80
%%LEGACY_LIMITS%%		eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null
81
	else
81
%%LEGACY_LIMITS%%	else
82
		return 0
82
%%LEGACY_LIMITS%%		return 0
83
	fi
83
%%LEGACY_LIMITS%%	fi
84
%%MODERN_LIMITS%%	return 0
84
}
85
}
85
86
86
mysql_poststart()
87
mysql_poststart()

Return to bug 227236