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

Annotation of /rpms/smeserver-teamspeak-server/contribs9/smeserver-teamspeak-server.spec

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


Revision 1.2 - (hide annotations) (download)
Fri Jan 19 04:28:08 2018 UTC (6 years, 9 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-teamspeak-server-3_1-1_el6_sme
Changes since 1.1: +6 -2 lines
* Thu Jan 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.1-1.sme
- fix [SME: 10494]
- update to download TS3 with event

1 jpp 1.2 # $Id: smeserver-teamspeak-server.spec,v 1.1 2018/01/19 03:16:22 jpp Exp $
2 jpp 1.1 # Authority: cool34000
3     # Name: Sylvain Gomez
4    
5     %define name smeserver-teamspeak-server
6     %define version 3.1
7 jpp 1.2 %define release 1
8 jpp 1.1 %define rpmver 4.0.4
9    
10    
11     Summary: Teamspeak is a VOIP server for on-line gaming
12     Name: %{name}
13     Version: %{version}
14     Release: %{release}%{?dist}
15     License: Freeware
16     Group: VOIP
17     Source: %{name}-%{version}.tar.gz
18     Patch0: smeserver-teamspeak-server-3.1-patch0.patch
19     URL: http://www.goteamspeak.com/
20     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
21     BuildArchitectures: noarch
22     BuildRequires: e-smith-devtools
23     Requires: e-smith-base, e-smith-release >= 7
24    
25    
26     %description
27     This RPM is an unofficial addon for the SME Server 7.x.
28     TeamSpeak is a software for quality voice communication via the Internet.
29     After installation open your webbrowser at
30     http://your_e-smith-server_name:14534
31    
32    
33    
34     %changelog
35 jpp 1.2 * Thu Jan 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.1-1.sme
36     - fix [SME: 10494]
37     - update to download TS3 with event
38    
39 jpp 1.1 * Fri Mar 8 2013 JP Pialasse <tests@pialasse.com> 3.1-0
40     - added back the web interface
41     - added back templates
42     - added default db values in tar
43     - improving installing script and events patch0
44    
45     * Fri Mar 8 2013 JP Pialasse <tests@pialasse.com> 3.0-0
46     - change tarball to remove teamspeak binaries
47     - some .spec cleanup, some more scripts have to be moved out there
48    
49     * Mon May 12 2008 Sylvain Gomez <sylvaingomez@free.fr>
50     [2.0.24.1-2] Website added
51     - New php website added (tsweb)
52    
53     * Sun Nov 11 2007 Sylvain Gomez <sylvaingomez@free.fr>
54     [2.0.24.1-1] New version
55     - Based on latest version + updated server_linux
56     - RPM structure fix
57     - Uninstall sections fixed
58    
59     * Sun Jun 17 2007 Sylvain Gomez <sylvaingomez@free.fr>
60     [2.0.20.1-2] Fixing bugs
61     - Added teamspeak UserPassword
62     - Removed useless lines
63     - Few fix to teamspeak service file
64     - Now deleting temporary files
65    
66     * Wed Jun 6 2007 Sylvain Gomez <sylvaingomez@free.fr>
67     [2.0.20.1-1] Original version
68    
69    
70     %prep
71    
72    
73     %setup
74     %patch0 -p1
75    
76     %build
77     perl createlinks
78    
79     %install
80     rm -rf $RPM_BUILD_ROOT
81     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
82     rm -f %{name}-%{version}-filelist
83     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
84    
85    
86     %clean
87     rm -rf $RPM_BUILD_ROOT
88    
89    
90     %pre
91     /sbin/e-smith/create-system-user teamspeak 1050 \
92     'teamspeak' /opt/teamspeak /bin/bash
93    
94     %post
95    
96    
97     %preun
98     if [ $1 = 0 ] ; then
99     DIR=/opt/teamspeak
100     # Stopping TS service if needed...
101     if [ -e $DIR/tsserver2.pid ]; then
102     echo -n "Stopping the TeamSpeak Voice server..."
103     if ( kill -TERM `cat $DIR/tsserver2.pid` ); then
104     for c in $(seq 1 300); do
105     if [ -e $DIR/tsserver2.pid ]; then
106     echo -n "."
107     sleep 1
108     fi
109     done
110     fi
111     if [ -e $DIR/tsserver2.pid ]; then
112     echo "server does not shutdown cleanly - killing"
113     kill -KILL `cat $DIR/tsserver2.pid`
114     rm $DIR/tsserver2.pid
115     sleep 5
116     else
117     echo "done"
118     fi
119     fi
120     fi
121    
122    
123     %postun
124     if [ $1 = 0 ] ; then
125     # echo "Unregistering and deleting service..."
126     # rm -f /etc/rc.d/rc7.d/S98teamspeak
127     # rm -f /etc/rc.d/rc6.d/K98teamspeak
128     # /sbin/e-smith/config delete teamspeak
129     # /sbin/e-smith/config delete tsweb
130     # /sbin/e-smith/signal-event remoteaccess-update
131    
132     echo "Restarting Apache..."
133     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
134     /etc/rc7.d/S86httpd-e-smith sigusr1
135    
136     echo "Deleting user teamspeak..."
137     userdel teamspeak
138    
139     echo "Deleting install directories..."
140     rm -rf /opt/teamspeak
141     rm -rf /opt/tsweb
142     fi
143    
144    
145     %files -f %{name}-%{version}-filelist
146    
147    
148     %defattr(-,root,root)

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