1 |
# $Id: smeserver-teamspeak-server.spec,v 1.2 2013/03/08 19:14:54 unnilennium Exp $ |
# $Id: smeserver-teamspeak-server.spec,v 1.3 2013/03/08 22:00:38 unnilennium Exp $ |
2 |
# Authority: cool34000 |
# Authority: cool34000 |
3 |
# Name: Sylvain Gomez |
# Name: Sylvain Gomez |
4 |
|
|
15 |
License: Freeware |
License: Freeware |
16 |
Group: VOIP |
Group: VOIP |
17 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
18 |
|
Patch0: smeserver-teamspeak-server-3.1-patch0.patch |
19 |
URL: http://www.goteamspeak.com/ |
URL: http://www.goteamspeak.com/ |
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
36 |
- added back the web interface |
- added back the web interface |
37 |
- added back templates |
- added back templates |
38 |
- added default db values in tar |
- added default db values in tar |
39 |
|
- improving installing script and events patch0 |
40 |
|
|
41 |
* Fri Mar 8 2013 JP Pialasse <tests@pialasse.com> 3.0-0 |
* Fri Mar 8 2013 JP Pialasse <tests@pialasse.com> 3.0-0 |
42 |
- change tarball to remove teamspeak binaries |
- change tarball to remove teamspeak binaries |
67 |
|
|
68 |
|
|
69 |
%setup |
%setup |
70 |
|
%patch0 -p1 |
71 |
|
|
72 |
%build |
%build |
73 |
|
perl createlinks |
74 |
|
|
75 |
%install |
%install |
76 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
84 |
|
|
85 |
|
|
86 |
%pre |
%pre |
87 |
|
/sbin/e-smith/create-system-user teamspeak 1050 \ |
88 |
|
'teamspeak' /opt/teamspeak /bin/bash |
89 |
|
|
90 |
%post |
%post |
91 |
|
|
118 |
|
|
119 |
%postun |
%postun |
120 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
121 |
echo "Unregistering and deleting service..." |
# echo "Unregistering and deleting service..." |
122 |
rm -f /etc/rc.d/rc7.d/S98teamspeak |
# rm -f /etc/rc.d/rc7.d/S98teamspeak |
123 |
rm -f /etc/rc.d/rc6.d/K98teamspeak |
# rm -f /etc/rc.d/rc6.d/K98teamspeak |
124 |
/sbin/e-smith/config delete teamspeak |
# /sbin/e-smith/config delete teamspeak |
125 |
/sbin/e-smith/config delete tsweb |
# /sbin/e-smith/config delete tsweb |
126 |
/sbin/e-smith/signal-event remoteaccess-update |
# /sbin/e-smith/signal-event remoteaccess-update |
127 |
|
|
128 |
echo "Restarting Apache..." |
echo "Restarting Apache..." |
129 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |