freebsd-ports/audio/teamspeak3-server/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

99 lines
2.5 KiB
Makefile

PORTNAME= teamspeak3-server
PORTVERSION= 3.13.7
PORTEPOCH= 1
CATEGORIES= audio net
MASTER_SITES= https://files.teamspeak-services.com/releases/server/${PORTVERSION}/
DISTNAME= ${PORTNAME}_freebsd_${TEAMSPEAK_ARCH}-${PORTVERSION}
MAINTAINER= ultima@FreeBSD.org
COMMENT= Server side of the TeamSpeak group voice chat system
WWW= https://www.teamspeak.com
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
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss
USES= tar:bz2
USE_LDCONFIG= ${LIBDIR}
USE_RC_SUBR= teamspeak
NO_BUILD= yes
SUB_FILES= pkg-message
USERS= teamspeak
GROUPS= teamspeak
CONFLICTS= teamspeak_server
PLIST_SUB= DBDIR=${DBDIR} \
ETCDIR=${ETCDIR} \
LOGDIR=${LOGDIR} \
BINGRP=${BINGRP}
SUB_LIST= DBDIR=${DBDIR} \
ETCDIR=${ETCDIR} \
LOGDIR=${LOGDIR}
PORTDOCS= accounting.txt \
permissiondoc.txt \
privilegekey_guide.txt \
server_quickstart.md \
server_upgrade.txt \
update_mysql_to_mariadb.txt \
webquery.md
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>
.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}
# Add link to serverquerydocs, this needs to be in the
# same directory as chdir or help commands will fail.
${RLN} ${STAGEDIR}${SHAREDIR}/serverquerydocs ${STAGEDIR}${DBDIR}
.include <bsd.port.mk>