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

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

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

Revision 1.1 by unnilennium, Sun Mar 3 23:30:41 2013 UTC Revision 1.2 by unnilennium, Fri Mar 8 19:14:54 2013 UTC
# Line 1  Line 1 
1  # $Id: smeserver-teamspeak-server.spec,v 1.5 2008/11/25 16:20:31 slords Exp $  # $Id: smeserver-teamspeak-server.spec,v 1.1 2013/03/03 23:30:41 unnilennium 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 3.0
7  %define release 2  %define release 0
8  %define rpmver  4.0.4  %define rpmver  4.0.4
9    
10    
# Line 31  http://your_e-smith-server_name:14534 Line 31  http://your_e-smith-server_name:14534
31    
32    
33  %changelog  %changelog
34    * Fri Mar 8 2013 JP Pialasse <tests@pialasse.com> 3.0-0
35    - change tarball to remove teamspeak binaries
36    - some .spec cleanup, some more scripts have to be moved out there
37    
38  * Mon May 12 2008 Sylvain Gomez <sylvaingomez@free.fr>  * Mon May 12 2008 Sylvain Gomez <sylvaingomez@free.fr>
39  [2.0.24.1-2] Website added  [2.0.24.1-2] Website added
40                - New php website added (tsweb)                - New php website added (tsweb)
# Line 101  SRVNAME=$(/sbin/e-smith/db configuration Line 105  SRVNAME=$(/sbin/e-smith/db configuration
105  DOMAINNAME=$(/sbin/e-smith/db configuration get DomainName)  DOMAINNAME=$(/sbin/e-smith/db configuration get DomainName)
106  TSPASS=$(/sbin/e-smith/db configuration getprop teamspeak UserPassword)  TSPASS=$(/sbin/e-smith/db configuration getprop teamspeak UserPassword)
107    
108  echo "Decompressing files..."  #echo "Decompressing files..."
109  tar -xjf /usr/share/doc/teamspeak-server-2.0.24.1/Sources/ts2_server_rc2_202319.tar.bz2 -C /opt  #tar -xjf /usr/share/doc/teamspeak-server-2.0.24.1/Sources/ts2_server_rc2_202319.tar.bz2 -C /opt
110  mv -f /opt/tss2_rc2 /opt/teamspeak  #mv -f /opt/tss2_rc2 /opt/teamspeak
111  cp -f /usr/share/doc/teamspeak-server-2.0.24.1/Sources/server_linux /opt/teamspeak/  #cp -f /usr/share/doc/teamspeak-server-2.0.24.1/Sources/server_linux /opt/teamspeak/
112  rm -f /opt/teamspeak/teamspeak2-server_startscript  #rm -f /opt/teamspeak/teamspeak2-server_startscript
113    
114  echo "Creating user teamspeak..."  #echo "Creating user teamspeak..."
115  useradd -M -c 'TeamSpeak Server' -d /opt/teamspeak teamspeak -s /bin/bash -p '$TSPASS'  #useradd -M -c 'TeamSpeak Server' -d /opt/teamspeak teamspeak -s /bin/bash -p '$TSPASS'
116  chown -R root:teamspeak /opt/teamspeak  #chown -R root:teamspeak /opt/teamspeak
117  chmod 770 /opt/teamspeak  #chmod 770 /opt/teamspeak
118  chmod 750 /opt/teamspeak/server_linux  #chmod 750 /opt/teamspeak/server_linux
119  chmod 750 /opt/teamspeak/sqlite_sql  #chmod 750 /opt/teamspeak/sqlite_sql
120    
121  echo "Creating service..."  #echo "Creating service..."
122  ln -f -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S98teamspeak  #ln -f -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S98teamspeak
123  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
124  /sbin/e-smith/signal-event remoteaccess-update  #/sbin/e-smith/signal-event remoteaccess-update
125    
126  echo "Restarting Apache..."  #echo "Restarting Apache..."
127  /sbin/e-smith/expand-template /opt/tsweb/config.php  #/sbin/e-smith/expand-template /opt/tsweb/config.php
128  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
129  /etc/rc7.d/S86httpd-e-smith sigusr1  #/etc/rc7.d/S86httpd-e-smith sigusr1
130    
131  echo "Starting the daemon..."  #echo "Starting the daemon..."
132  /etc/rc7.d/S98teamspeak start  #/etc/rc7.d/S98teamspeak start
133    
134  echo " "  #echo " "
135  echo "-------------------------------------------------------------------------------"  #echo "-------------------------------------------------------------------------------"
136  echo "TeamSpeak Server installation finished."  #echo "TeamSpeak Server installation finished."
137  echo "You can access to the configuration page at: http://$SRVNAME:14534"  #echo "You can access to the configuration page at: http://$SRVNAME:14534"
138  /etc/rc7.d/S98teamspeak passwords  #/etc/rc7.d/S98teamspeak passwords
139  echo " "  #echo " "
140  echo "The web page for teamspeak webusers: http://$DOMAINNAME/tsweb"  #echo "The web page for teamspeak webusers: http://$DOMAINNAME/tsweb"
141  echo " "  #echo " "
142  /sbin/e-smith/config show teamspeak  #/sbin/e-smith/config show teamspeak
143  echo "-------------------------------------------------------------------------------"  #echo "-------------------------------------------------------------------------------"
144    
145    
146  %preun  %preun


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