/[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.2 by unnilennium, Fri Mar 8 19:14:54 2013 UTC Revision 1.3 by unnilennium, Fri Mar 8 22:00:38 2013 UTC
# Line 1  Line 1 
1  # $Id: smeserver-teamspeak-server.spec,v 1.1 2013/03/03 23:30:41 unnilennium Exp $  # $Id: smeserver-teamspeak-server.spec,v 1.2 2013/03/08 19:14:54 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 3.0  %define version 3.1
7  %define release 0  %define release 0
8  %define rpmver  4.0.4  %define rpmver  4.0.4
9    
# 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.1-0
35    - added back the web interface
36    - added back templates
37    - added default db values in tar
38    
39  * Fri Mar 8 2013 JP Pialasse <tests@pialasse.com> 3.0-0  * Fri Mar 8 2013 JP Pialasse <tests@pialasse.com> 3.0-0
40  - change tarball to remove teamspeak binaries  - change tarball to remove teamspeak binaries
41  - some .spec cleanup, some more scripts have to be moved out there  - some .spec cleanup, some more scripts have to be moved out there
# Line 63  http://your_e-smith-server_name:14534 Line 68  http://your_e-smith-server_name:14534
68    
69    
70  %build  %build
 # 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  
71    
72    
73  %install  %install
# Line 96  rm -rf $RPM_BUILD_ROOT Line 85  rm -rf $RPM_BUILD_ROOT
85    
86    
87  %post  %post
 # Adding teamspeak to SME's db  
 /etc/e-smith/events/actions/initialize-default-databases  
 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..."  
 #tar -xjf /usr/share/doc/teamspeak-server-2.0.24.1/Sources/ts2_server_rc2_202319.tar.bz2 -C /opt  
 #mv -f /opt/tss2_rc2 /opt/teamspeak  
 #cp -f /usr/share/doc/teamspeak-server-2.0.24.1/Sources/server_linux /opt/teamspeak/  
 #rm -f /opt/teamspeak/teamspeak2-server_startscript  
   
 #echo "Creating user teamspeak..."  
 #useradd -M -c 'TeamSpeak Server' -d /opt/teamspeak teamspeak -s /bin/bash -p '$TSPASS'  
 #chown -R root:teamspeak /opt/teamspeak  
 #chmod 770 /opt/teamspeak  
 #chmod 750 /opt/teamspeak/server_linux  
 #chmod 750 /opt/teamspeak/sqlite_sql  
   
 #echo "Creating service..."  
 #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/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  
   
 #echo " "  
 #echo "-------------------------------------------------------------------------------"  
 #echo "TeamSpeak Server installation finished."  
 #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 "-------------------------------------------------------------------------------"  
88    
89    
90  %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