ports/93931: Update port: audio/teamspeak_client (misc improvements)

Jean-Yves Lefort jylefort at FreeBSD.org
Tue Feb 28 08:20:07 UTC 2006


>Number:         93931
>Category:       ports
>Synopsis:       Update port: audio/teamspeak_client (misc improvements)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 28 08:20:06 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jean-Yves Lefort
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD jsite.lefort.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sat Feb 11 20:20:04 CET 2006 jylefort at jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386
>Description:
- Add a menu item
- Add amd64 to ONLY_FOR_ARCHS (I can not test this, but it should work)
- Use exec in the wrapper script: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads-sh-exec.html
- Install with ${INSTALL_PROGRAM} and ${INSTALL_DATA}, to ensure
  proper permissions/stripping/ownerships
- This program uses X: move to ${X11BASE}
- Install documentation in ${DOCSDIR}
- Cleanups (SUB_FILES, PORTDOCS)
>How-To-Repeat:
>Fix:
diff -ruN /usr/ports/audio/teamspeak_client/Makefile teamspeak_client/Makefile
--- /usr/ports/audio/teamspeak_client/Makefile	Sat Jun 18 00:59:03 2005
+++ teamspeak_client/Makefile	Tue Feb 28 08:54:07 2006
@@ -7,6 +7,7 @@
 
 PORTNAME=	teamspeak_client
 PORTVERSION=	2.0.32
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/:main \
 		http://www.gsoft.com.au/~doconnor/:misc
@@ -19,17 +20,57 @@
 
 RUN_DEPENDS=	${LINUXBASE}/usr/lib/libjpeg.so.62:${PORTSDIR}/graphics/linux-jpeg
 
-ONLY_FOR_ARCHS=	i386
+ONLY_FOR_ARCHS=	i386 amd64
 USE_BZIP2=	yes
 USE_LINUX=	yes
+USE_X_PREFIX=	yes
 NO_BUILD=	yes
 
+TSIMG=		${WRKSRC}/setup.data/image
+TSHOME=		${PREFIX}/lib/teamspeak_client
+
+SUB_FILES=	TeamSpeak
+SUB_LIST=	TSHOME="${TSHOME}"
+
+PORTDOCS=	*
+
+DESKTOP_ENTRIES="TeamSpeak" \
+		"Voice-chat with people" \
+		"${TSHOME}/icon.xpm" \
+		"TeamSpeak" \
+		"Application;Audio;Network;" \
+		false
+
+post-extract:
+	@${MKDIR} ${WRKDIR}/programs
+	@${GZIP_CMD} -dc ${DISTDIR}/setduplexfake.so.gz >${WRKDIR}/programs/setduplexfake.so
+
+post-patch:
+	@${RM} -f ${TSIMG}/TeamSpeak
+	@${MKDIR} ${WRKDIR}/doc
+.for f in Readme.txt clicense.txt manual
+	@${MV} -f ${TSIMG}/${f} ${WRKDIR}/doc
+.endfor
+.for f in TeamSpeak.bin lib*
+	@${MV} ${TSIMG}/${f} ${WRKDIR}/programs
+.endfor
+	@${MKDIR} ${WRKDIR}/programs/client_sdk
+.for f in lib* tsControl
+	@${MV} ${TSIMG}/client_sdk/${f} ${WRKDIR}/programs/client_sdk
+.endfor
+
 do-install:
-	${MKDIR} ${PREFIX}/lib/teamspeak_client
-	${TAR} -C ${WRKSRC}/setup.data/image -cf ${WRKSRC}/files.tar ./
-	${TAR} -C ${PREFIX}/lib/teamspeak_client -xf ${WRKSRC}/files.tar
-	${GZIP_CMD} -dc ${DISTDIR}/setduplexfake.so.gz >${PREFIX}/lib/teamspeak_client/setduplexfake.so
-	${SED} -e 's#%%TSHOME%%#${PREFIX}/lib/teamspeak_client#' <${FILESDIR}/TeamSpeak >${WRKSRC}/TeamSpeak
-	${INSTALL_SCRIPT} ${WRKSRC}/TeamSpeak ${PREFIX}/bin/
+	cd ${TSIMG} && \
+	${FIND} * -type d -exec ${MKDIR} "${TSHOME}/{}" \; && \
+	${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${TSHOME}/{}" \;
+	cd ${WRKDIR}/programs && \
+	${FIND} * -type d -exec ${MKDIR} "${TSHOME}/{}" \; && \
+	${FIND} * -type f -exec ${INSTALL_PROGRAM} "{}" "${TSHOME}/{}" \;
+	${INSTALL_SCRIPT} ${WRKDIR}/TeamSpeak ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+	cd ${WRKDIR}/doc && \
+	${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
+	${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
+.endif
 
 .include <bsd.port.mk>
diff -ruN /usr/ports/audio/teamspeak_client/files/TeamSpeak teamspeak_client/files/TeamSpeak
--- /usr/ports/audio/teamspeak_client/files/TeamSpeak	Fri Apr  4 14:18:23 2003
+++ teamspeak_client/files/TeamSpeak	Thu Jan  1 01:00:00 1970
@@ -1,22 +0,0 @@
-#!/bin/sh
-#
-# This starup script will set the correct library path
-# and then startup the teamspeak binary.
-#
-
-TSHOME=%%TSHOME%%
-if [ -z "$LD_LIBRARY_PATH" ]; then
-  export LD_LIBRARY_PATH=$TSHOME
-else
-  export LD_LIBRARY_PATH=$TSHOME:$LD_LIBRARY_PATH
-fi
-
-if [ -r $TSHOME/setduplexfake.so ]; then
-  if [ -z "$LD_PRELOAD" ]; then
-    export LD_PRELOAD=$TSHOME/setduplexfake.so
-  else
-    export LD_PRELOAD=$TSHOME/setduplexfake.so:$LD_PRELOAD
-  fi
-fi
-
-$TSHOME/TeamSpeak.bin "$@"
diff -ruN /usr/ports/audio/teamspeak_client/files/TeamSpeak.in teamspeak_client/files/TeamSpeak.in
--- /usr/ports/audio/teamspeak_client/files/TeamSpeak.in	Thu Jan  1 01:00:00 1970
+++ teamspeak_client/files/TeamSpeak.in	Tue Feb 28 08:17:40 2006
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# This startup script will set the correct library path
+# and then startup the teamspeak binary.
+#
+
+TSHOME=%%TSHOME%%
+if [ -z "$LD_LIBRARY_PATH" ]; then
+  export LD_LIBRARY_PATH=$TSHOME
+else
+  export LD_LIBRARY_PATH=$TSHOME:$LD_LIBRARY_PATH
+fi
+
+if [ -r $TSHOME/setduplexfake.so ]; then
+  if [ -z "$LD_PRELOAD" ]; then
+    export LD_PRELOAD=$TSHOME/setduplexfake.so
+  else
+    export LD_PRELOAD=$TSHOME/setduplexfake.so:$LD_PRELOAD
+  fi
+fi
+
+exec $TSHOME/TeamSpeak.bin "$@"
diff -ruN /usr/ports/audio/teamspeak_client/pkg-plist teamspeak_client/pkg-plist
--- /usr/ports/audio/teamspeak_client/pkg-plist	Fri Sep 26 09:09:08 2003
+++ teamspeak_client/pkg-plist	Tue Feb 28 08:44:14 2006
@@ -1,8 +1,5 @@
 bin/TeamSpeak
-lib/teamspeak_client/Readme.txt
-lib/teamspeak_client/TeamSpeak
 lib/teamspeak_client/TeamSpeak.bin
-lib/teamspeak_client/clicense.txt
 lib/teamspeak_client/client_sdk/SDK_readme.txt
 lib/teamspeak_client/client_sdk/TsRemoteImport.pas
 lib/teamspeak_client/client_sdk/tsControl
@@ -12,103 +9,6 @@
 lib/teamspeak_client/libHVDI.so.0.8.0
 lib/teamspeak_client/libborqt-6.9-qt2.3.so
 lib/teamspeak_client/libspeex.so.1.0.0
-lib/teamspeak_client/manual/registerwithserver.gif
-lib/teamspeak_client/manual/registerwithserver.htm
-lib/teamspeak_client/manual/soundinputoutputsettings.gif
-lib/teamspeak_client/manual/soundinputoutputsettings.htm
-lib/teamspeak_client/manual/autooperator.htm
-lib/teamspeak_client/manual/adminregisterplayerwithserver.htm
-lib/teamspeak_client/manual/definekeys.gif
-lib/teamspeak_client/manual/getconnectioninfo.htm
-lib/teamspeak_client/manual/options.htm
-lib/teamspeak_client/manual/ts03-toc.htm
-lib/teamspeak_client/manual/closed.gif
-lib/teamspeak_client/manual/channeladmin.htm
-lib/teamspeak_client/manual/FAQ.htm
-lib/teamspeak_client/manual/quickconnect.gif
-lib/teamspeak_client/manual/quickconnect.htm
-lib/teamspeak_client/manual/optionssoundnotifications.gif
-lib/teamspeak_client/manual/allowregistration.htm
-lib/teamspeak_client/manual/default.htm
-lib/teamspeak_client/manual/keybindings.gif
-lib/teamspeak_client/manual/allowregisterwithserver.gif
-lib/teamspeak_client/manual/howtostartteamspeak.htm
-lib/teamspeak_client/manual/closeteamspeak.htm
-lib/teamspeak_client/manual/switchtochannel.htm
-lib/teamspeak_client/manual/optionssounddevices.gif
-lib/teamspeak_client/manual/playerflags.gif
-lib/teamspeak_client/manual/away.gif
-lib/teamspeak_client/manual/away.htm
-lib/teamspeak_client/manual/topic.gif
-lib/teamspeak_client/manual/teamspeak.gif
-lib/teamspeak_client/manual/serverconnectioninfo.gif
-lib/teamspeak_client/manual/serverconnectioninfo.htm
-lib/teamspeak_client/manual/optionsother.gif
-lib/teamspeak_client/manual/createsubchannel.gif
-lib/teamspeak_client/manual/createsubchannel.htm
-lib/teamspeak_client/manual/menuself.gif
-lib/teamspeak_client/manual/menuself.htm
-lib/teamspeak_client/manual/voice.htm
-lib/teamspeak_client/manual/keysettings.htm
-lib/teamspeak_client/manual/blockwhispers.htm
-lib/teamspeak_client/manual/whatists.htm
-lib/teamspeak_client/manual/connectioninfo.gif
-lib/teamspeak_client/manual/inputmuted.gif
-lib/teamspeak_client/manual/inputmuted.htm
-lib/teamspeak_client/manual/editchannel.htm
-lib/teamspeak_client/manual/ts03-index.htm
-lib/teamspeak_client/manual/removeregistration.htm
-lib/teamspeak_client/manual/disconnect.htm
-lib/teamspeak_client/manual/button.gif
-lib/teamspeak_client/manual/toc.css
-lib/teamspeak_client/manual/serveradmin.htm
-lib/teamspeak_client/manual/outpumuted.gif
-lib/teamspeak_client/manual/lastnotes.htm
-lib/teamspeak_client/manual/C1H_HTML.css
-lib/teamspeak_client/manual/sendtextmessagetoall.htm
-lib/teamspeak_client/manual/open.gif
-lib/teamspeak_client/manual/adminregisterwithserver.gif
-lib/teamspeak_client/manual/texttochannel.gif
-lib/teamspeak_client/manual/featurelist.htm
-lib/teamspeak_client/manual/usedcodecsandsomewordsaboutquality.htm
-lib/teamspeak_client/manual/menusettings.gif
-lib/teamspeak_client/manual/menusettings.htm
-lib/teamspeak_client/manual/kickplayerwithreason.htm
-lib/teamspeak_client/manual/kickplayer.htm
-lib/teamspeak_client/manual/menuconnection.gif
-lib/teamspeak_client/manual/menuconnection.htm
-lib/teamspeak_client/manual/menuhelp.htm
-lib/teamspeak_client/manual/channelcommander.htm
-lib/teamspeak_client/manual/linkbar.gif
-lib/teamspeak_client/manual/DocToHelp.js
-lib/teamspeak_client/manual/clientmanual.htm
-lib/teamspeak_client/manual/back.gif
-lib/teamspeak_client/manual/kickplayerfromchannel.htm
-lib/teamspeak_client/manual/general.htm
-lib/teamspeak_client/manual/createchannel.gif
-lib/teamspeak_client/manual/createchannel.htm
-lib/teamspeak_client/manual/whatdoineedforts.htm
-lib/teamspeak_client/manual/glossaryofterms.htm
-lib/teamspeak_client/manual/sendtextmessagetochannel.htm
-lib/teamspeak_client/manual/outputmuted.gif
-lib/teamspeak_client/manual/outputmuted.htm
-lib/teamspeak_client/manual/menuplayers.gif
-lib/teamspeak_client/manual/menuplayers.htm
-lib/teamspeak_client/manual/connect.gif
-lib/teamspeak_client/manual/connect.htm
-lib/teamspeak_client/manual/requestvoice.gif
-lib/teamspeak_client/manual/requestvoice.htm
-lib/teamspeak_client/manual/generalinformationaboutportsandfirewallsforservers.htm
-lib/teamspeak_client/manual/theteamspeakclientgui.htm
-lib/teamspeak_client/manual/howitworks.htm
-lib/teamspeak_client/manual/autovoice.htm
-lib/teamspeak_client/manual/ts03-blank.htm
-lib/teamspeak_client/manual/textingall.gif
-lib/teamspeak_client/manual/deletechannel.htm
-lib/teamspeak_client/manual/menuchannels.gif
-lib/teamspeak_client/manual/menuchannels.htm
-lib/teamspeak_client/manual/operator.htm
-lib/teamspeak_client/manual/channel.gif
 lib/teamspeak_client/sounds/17.welcome.wav
 lib/teamspeak_client/sounds/36.v_stat_revoked.wav
 lib/teamspeak_client/sounds/09.newspeaker.wav
@@ -161,6 +61,5 @@
 lib/teamspeak_client/sounds/35.v_stat_granted.wav
 lib/teamspeak_client/setduplexfake.so
 @dirrm lib/teamspeak_client/client_sdk
- at dirrm lib/teamspeak_client/manual
 @dirrm lib/teamspeak_client/sounds
 @dirrm lib/teamspeak_client
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list