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

Contents of /rpms/smeserver-teamspeak-server/contribs8/smeserver-teamspeak-server.spec

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


Revision 1.4 - (show annotations) (download)
Thu Jun 20 20:51:28 2013 UTC (11 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +13 -10 lines
Error occurred while calculating annotation data.
Prep for import

1 # $Id: smeserver-teamspeak-server.spec,v 1.3 2013/03/08 22:00:38 unnilennium Exp $
2 # Authority: cool34000
3 # Name: Sylvain Gomez
4
5 %define name smeserver-teamspeak-server
6 %define version 3.1
7 %define release 0
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 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 * Fri Mar 8 2013 JP Pialasse <tests@pialasse.com> 3.1-0
36 - added back the web interface
37 - added back templates
38 - 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
42 - change tarball to remove teamspeak binaries
43 - some .spec cleanup, some more scripts have to be moved out there
44
45 * Mon May 12 2008 Sylvain Gomez <sylvaingomez@free.fr>
46 [2.0.24.1-2] Website added
47 - New php website added (tsweb)
48
49 * Sun Nov 11 2007 Sylvain Gomez <sylvaingomez@free.fr>
50 [2.0.24.1-1] New version
51 - Based on latest version + updated server_linux
52 - RPM structure fix
53 - Uninstall sections fixed
54
55 * Sun Jun 17 2007 Sylvain Gomez <sylvaingomez@free.fr>
56 [2.0.20.1-2] Fixing bugs
57 - Added teamspeak UserPassword
58 - Removed useless lines
59 - Few fix to teamspeak service file
60 - Now deleting temporary files
61
62 * Wed Jun 6 2007 Sylvain Gomez <sylvaingomez@free.fr>
63 [2.0.20.1-1] Original version
64
65
66 %prep
67
68
69 %setup
70 %patch0 -p1
71
72 %build
73 perl createlinks
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
78 rm -f %{name}-%{version}-filelist
79 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
80
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85
86 %pre
87 /sbin/e-smith/create-system-user teamspeak 1050 \
88 'teamspeak' /opt/teamspeak /bin/bash
89
90 %post
91
92
93 %preun
94 if [ $1 = 0 ] ; then
95 DIR=/opt/teamspeak
96 # Stopping TS service if needed...
97 if [ -e $DIR/tsserver2.pid ]; then
98 echo -n "Stopping the TeamSpeak Voice server..."
99 if ( kill -TERM `cat $DIR/tsserver2.pid` ); then
100 for c in $(seq 1 300); do
101 if [ -e $DIR/tsserver2.pid ]; then
102 echo -n "."
103 sleep 1
104 fi
105 done
106 fi
107 if [ -e $DIR/tsserver2.pid ]; then
108 echo "server does not shutdown cleanly - killing"
109 kill -KILL `cat $DIR/tsserver2.pid`
110 rm $DIR/tsserver2.pid
111 sleep 5
112 else
113 echo "done"
114 fi
115 fi
116 fi
117
118
119 %postun
120 if [ $1 = 0 ] ; then
121 # echo "Unregistering and deleting service..."
122 # rm -f /etc/rc.d/rc7.d/S98teamspeak
123 # rm -f /etc/rc.d/rc6.d/K98teamspeak
124 # /sbin/e-smith/config delete teamspeak
125 # /sbin/e-smith/config delete tsweb
126 # /sbin/e-smith/signal-event remoteaccess-update
127
128 echo "Restarting Apache..."
129 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
130 /etc/rc7.d/S86httpd-e-smith sigusr1
131
132 echo "Deleting user teamspeak..."
133 userdel teamspeak
134
135 echo "Deleting install directories..."
136 rm -rf /opt/teamspeak
137 rm -rf /opt/tsweb
138 fi
139
140
141 %files -f %{name}-%{version}-filelist
142
143
144 %defattr(-,root,root)

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