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

Contents 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.4 - (show annotations) (download)
Wed Oct 10 10:00:57 2018 UTC (6 years, 1 month ago) by jcrisp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +12 -7 lines
Error occurred while calculating annotation data.
Prep for smeserver-docker import

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

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