33f30156fb
binary-only packages that require binary "emulation" on the native operating system. Please see pkgsrc/mk/emulator/README for more details. * Teach the plist framework to automatically use any existing PLIST.${EMUL_PLATFORM} as part of the default PLIST_SRC definition. * Convert all of the binary-only packages in pkgsrc to use the emulator framework. Most of them have been tested to install and deinstall correctly. This involves the following cleanup actions: * Remove use of custom PLIST code and use PLIST.${EMUL_PLATFORM} more consistently. * Simplify packages by using default INSTALL and DEINSTALL scripts instead of custom INSTALL/DEINSTALL code. * Remove "SUSE_COMPAT32" and "PKG_OPTIONS.suse" from pkgsrc. Packages only need to state exactly which emulations they support, and the framework handles any i386-on-x86_64 or sparc-on-sparc64 uses. * Remove "USE_NATIVE_LINUX" from pkgsrc. The framework will automatically detect when the package is installing on Linux. Specific changes to packages include: * Bump the PKGREVISIONs for all of the suse100* and suse91* packages due to changes in the +INSTALL/+DEINSTALL scripts used in all of the packages. * Remove pkgsrc/emulators/suse_linux, which is unused by any packages. * cad/lc -- remove custom code to create the distinfo file for all supported platforms; just use "emul-fetch" and "emul-distinfo" instead. * lang/Cg-compiler -- install the shared libraries under ${EMULDIR} instead of ${PREFIX}/lib so that compiled programs will find the shared libraries. * mail/thunderbird-bin-nightly -- update to latest binary distributions for supported platforms. * multimedia/ns-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch. * security/uvscan -- set LD_LIBRARY_PATH explicitly so that it's not necessary to install library symlinks into ${EMULDIR}/usr/local/lib. * www/firefox-bin-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch.
84 lines
3 KiB
Makefile
84 lines
3 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2007/07/29 05:19:47 jlam Exp $
|
|
|
|
PKGNAME= teamspeak-server-2.0.23.15
|
|
DISTNAME= ts2_server_rc2_20201
|
|
CATEGORIES= net audio
|
|
MASTER_SITES= ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/
|
|
SITES.server_linux= ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202315/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} server_linux
|
|
DIST_SUBDIR= teamspeak
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= abs@NetBSD.org
|
|
HOMEPAGE= http://www.goteamspeak.com/
|
|
COMMENT= Teamspeak group VoIP server
|
|
|
|
RESTRICTED= Redistribution to third parties is expressly prohibited
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
LICENSE= teamspeak-license-200700213
|
|
|
|
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
|
|
|
|
do-build:
|
|
${MV} ${WRKSRC}/Manual/_TeamSpeak\ RC2\ Server\ manual-1.png \
|
|
${WRKSRC}/Manual/_TeamSpeak_RC2_Server_manual-1.png
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/server_linux ${LIB_DIR}/teamspeak-server
|
|
${INSTALL_LIB} ${WRKSRC}/*.so* ${LIB_DIR}
|
|
${INSTALL_SCRIPT} -m 644 ${FILESDIR}/teamspeak.sh ${PREFIX}/share/examples/rc.d/teamspeak
|
|
for d in httpdocs tcpquerydocs mysql_sql sqlite_sql ; do \
|
|
cd ${WRKSRC}/$$d && ${PAX} -rw . ${SHARE_DIR}/$$d;\
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${SHARE_DIR}/$$d;\
|
|
${FIND} ${SHARE_DIR}/$$d -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE};\
|
|
done
|
|
${INSTALL_DATA} -m 644 ${WRKSRC}/Manual/* ${DOC_DIR}/Manual
|
|
${INSTALL_DATA} -m 644 ${WRKSRC}/changelog.txt ${DOC_DIR}
|
|
${INSTALL_DATA} -m 644 ${WRKSRC}/manual.html ${DOC_DIR}
|
|
${INSTALL_DATA} -m 644 ${WRKSRC}/README ${DOC_DIR}
|
|
${INSTALL_DATA} -m 644 ${WRKSRC}/INSTALL ${DOC_DIR}
|
|
${INSTALL_DATA} -m 644 ${WRKSRC}/INSTALL.mysql ${DOC_DIR}
|
|
${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
|
|
(cd ${PREFIX}; ${FIND} lib/teamspeak-server share/doc/teamspeak-server share/teamspeak-server -type f -print ) >> ${PLIST_SRC}
|
|
(cd ${PREFIX}; ${FIND} lib/teamspeak-server share/doc/teamspeak-server share/teamspeak-server -type d -print ) | ${SED} 's/^/@dirrm /' | ${SORT} -r >> ${PLIST_SRC}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|