summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-04-10 15:08:15 +0200
committerConrad Kostecki <conikost@gentoo.org>2022-04-10 15:23:43 +0200
commit6f6d5ac7441e6449230909e5ad6c2db1e48557fb (patch)
treeb179b013c692da826a62d47ad1de2a7a45351055 /games-simulation/openttd/files
parentacct-user/openttd: initial import (diff)
downloadgentoo-6f6d5ac7441e6449230909e5ad6c2db1e48557fb.tar.gz
gentoo-6f6d5ac7441e6449230909e5ad6c2db1e48557fb.tar.bz2
gentoo-6f6d5ac7441e6449230909e5ad6c2db1e48557fb.zip
games-simulation/openttd: add 12.2
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-simulation/openttd/files')
-rw-r--r--games-simulation/openttd/files/openttd.confd5
-rw-r--r--games-simulation/openttd/files/openttd.initd-r216
2 files changed, 21 insertions, 0 deletions
diff --git a/games-simulation/openttd/files/openttd.confd b/games-simulation/openttd/files/openttd.confd
new file mode 100644
index 000000000000..399ab5d984c6
--- /dev/null
+++ b/games-simulation/openttd/files/openttd.confd
@@ -0,0 +1,5 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Options for your started OpenTTD server
+openttd_opts=""
diff --git a/games-simulation/openttd/files/openttd.initd-r2 b/games-simulation/openttd/files/openttd.initd-r2
new file mode 100644
index 000000000000..6a24bbc25072
--- /dev/null
+++ b/games-simulation/openttd/files/openttd.initd-r2
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+# Copyright 1999-2022 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+description="OpenTTD dedicated game server"
+pidfile="/run/${SVCNAME}.pid"
+
+command="/usr/bin/openttd"
+command_args="-D ${openttd_opts}"
+command_background="true"
+command_group="openttd"
+command_user="openttd"
+
+depend() {
+ need net
+}