summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2019-10-27 23:38:36 +0000
committerJames Le Cuirot <chewi@gentoo.org>2019-10-27 23:47:36 +0000
commit731ccc5fd59675c7535c09ffe04265d10313fe1b (patch)
tree5178d5b23eee6a067baff1ceb576d26dec5a781b /games-fps/ut2004/files
parentgames-fps/ut2004: Port to EAPI 7 (diff)
downloadgentoo-731ccc5fd59675c7535c09ffe04265d10313fe1b.tar.gz
gentoo-731ccc5fd59675c7535c09ffe04265d10313fe1b.tar.bz2
gentoo-731ccc5fd59675c7535c09ffe04265d10313fe1b.zip
games-fps/ut2004: Drop USE flags, add init script, misc improvements
If you just want the server without the client part of the game, use ut2004-ded instead. This package now unconditionally installs both the client and the server init script. Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-fps/ut2004/files')
-rw-r--r--games-fps/ut2004/files/ut2004-ded.confd6
-rw-r--r--games-fps/ut2004/files/ut2004-ded.initd13
2 files changed, 19 insertions, 0 deletions
diff --git a/games-fps/ut2004/files/ut2004-ded.confd b/games-fps/ut2004/files/ut2004-ded.confd
new file mode 100644
index 000000000000..e82238b93de0
--- /dev/null
+++ b/games-fps/ut2004/files/ut2004-ded.confd
@@ -0,0 +1,6 @@
+# User and group the server should run as.
+ut2004_ded_user="nobody"
+ut2004_ded_group="nobody"
+
+# Any extra options you want to pass to the server.
+ut2004_ded_opts="DM-Deck17"
diff --git a/games-fps/ut2004/files/ut2004-ded.initd b/games-fps/ut2004/files/ut2004-ded.initd
new file mode 100644
index 000000000000..c4cf9810cd15
--- /dev/null
+++ b/games-fps/ut2004/files/ut2004-ded.initd
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+pidfile="/var/run/${RC_SVCNAME}.pid"
+command_background="true"
+command_user="${ut2004_ded_user}:${ut2004_ded_group}"
+command="ut2004-ded"
+command_args="${ut2004_ded_opts}"
+
+depend() {
+ need net
+}