blob: c8f2b87f04445ecbf95fc15c4687be96abad9404 (
plain)
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
|
# $NetBSD: Makefile,v 1.12 2013/07/12 10:45:01 jperkin Exp $
PKGNAME= teamspeak-server-2.0.24.01
DISTNAME= ts2_server_rc2_202319
PKGREVISION= 1
CATEGORIES= net audio
MASTER_SITES= ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202401/ \
ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202319/
EXTRACT_SUFX= .tar.bz2
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} server_linux
MAINTAINER= abs@NetBSD.org
HOMEPAGE= http://www.goteamspeak.com/
COMMENT= Teamspeak group VoIP server
LICENSE= teamspeak-license-200700213
RESTRICTED= Redistribution to third parties is expressly prohibited
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
EMUL_PLATFORMS= linux-i386
EMUL_MODULES.linux= base
RCD_SCRIPTS= teamspeak
PLIST_SRC= ${WRKDIR}/PLIST
WRKSRC= ${WRKDIR}/tss2_rc2
EGDIR= ${PREFIX}/share/examples
LIB_DIR= ${PREFIX}/lib/teamspeak-server
DOC_DIR= ${PREFIX}/share/doc/teamspeak-server
SHARE_DIR= ${PREFIX}/share/teamspeak-server
HOMEBASE?= ${VARBASE}
# TSUSER username of the teamspeak server user
# TSGROUP group of the teamspeak server user
# TSHOME home directory for the teamspeak server data
#
TSUSER?= teamspeak
TSGROUP?= teamspeak
TSHOME?= ${HOMEBASE}/${TSUSER}
PKG_GROUPS_VARS+= TSGROUP
PKG_USERS_VARS+= TSUSER
BUILD_DEFS+= TSHOME
PKG_GROUPS= ${TSGROUP}
PKG_USERS= ${TSUSER}:${TSGROUP}
PKG_GECOS.${TSUSER}= Teamspeak server user
PKG_HOME.${TSUSER}= ${TSHOME}
PKG_SHELL.${TSUSER}= ${SH}
FILES_SUBST+= TSUSER=${TSUSER}
INSTALLATION_DIRS= ${LIB_DIR} share/examples/rc.d ${SHARE_DIR}/httpdocs \
${SHARE_DIR}/tcpquerydocs ${SHARE_DIR}/mysql_sql \
${SHARE_DIR}/sqlite_sql ${DOC_DIR}/Manual
USE_TOOLS+= pax
post-extract:
${CP} ${DISTDIR}/server_linux ${WRKSRC}
do-build:
${MV} ${WRKSRC}/Manual/_TeamSpeak\ RC2\ Server\ manual-1.png \
${WRKSRC}/Manual/_TeamSpeak_RC2_Server_manual-1.png
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/server_linux ${DESTDIR}${LIB_DIR}/teamspeak-server
${INSTALL_LIB} ${WRKSRC}/*.so* ${DESTDIR}${LIB_DIR}
${INSTALL_SCRIPT} -m 644 ${FILESDIR}/teamspeak.sh ${DESTDIR}${PREFIX}/share/examples/rc.d/teamspeak
for d in httpdocs tcpquerydocs mysql_sql sqlite_sql ; do \
cd ${WRKSRC}/$$d && pax -rw . ${DESTDIR}${SHARE_DIR}/$$d;\
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${SHARE_DIR}/$$d;\
${FIND} ${DESTDIR}${SHARE_DIR}/$$d -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE};\
done
${INSTALL_DATA} -m 644 ${WRKSRC}/Manual/* ${DESTDIR}${DOC_DIR}/Manual
${INSTALL_DATA} -m 644 ${WRKSRC}/manual.html ${DESTDIR}${DOC_DIR}
${INSTALL_DATA} -m 644 ${WRKSRC}/README ${DESTDIR}${DOC_DIR}
${INSTALL_DATA} -m 644 ${WRKSRC}/INSTALL ${DESTDIR}${DOC_DIR}
${INSTALL_DATA} -m 644 ${WRKSRC}/INSTALL.mysql ${DESTDIR}${DOC_DIR}
${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
(cd ${DESTDIR}${PREFIX}; ${FIND} lib/teamspeak-server share/doc/teamspeak-server share/teamspeak-server -type f -print ) >> ${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"
|