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