svn commit: r446701 - in head/audio/teamspeak3-server: . files
Richard Gallamore
ultima at FreeBSD.org
Wed Jul 26 23:02:08 UTC 2017
Author: ultima
Date: Wed Jul 26 23:02:06 2017
New Revision: 446701
URL: https://svnweb.freebsd.org/changeset/ports/446701
Log:
* Added new default unset option MYSQL
If mysql is used instead of sqlite, teamspeak can fail to start because
mysql sometimes starts after teamspeak. As a fix, a new option has been
added that will add mysql to REQUIRES and set mysql server as a depend.
Reported by: Dries Michiels <driesmp at hotmail.com>
Reviewed by: lifanov (mentor)
Approved by: lifanov (mentor)
Differential Revision: https://reviews.freebsd.org/D11681
Modified:
head/audio/teamspeak3-server/Makefile
head/audio/teamspeak3-server/files/teamspeak.in
Modified: head/audio/teamspeak3-server/Makefile
==============================================================================
--- head/audio/teamspeak3-server/Makefile Wed Jul 26 22:31:37 2017 (r446700)
+++ head/audio/teamspeak3-server/Makefile Wed Jul 26 23:02:06 2017 (r446701)
@@ -3,6 +3,7 @@
PORTNAME= teamspeak3-server
PORTVERSION= 3.0.13.8
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= audio net
MASTER_SITES= http://dl.4players.de/ts/releases/${PORTVERSION}/ \
@@ -46,7 +47,11 @@ PORTDOCS= permissiondoc.txt \
server_upgrade.txt \
update_mysql_to_mariadb.txt
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS MYSQL
+
+MYSQL_USES= mysql:server
+MYSQL_VARS= SUB_LIST+=MYSQL=mysql
+MYSQL_VARS_OFF= SUB_LIST+=MYSQL=
.include <bsd.port.options.mk>
Modified: head/audio/teamspeak3-server/files/teamspeak.in
==============================================================================
--- head/audio/teamspeak3-server/files/teamspeak.in Wed Jul 26 22:31:37 2017 (r446700)
+++ head/audio/teamspeak3-server/files/teamspeak.in Wed Jul 26 23:02:06 2017 (r446701)
@@ -3,7 +3,7 @@
# $FreeBSD$
#
# PROVIDE: teamspeak
-# REQUIRE: LOGIN
+# REQUIRE: LOGIN %%MYSQL%%
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
More information about the svn-ports-head
mailing list