mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
dd052620f5
PR: ports/186374 Submitted by: R Hirner <hirner@bitfire.at> (maintainer)
96 lines
2.4 KiB
Makefile
96 lines
2.4 KiB
Makefile
# Created by: Daniel O'Connor
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= teamspeak3-server
|
|
PORTVERSION= 3.0.10.3
|
|
PORTEPOCH= 1
|
|
CATEGORIES= audio net
|
|
MASTER_SITES= http://dl.4players.de/ts/releases/${PORTVERSION}/ \
|
|
http://teamspeak.gameserver.gamed.de/ts3/releases/${PORTVERSION}/ \
|
|
http://files.teamspeak-services.com/releases/${PORTVERSION}/
|
|
DISTNAME= ${PORTNAME}_freebsd-${TEAMSPEAK_ARCH}-${PORTVERSION}
|
|
|
|
MAINTAINER= hirner@bitfire.at
|
|
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
|
|
|
|
.ifdef (BATCH)
|
|
IGNORE= license ${LICENSE} needs confirmation, but BATCH is defined
|
|
.endif
|
|
|
|
USES= iconv
|
|
NO_STAGE= yes
|
|
USE_LDCONFIG= ${PREFIX}/lib/teamspeak/server
|
|
USE_RC_SUBR= teamspeak
|
|
SUB_FILES= pkg-message
|
|
|
|
RESTRICTED= No redistribution
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
NO_BUILD= yes
|
|
|
|
USERS= teamspeak
|
|
GROUPS= teamspeak
|
|
|
|
CONFLICTS= teamspeak_server-[0-9]*
|
|
|
|
PLIST_SUB+= DBDIR=${DBDIR} \
|
|
LOGDIR=${LOGDIR} \
|
|
USERS=${USERS} \
|
|
GROUPS=${GROUPS} \
|
|
BINGRP=${BINGRP}
|
|
|
|
SUB_LIST+= DBDIR=${DBDIR} \
|
|
LOGDIR=${LOGDIR}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == "i386"
|
|
TEAMSPEAK_ARCH= x86
|
|
.endif
|
|
.if ${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
|
|
PORTDOCS= ts3_serverquery_manual.pdf \
|
|
permissiondoc.txt \
|
|
privilegekey_guide.txt \
|
|
server_quickstart.txt \
|
|
server_upgrade.txt
|
|
|
|
do-install:
|
|
@${MKDIR} ${LIBDIR} ${SHAREDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${SHAREDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/LICENSE ${SHAREDIR}
|
|
@${INSTALL_LIB} ${WRKSRC}/*.so ${LIBDIR}
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/ts3server_freebsd_${TEAMSPEAK_ARCH} \
|
|
${LIBEXECDIR}/teamspeak_server
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "sql serverquerydocs" ${SHAREDIR})
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
. for DOCFILE in ${PORTDOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${DOCFILE} ${DOCSDIR}
|
|
. endfor
|
|
.endif
|
|
|
|
post-install:
|
|
@${INSTALL} -d -o ${USERS} -g ${GROUPS} ${DBDIR}
|
|
@${INSTALL} -d -o ${USERS} -g ${BINGRP} ${LOGDIR}
|
|
@${MKDIR} ${ETCDIR}
|
|
@${CAT} ${WRKDIR}/pkg-message
|
|
|
|
.include <bsd.port.mk>
|