--- rpms/smeserver-teamspeak-server/contribs7/smeserver-teamspeak-server.spec 2008/02/26 01:05:35 1.1 +++ rpms/smeserver-teamspeak-server/contribs7/smeserver-teamspeak-server.spec 2008/11/25 16:20:31 1.5 @@ -1,6 +1,10 @@ +# $Id: smeserver-teamspeak-server.spec,v 1.3 2008/05/14 13:49:54 slords Exp $ +# Authority: cool34000 +# Name: Sylvain Gomez + %define name smeserver-teamspeak-server %define version 2.0.24.1 -%define release 1 +%define release 2 %define rpmver 4.0.4 @@ -8,7 +12,7 @@ Summary: Teamspeak is a VOIP Name: %{name} Version: %{version} Release: %{release}%{?dist} -License: Freeware +License: Freeware Group: VOIP Source: %{name}-%{version}.tar.gz URL: http://www.goteamspeak.com/ @@ -27,6 +31,10 @@ http://your_e-smith-server_name:14534 %changelog +* Mon May 12 2008 Sylvain Gomez +[2.0.24.1-2] Website added + - New php website added (tsweb) + * Sun Nov 11 2007 Sylvain Gomez [2.0.24.1-1] New version - Based on latest version + updated server_linux @@ -54,13 +62,19 @@ http://your_e-smith-server_name:14534 # Default DB parameters DEFAULTS1=root/etc/e-smith/db/configuration/defaults/teamspeak DEFAULTS2=root/etc/e-smith/db/accounts/defaults/teamspeak +DEFAULTS3=root/etc/e-smith/db/configuration/defaults/tsweb +DEFAULTS4=root/etc/e-smith/db/accounts/defaults/tsweb mkdir -p $DEFAULTS1 mkdir -p $DEFAULTS2 +mkdir -p $DEFAULTS3 +mkdir -p $DEFAULTS4 echo "public" > $DEFAULTS1/access echo "enabled" > $DEFAULTS1/status echo "service" > $DEFAULTS1/type echo "8767" > $DEFAULTS1/UDPPort echo "reserved" > $DEFAULTS2/type +echo "url" > $DEFAULTS3/type +echo "reserved" > $DEFAULTS4/type %install @@ -84,6 +98,7 @@ echo " " # Variables SRVNAME=$(/sbin/e-smith/db configuration get SystemName) +DOMAINNAME=$(/sbin/e-smith/db configuration get DomainName) TSPASS=$(/sbin/e-smith/db configuration getprop teamspeak UserPassword) echo "Decompressing files..." @@ -104,6 +119,11 @@ ln -f -s /etc/rc.d/init.d/e-smith-servic ln -f -s /etc/rc.d/init.d/e-smith-service /etc/rc6.d/K98teamspeak /sbin/e-smith/signal-event remoteaccess-update +echo "Restarting Apache..." +/sbin/e-smith/expand-template /opt/tsweb/config.php +/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf +/etc/rc7.d/S86httpd-e-smith sigusr1 + echo "Starting the daemon..." /etc/rc7.d/S98teamspeak start @@ -113,9 +133,12 @@ echo "TeamSpeak Server installation fini echo "You can access to the configuration page at: http://$SRVNAME:14534" /etc/rc7.d/S98teamspeak passwords echo " " +echo "The web page for teamspeak webusers: http://$DOMAINNAME/tsweb" +echo " " /sbin/e-smith/config show teamspeak echo "-------------------------------------------------------------------------------" + %preun if [ $1 = 0 ] ; then DIR=/opt/teamspeak @@ -148,13 +171,19 @@ if [ $1 = 0 ] ; then rm -f /etc/rc.d/rc7.d/S98teamspeak rm -f /etc/rc.d/rc6.d/K98teamspeak /sbin/e-smith/config delete teamspeak + /sbin/e-smith/config delete tsweb /sbin/e-smith/signal-event remoteaccess-update + echo "Restarting Apache..." + /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf + /etc/rc7.d/S86httpd-e-smith sigusr1 + echo "Deleting user teamspeak..." userdel teamspeak - echo "Deleting install directory..." + echo "Deleting install directories..." rm -rf /opt/teamspeak + rm -rf /opt/tsweb fi