/[smecontribs]/rpms/smeserver-teamspeak-server/contribs7/smeserver-teamspeak-server.spec
ViewVC logotype

Diff of /rpms/smeserver-teamspeak-server/contribs7/smeserver-teamspeak-server.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by slords, Wed Apr 2 15:03:59 2008 UTC Revision 1.3 by slords, Wed May 14 13:49:54 2008 UTC
# Line 1  Line 1 
1  # $Id$  # $Id: smeserver-teamspeak-server.spec,v 1.2 2008/04/02 15:03:59 slords Exp $
2  # Authority: cool34000  # Authority: cool34000
3  # Name: Sylvain Gomez  # Name: Sylvain Gomez
4    
5  %define name smeserver-teamspeak-server  %define name smeserver-teamspeak-server
6  %define version 2.0.24.1  %define version 2.0.24.1
7  %define release 1  %define release 2
8  %define rpmver  4.0.4  %define rpmver  4.0.4
9    
10    
# Line 12  Summary:            Teamspeak is a VOIP Line 12  Summary:            Teamspeak is a VOIP
12  Name:               %{name}  Name:               %{name}
13  Version:            %{version}  Version:            %{version}
14  Release:            %{release}%{?dist}  Release:            %{release}%{?dist}
15  License:          Freeware  License:            Freeware
16  Group:              VOIP  Group:              VOIP
17  Source:             %{name}-%{version}.tar.gz  Source:             %{name}-%{version}.tar.gz
18  URL:                http://www.goteamspeak.com/  URL:                http://www.goteamspeak.com/
# Line 31  http://your_e-smith-server_name:14534 Line 31  http://your_e-smith-server_name:14534
31    
32    
33  %changelog  %changelog
34    * Mon May 12 2008 Sylvain Gomez <sylvaingomez@free.fr>
35    [2.0.24.1-2] Website added
36                  - New php website added (tsweb)
37    
38  * Sun Nov 11 2007 Sylvain Gomez <sylvaingomez@free.fr>  * Sun Nov 11 2007 Sylvain Gomez <sylvaingomez@free.fr>
39  [2.0.24.1-1] New version  [2.0.24.1-1] New version
40                - Based on latest version + updated server_linux                - Based on latest version + updated server_linux
# Line 58  http://your_e-smith-server_name:14534 Line 62  http://your_e-smith-server_name:14534
62  # Default DB parameters  # Default DB parameters
63  DEFAULTS1=root/etc/e-smith/db/configuration/defaults/teamspeak  DEFAULTS1=root/etc/e-smith/db/configuration/defaults/teamspeak
64  DEFAULTS2=root/etc/e-smith/db/accounts/defaults/teamspeak  DEFAULTS2=root/etc/e-smith/db/accounts/defaults/teamspeak
65    DEFAULTS3=root/etc/e-smith/db/configuration/defaults/tsweb
66    DEFAULTS4=root/etc/e-smith/db/accounts/defaults/tsweb
67  mkdir -p $DEFAULTS1  mkdir -p $DEFAULTS1
68  mkdir -p $DEFAULTS2  mkdir -p $DEFAULTS2
69    mkdir -p $DEFAULTS3
70    mkdir -p $DEFAULTS4
71  echo "public"   > $DEFAULTS1/access  echo "public"   > $DEFAULTS1/access
72  echo "enabled"  > $DEFAULTS1/status  echo "enabled"  > $DEFAULTS1/status
73  echo "service"  > $DEFAULTS1/type  echo "service"  > $DEFAULTS1/type
74  echo "8767"     > $DEFAULTS1/UDPPort  echo "8767"     > $DEFAULTS1/UDPPort
75  echo "reserved" > $DEFAULTS2/type  echo "reserved" > $DEFAULTS2/type
76    echo "url"      > $DEFAULTS3/type
77    echo "reserved" > $DEFAULTS4/type
78    
79    
80  %install  %install
# Line 88  echo " " Line 98  echo " "
98    
99  # Variables  # Variables
100  SRVNAME=$(/sbin/e-smith/db configuration get SystemName)  SRVNAME=$(/sbin/e-smith/db configuration get SystemName)
101    DOMAINNAME=$(/sbin/e-smith/db configuration get DomainName)
102  TSPASS=$(/sbin/e-smith/db configuration getprop teamspeak UserPassword)  TSPASS=$(/sbin/e-smith/db configuration getprop teamspeak UserPassword)
103    
104  echo "Decompressing files..."  echo "Decompressing files..."
# Line 108  ln -f -s /etc/rc.d/init.d/e-smith-servic Line 119  ln -f -s /etc/rc.d/init.d/e-smith-servic
119  ln -f -s /etc/rc.d/init.d/e-smith-service /etc/rc6.d/K98teamspeak  ln -f -s /etc/rc.d/init.d/e-smith-service /etc/rc6.d/K98teamspeak
120  /sbin/e-smith/signal-event remoteaccess-update  /sbin/e-smith/signal-event remoteaccess-update
121    
122    echo "Restarting Apache..."
123    /sbin/e-smith/expand-template /opt/tsweb/config.php
124    /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
125    /etc/rc7.d/S86httpd-e-smith sigusr1
126    
127  echo "Starting the daemon..."  echo "Starting the daemon..."
128  /etc/rc7.d/S98teamspeak start  /etc/rc7.d/S98teamspeak start
129    
# Line 117  echo "TeamSpeak Server installation fini Line 133  echo "TeamSpeak Server installation fini
133  echo "You can access to the configuration page at: http://$SRVNAME:14534"  echo "You can access to the configuration page at: http://$SRVNAME:14534"
134  /etc/rc7.d/S98teamspeak passwords  /etc/rc7.d/S98teamspeak passwords
135  echo " "  echo " "
136    echo "The web page for teamspeak webusers: http://$DOMAINNAME/tsweb"
137    echo " "
138  /sbin/e-smith/config show teamspeak  /sbin/e-smith/config show teamspeak
139  echo "-------------------------------------------------------------------------------"  echo "-------------------------------------------------------------------------------"
140    
141    
142  %preun  %preun
143  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
144    DIR=/opt/teamspeak    DIR=/opt/teamspeak
# Line 152  if [ $1 = 0 ] ; then Line 171  if [ $1 = 0 ] ; then
171    rm -f /etc/rc.d/rc7.d/S98teamspeak    rm -f /etc/rc.d/rc7.d/S98teamspeak
172    rm -f /etc/rc.d/rc6.d/K98teamspeak    rm -f /etc/rc.d/rc6.d/K98teamspeak
173    /sbin/e-smith/config delete teamspeak    /sbin/e-smith/config delete teamspeak
174      /sbin/e-smith/config delete tsweb
175    /sbin/e-smith/signal-event remoteaccess-update    /sbin/e-smith/signal-event remoteaccess-update
176    
177      echo "Restarting Apache..."
178      /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
179      /etc/rc7.d/S86httpd-e-smith sigusr1
180    
181    echo "Deleting user teamspeak..."    echo "Deleting user teamspeak..."
182    userdel teamspeak    userdel teamspeak
183    
184    echo "Deleting install directory..."    echo "Deleting install directories..."
185    rm -rf /opt/teamspeak    rm -rf /opt/teamspeak
186      rm -rf /opt/tsweb
187  fi  fi
188    
189    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed