Hi,
I'm trying to make a port for TeamSpeak 3. I have some questions before
I can submit it. I appended it to this mail as shar:
1) There's already a teamspeak_server port for the TeamSpeak 2 server.
TS2 is not widely used anymore, only available for x86 and the port is
not maintained. Therefor I think that it would be better to take over
this port instead of creating a new teamspeak3-server port (although TS2
and TS3 are separate products in some kind). It that OK?
2) Are there naming conventions? The old port is named teamspeak_server
while there are other ports like mysql-server (- instead of _).
3) There are conditional DISTFILES in the port and I don't know if this
is OK.
4) Shall the log and database directories be created by post-install or
by the rc.d file? Is it ok to put @dirrmtry /var/db/teamspeak into the
pkg-plist?
Best regards,
Richard
diff -u UIDs.orig UIDs
--- UIDs.orig 2011-02-01 20:36:48.0 +0100
+++ UIDs2011-02-01 20:37:03.0 +0100
@@ -192,3 +192,4 @@
sancp:*:932:932::0:0:SANCP Daemon:/var/log/sancp:/sbin/nologin
dlna:*:933:933::0:0:DLNA Daemon:/nonexistent:/sbin/nologin
torrus:*:934:934::0:0:torrus daemon:/nonexistent:/sbin/nologin
+teamspeak:*:935:935::0:0:TeamSpeak user:/nonexistent:/sbin/nologin
diff -u GIDs.orig GIDs
--- GIDs.orig 2011-02-01 20:36:49.0 +0100
+++ GIDs2011-02-01 20:37:04.0 +0100
@@ -184,3 +184,4 @@
sancp:*:932:
dlna:*:933:
torrus:*:934:www
+teamspeak:*:935:
diff -ruN /nonexistant/Makefile teamspeak-server/Makefile
--- /nonexistant/Makefile 1970-01-01 01:00:00.0 +0100
+++ teamspeak-server/Makefile 2011-02-01 20:36:19.0 +0100
@@ -0,0 +1,67 @@
+# New ports collection makefile for: teamspeak_server
+# Date created:30 January 2011
+# Whom:hir...@bitfire.at
+#
+# $FreeBSD$
+
+PORTNAME= teamspeak_server
+PORTVERSION= 3.0.0.b30
+CATEGORIES=audio net
+MASTER_SITES= http://teamspeak.gameserver.gamed.de/ts3/releases/beta-30/
http://ftp.4players.de/pub/hosted/ts3/releases/beta-30/
+.include
+.if ${ARCH} == "i386"
+DISTNAME= teamspeak3-server_freebsd-x86-3.0.0-beta30
+.endif
+.if ${ARCH} == "amd64"
+DISTNAME= teamspeak3-server_freebsd-amd64-3.0.0-beta30
+.endif
+
+MAINTAINER=hir...@bitfire.at
+COMMENT= Server side of the TeamSpeak group voice chat system
+
+RESTRICTED=No Redistribution
+ONLY_FOR_ARCHS=amd64 i386
+LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
+
+USE_RC_SUBR= teamspeak
+
+NO_BUILD= yes
+
+USERS= teamspeak
+GROUPS=teamspeak
+
+LICENSE= teamspeak
+LICENSE_NAME= TeamSpeak 3.x End User License Agreement
+LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
+LICENSE_FILE= ${FILESDIR}/LICENSE
+
+.if ${ARCH} == "i386"
+TEAMSPEAK_ARCH=x86
+.endif
+.if ${ARCH} == "amd64"
+TEAMSPEAK_ARCH=amd64
+.endif
+WRKSRC=${WRKDIR}/teamspeak3-server_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} ${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} "doc sql serverquerydocs"
${SHAREDIR})
+
+post-install:
+ ${MKDIR} ${DBDIR} && ${CHOWN} -R ${USERS}:${GROUPS} ${DBDIR}
+ ${MKDIR} ${ETCDIR}
+ ${MKDIR} ${LOGDIR} && ${CHOWN} -R ${USERS}:${BINGRP} ${LOGDIR}
+ ${CAT} ${MASTERDIR}/pkg-message
+
+.include
diff -ruN /nonexistant/files/LICENSE teamspeak-server/files/LICENSE
--- /nonexistant/files/LICENSE 1970-01-01 01:00:00.0 +0100
+++ teamspeak-server/files/LICENSE 2011-02-01 20:35:18.0 +0100
@@ -0,0 +1,153 @@
+TeamSpeak 3.x - End User License Agreement
+Revised: February 2nd, 2010
+
+THIS IS A LEGAL AGREEMENT between "you", the individual, company, or
organization utilizing TeamSpeak brand software, TeamSpeak Systems GmbH, a
Kruen, Germany based company, and Triton CI & Associates, Inc., a California,
USA based Corporation.
+
+USE OF TEAMSPEAK SOFTWARE INDICATES YOUR ACCEPTANCE OF THESE TERMS.
+
+As used in this Agreement, the term "TeamSpeak software" means TeamSpeak
version 3.x voice communication software, both client and server, as made
available from www.TeamSpeak.com together with any and all enhancements,
upgrades, or updates that may be provided to you by TeamSpeak Systems GmbH.
+
+1. APPLICABLE LAW
+
+All terms in this Agreement relating to ownership, distribution, prohibited
conduct, or upgrades to TeamSpeak software, specifically Sections 2, 6, 11, and
12, will be handled by TeamSpeak Systems GmbH in accordance with the