blob: 9b73337b9794ddb8097ff8026314ad5c69a20e6e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Created by: Daniel O'Connor
# $FreeBSD$
PORTNAME= teamspeak3-server
PORTVERSION= 3.0.13.8
PORTEPOCH= 1
CATEGORIES= audio net
MASTER_SITES= http://dl.4players.de/ts/releases/${PORTVERSION}/ \
http://teamspeak.gameserver.gamed.de/ts3/releases/${PORTVERSION}/
DISTNAME= ${PORTNAME}_freebsd_${TEAMSPEAK_ARCH}-${PORTVERSION}
MAINTAINER= ultima@FreeBSD.org
COMMENT= Server side of the TeamSpeak group voice chat system
LICENSE= teamspeak
LICENSE_NAME= TeamSpeak 3.x End User License Agreement
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell
ONLY_FOR_ARCHS= amd64 i386
USES= tar:bz2
USE_LDCONFIG= ${LIBDIR}
USE_RC_SUBR= teamspeak
NO_BUILD= yes
SUB_FILES= pkg-message
USERS= teamspeak
GROUPS= teamspeak
CONFLICTS= teamspeak_server-[0-9]*
PLIST_SUB= DBDIR=${DBDIR} \
ETCDIR=${ETCDIR} \
LOGDIR=${LOGDIR} \
BINGRP=${BINGRP}
SUB_LIST= DBDIR=${DBDIR} \
ETCDIR=${ETCDIR} \
LOGDIR=${LOGDIR}
PORTDOCS= permissiondoc.txt \
privilegekey_guide.txt \
server_quickstart.txt \
server_upgrade.txt \
update_mysql_to_mariadb.txt
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100000 && ${OSVERSION} < 1100507
SUB_LIST+= CD="cd \$$db_dir"
.else
SUB_LIST+= CD=
.endif
.if ${ARCH} == "i386"
TEAMSPEAK_ARCH= x86
.elif ${ARCH} == "amd64"
TEAMSPEAK_ARCH= amd64
.endif
WRKSRC= ${WRKDIR}/${PORTNAME}_freebsd_${TEAMSPEAK_ARCH}
DBDIR= /var/db/teamspeak
ETCDIR= ${PREFIX}/etc/teamspeak
LIBDIR= ${PREFIX}/lib/teamspeak/server
LIBEXECDIR= ${PREFIX}/libexec
LOGDIR= /var/log/teamspeak
SHAREDIR= ${PREFIX}/share/teamspeak/server
do-install:
@${MKDIR} ${STAGEDIR}${SHAREDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${STAGEDIR}${SHAREDIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${STAGEDIR}${SHAREDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "sql serverquerydocs" ${STAGEDIR}${SHAREDIR})
@${MKDIR} ${STAGEDIR}${LIBDIR}
${INSTALL_LIB} ${WRKSRC}/*.so ${STAGEDIR}${LIBDIR}
${INSTALL_LIB} ${WRKSRC}/redist/*.so* ${STAGEDIR}${LIBDIR}
${INSTALL_PROGRAM} ${WRKSRC}/ts3server \
${STAGEDIR}${LIBEXECDIR}/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
. for DOCFILE in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${DOCFILE} ${STAGEDIR}${DOCSDIR}
. endfor
${INSTALL} -d ${STAGEDIR}${DBDIR}
${INSTALL} -d ${STAGEDIR}${LOGDIR}
${INSTALL} -d ${STAGEDIR}${ETCDIR}
.include <bsd.port.mk>
|