]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Added a teamspeak server addon.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 17 Feb 2008 22:31:48 +0000 (22:31 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 17 Feb 2008 22:31:48 +0000 (22:31 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1220 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

config/rootfiles/common/initscripts
config/rootfiles/packages/teamspeak [new file with mode: 0644]
doc/packages-list.txt
lfs/teamspeak [new file with mode: 0644]
make.sh
src/initscripts/init.d/teamspeak [new file with mode: 0644]
src/paks/teamspeak/install.sh [new file with mode: 0644]
src/paks/teamspeak/uninstall.sh [new file with mode: 0644]
src/paks/teamspeak/update.sh [new file with mode: 0644]

index e061435c5cfd40e81756a0cfdc70eeeee32e6660..1b4e0e077fc6669d7a7b2fd6aceb71ccc586f32e 100644 (file)
@@ -76,6 +76,7 @@ etc/rc.d/init.d/sshd
 etc/rc.d/init.d/swap
 etc/rc.d/init.d/sysctl
 etc/rc.d/init.d/sysklogd
+etc/rc.d/init.d/teamspeak
 etc/rc.d/init.d/template
 etc/rc.d/init.d/udev
 etc/rc.d/init.d/udev_retry
diff --git a/config/rootfiles/packages/teamspeak b/config/rootfiles/packages/teamspeak
new file mode 100644 (file)
index 0000000..9facc49
--- /dev/null
@@ -0,0 +1,2 @@
+etc/init.d/teamspeak
+opt/teamspeak
index 0d7bc36ef977357dbb8a95db3bfe7e3c78dc6ea2..ebca2c8b0f669330b9c75a5603a1bf818350d3ae 100644 (file)
 * tcp_wrappers_7.6
 * tcpdump-3.8.3
 * tcptrack-1.3.0
+* teamspeak-2.0.24.1
 * texinfo-4.8
 * tiff-3.8.2
 * traceroute-1.4a12
diff --git a/lfs/teamspeak b/lfs/teamspeak
new file mode 100644 (file)
index 0000000..c1c9433
--- /dev/null
@@ -0,0 +1,60 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 2.0.24.1
+
+THISAPP    = teamspeak-$(VER)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = teamspeak
+PAK_VER    = 1
+
+DEPS       = ""
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = 
+
+install : $(TARGET)
+
+check :
+
+download :
+
+md5 :
+
+dist: 
+       @$(PAK)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) :
+       @$(PREBUILD)
+       -mkdir -p /opt/teamspeak
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 30e3c84cb5dc3ea7cdd1ba14b0a7aaed8578163d..c2850bf0479e7b2b8187e2e53ee7aad76cd88122 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -534,6 +534,7 @@ buildipfire() {
   ipfiremake neon
   ipfiremake subversion
   ipfiremake tcptrack
+  ipfiremake teamspeak
 }
 
 buildinstaller() {
diff --git a/src/initscripts/init.d/teamspeak b/src/initscripts/init.d/teamspeak
new file mode 100644 (file)
index 0000000..ebf1de0
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+########################################################################
+# Begin $rc_base/init.d/teamspeak
+#
+# Description :        Start/Stops the teamspeak server
+#
+# Authors     : Michael Tremer
+#
+# Version     : 01.00
+#
+# Notes       :
+#
+########################################################################
+
+cd /opt/teamspeak && sudo -u teamspeak ./teamspeak2-server_startscript $*
+
+# End $rc_base/init.d/teamspeak
diff --git a/src/paks/teamspeak/install.sh b/src/paks/teamspeak/install.sh
new file mode 100644 (file)
index 0000000..16333af
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/bash
+############################################################################
+#                                                                          #
+# This file is part of the IPFire Firewall.                                #
+#                                                                          #
+# IPFire is free software; you can redistribute it and/or modify           #
+# it under the terms of the GNU General Public License as published by     #
+# the Free Software Foundation; either version 2 of the License, or        #
+# (at your option) any later version.                                      #
+#                                                                          #
+# IPFire is distributed in the hope that it will be useful,                #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of           #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
+# GNU General Public License for more details.                             #
+#                                                                          #
+# You should have received a copy of the GNU General Public License        #
+# along with IPFire; if not, write to the Free Software                    #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
+#                                                                          #
+# Copyright (C) 2008 IPFire-Team <info@ipfire.org>.                        #
+#                                                                          #
+############################################################################
+#
+. /opt/pakfire/lib/functions.sh
+
+extract_files
+
+[ -d /opt/teamspeak ] || mkdir -p /opt/teamspeak
+
+cd /tmp
+wget -c ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ts2_server_rc2_202319.tar.bz2 \
+       ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202401/server_linux
+
+tar xvfj ts2_server_rc2_202319.tar.bz2 -C /tmp
+
+cp -av /tmp/tss2_rc2/* /opt/teamspeak
+mv /tmp/server_linux /opt/teamspeak/server_linux
+chmod 755 -v /opt/teamspeak/server_linux
+
+rm -rf /tmp/tss2_rc2 ts2_server_rc2_202319.tar.bz2
+
+groupadd teamspeak
+useradd -g teamspeak teamspeak
+
+chown teamspeak.teamspeak /opt/teamspeak -Rv
+
+start_service --background ${NAME}
+
+ln -sf  ../init.d/teamspeak /etc/rc.d/rc0.d/K00teamspeak
+ln -sf  ../init.d/teamspeak /etc/rc.d/rc3.d/S99teamspeak
+ln -sf  ../init.d/teamspeak /etc/rc.d/rc6.d/K00teamspeak
diff --git a/src/paks/teamspeak/uninstall.sh b/src/paks/teamspeak/uninstall.sh
new file mode 100644 (file)
index 0000000..583f97e
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/bash
+############################################################################
+#                                                                          #
+# This file is part of the IPFire Firewall.                                #
+#                                                                          #
+# IPFire is free software; you can redistribute it and/or modify           #
+# it under the terms of the GNU General Public License as published by     #
+# the Free Software Foundation; either version 2 of the License, or        #
+# (at your option) any later version.                                      #
+#                                                                          #
+# IPFire is distributed in the hope that it will be useful,                #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of           #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
+# GNU General Public License for more details.                             #
+#                                                                          #
+# You should have received a copy of the GNU General Public License        #
+# along with IPFire; if not, write to the Free Software                    #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
+#                                                                          #
+# Copyright (C) 2007 IPFire-Team <info@ipfire.org>.                        #
+#                                                                          #
+############################################################################
+#
+. /opt/pakfire/lib/functions.sh
+stop_service ${NAME}
+rm -rf /opt/teamspeak
+userdel teamspeak
+rm -rf /etc/rc.d/rc*.d/*teamspeak
diff --git a/src/paks/teamspeak/update.sh b/src/paks/teamspeak/update.sh
new file mode 100644 (file)
index 0000000..89c40d0
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+############################################################################
+#                                                                          #
+# This file is part of the IPFire Firewall.                                #
+#                                                                          #
+# IPFire is free software; you can redistribute it and/or modify           #
+# it under the terms of the GNU General Public License as published by     #
+# the Free Software Foundation; either version 2 of the License, or        #
+# (at your option) any later version.                                      #
+#                                                                          #
+# IPFire is distributed in the hope that it will be useful,                #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of           #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
+# GNU General Public License for more details.                             #
+#                                                                          #
+# You should have received a copy of the GNU General Public License        #
+# along with IPFire; if not, write to the Free Software                    #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
+#                                                                          #
+# Copyright (C) 2007 IPFire-Team <info@ipfire.org>.                        #
+#                                                                          #
+############################################################################
+#
+. /opt/pakfire/lib/functions.sh
+./uninstall.sh
+./install.sh