summaryrefslogtreecommitdiff
path: root/games-server/steamcmd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /games-server/steamcmd
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'games-server/steamcmd')
-rw-r--r--games-server/steamcmd/Manifest3
-rw-r--r--games-server/steamcmd/files/steamcmd.confd-r220
-rw-r--r--games-server/steamcmd/files/steamcmd.initd-r247
-rw-r--r--games-server/steamcmd/steamcmd-1.0-r3.ebuild52
4 files changed, 122 insertions, 0 deletions
diff --git a/games-server/steamcmd/Manifest b/games-server/steamcmd/Manifest
index 64bdb1bef981..0f535eea79ee 100644
--- a/games-server/steamcmd/Manifest
+++ b/games-server/steamcmd/Manifest
@@ -1,6 +1,9 @@
AUX README.gentoo 1420 BLAKE2B 470f3a40acf5eb150c583697a5dc2b80b6a8d1814b8c4e2c74757479e24540c5f38297b27096e8edd57b685fa0458f5175d75e34d08bd2acf45f4d7aa2c12fa8 SHA512 103ebd60a5e8c9bce0ba742ed945734d19330f5567e738317a0d8e37b2625b852c6606678487c8aa27937c7cd25a05680a7d165cc8f33a0044a993d801e5a65d
AUX steamcmd.confd-r1 576 BLAKE2B 6e944d2a707c1428a73dccd51abbd07732d622707aad00ccad79e796c313fcbdb4b7f484b82a05774c08c403526a09ae7387da4b2b744f4ec8fbd79062d6c0d0 SHA512 73fe7f4be500628e89f9905263b032e86c7e2792971ddc5f6d27b911f9c3a13601fb2d3dcd5a3a6dd4926d04c14fd6b3b297e55343ce5f5c2372e69c315df3f0
+AUX steamcmd.confd-r2 786 BLAKE2B 064be96c4052fd8ec5d7c10e18959fd1465637d9680ba79e08c3779efb5f8e706bac58a5f70602ff07aa00eb08d2e84f6312aecb0a792f84dcb4261ea038b2b1 SHA512 76cc695f74e71747cd5f1e083d38c13db105af0d8f4f465d2a2d53c0b0933022ff4acc9920e961868d9177dc0c2a6648aa20401f60952e9af94e622801cde5b8
AUX steamcmd.initd-r1 791 BLAKE2B 9ba1002a7faed781bd24f1e0534ec09ba0036b1fc97be3ba4a57aadc764c50573059b5c4cbe60808ddaa7e3cf808a5c8b43ec2bc25a0fd3039d41fa902962725 SHA512 56f8fa87d3cfc0de635fb95516b0e8e6c471155e3f397b8ab40e877ce770ff3aabc2846156f98de9ba8810e71f18a3fb202f9c098efaa1b97ecdca11ff689bbe
+AUX steamcmd.initd-r2 1248 BLAKE2B 881c45498dc1097ad9852661d866c2de152b0bf061567ac1b036a3cf3c3088fd7c3dd12c9cdd5aff07cb2e6368f50c40f61355983533e320e28fbd1422a25947 SHA512 79e7bf2a15dfc041c77d1c97fc66855f993905a791b8d25121163246feb9ba98a72f97647d9a2ce3ed7fd2590533b2da92992abe4fb39fcba6ebd13ef5c3a501
DIST steamcmd-1.0.tar.gz 2428561 BLAKE2B c51dbb8c7731222eb748508b8a84a4cbda55168c85116078074bd0da85018a344ca088b7af41a07a96c15e64d0aeb28fb90cd85d99f444e9425f5a326c1823fe SHA512 b37debfa45e5578cc065924770258a026adad339aae86da1a66e71ac4ee80d2ddbca9060ca4c734affd2c6902635e7b32e2b3efe11bb600969654b3abeb3839e
EBUILD steamcmd-1.0-r2.ebuild 1134 BLAKE2B cfdb069a7fb3f4474549e503cc8e72b210c412c0dcaf295793beba28758df1158a702b69bcaa5dc0eb037f26d45ec743f26b82b750554cb0846f15a1e3be141f SHA512 4e944a7d7b06a7d7b1b6d71b086ccb06e89267967f4604803c6c25a4fd22d1edfb232f7efe7c445e851f84484bb201b28a1a1cec193ab79c65d2cadd0702c427
+EBUILD steamcmd-1.0-r3.ebuild 1135 BLAKE2B fa32461a7efc4059deeec69312409e6166375c37bfd8a69b5a367747965b4da84ee64999304bf9351bdac963b947a12f7e76e3b04e809237794d8be39b00c2bc SHA512 7171affdc02e47abdfbf84afeae965ffa98351806657e5b1203f14da51a4e74e63ff124b6206675ded47da66de3ef9d88c74c5932d22b464f001ef92eee76c9e
MISC metadata.xml 635 BLAKE2B 1e57286c55cdd028c5cb0e81e068f557f3d0d64f1efebdb53716805f25e671918a4e038cf329a6a97e76142e87faf0efe8020fd8501d0e72e4d06d951e55a7dc SHA512 afdf6f2e8e1903634803ade00b5ed3230e2f24d0272c0a1a0bbdb3708517dedf1ecd3f8a88c1a752289ce7b7d361fbb7d80977a092cbe66e8c92b3ed548ef0c9
diff --git a/games-server/steamcmd/files/steamcmd.confd-r2 b/games-server/steamcmd/files/steamcmd.confd-r2
new file mode 100644
index 000000000000..5cd84e169f5a
--- /dev/null
+++ b/games-server/steamcmd/files/steamcmd.confd-r2
@@ -0,0 +1,20 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Dtach options, which will used, when the `attach` extra command is called.
+# By default, CTRL+D is used, and no signal is send,
+# when you want to detach from the attached console.
+DTACH_OPTS="-e '^D' -r none"
+
+# Specifies, which server binary is used.
+# This could be 'hlds_run' or 'srcds_run', depending on your game.
+# STEAMCMD_BINARY="hlds_run"
+
+# Path to the files of your started server.
+# It's recommended to use:
+# '/opt/steamcmd/hlds' for older HL1 based mods.
+# '/opt/steamcmd/srcds' for newer HL2 based mods.
+# STEAMCMD_PATH="/opt/steamcmd/hlds"
+
+# Options for your server binary.
+# STEAMCMD_OPTS="-game valve +ip 127.0.0.1 +maxplayers 32 +map crossfire -pingboost 3"
diff --git a/games-server/steamcmd/files/steamcmd.initd-r2 b/games-server/steamcmd/files/steamcmd.initd-r2
new file mode 100644
index 000000000000..4564d4526813
--- /dev/null
+++ b/games-server/steamcmd/files/steamcmd.initd-r2
@@ -0,0 +1,47 @@
+#!/sbin/openrc-run
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+if [ "${SVCNAME}" = "steamcmd" ]; then
+ instance="main"
+else
+ instance="${SVCNAME#steamcmd.}"
+fi
+
+dtach_tmpfile="$(mktemp -u)"
+name="SteamCMD (Mod: ${instance})"
+pidfile="/run/steamcmd.${instance}.pid"
+start_stop_daemon_args="--chdir ${STEAMCMD_PATH}"
+
+description_attach="Attaches to the session (non-interactive console) of the SteamCMD game server"
+extra_started_commands="attach"
+
+command="/usr/bin/dtach"
+command_args="-N ${dtach_tmpfile} ${STEAMCMD_PATH}/${STEAMCMD_BINARY} ${STEAMCMD_OPTS}"
+command_background="true"
+command_group="steamcmd"
+command_user="steamcmd"
+
+depend() {
+ use net
+}
+
+start_pre() {
+ if [ -z "${STEAMCMD_BINARY}" ] || [ -z "${STEAMCMD_PATH}" ]; then
+ eerror "One or more STEAMCMD_* variables in /etc/conf.d/${SVCNAME} are not set!"
+ return 1
+ fi
+ return 0
+}
+
+attach() {
+ pidnumber="$(cat ${pidfile})"
+ dtach_tmpfile="$(cat /proc/${pidnumber}/cmdline | tr '\0' ' ' | awk '{print $3}')"
+
+ if [ -S "${dtach_tmpfile}" ]; then
+ eval "${command}" -a "${dtach_tmpfile}" "${DTACH_OPTS}"
+ else
+ eerror "The determined socket file for dtach could not be found!"
+ eerror "Did the process crash?"
+ fi
+}
diff --git a/games-server/steamcmd/steamcmd-1.0-r3.ebuild b/games-server/steamcmd/steamcmd-1.0-r3.ebuild
new file mode 100644
index 000000000000..1c33b66301d8
--- /dev/null
+++ b/games-server/steamcmd/steamcmd-1.0-r3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit readme.gentoo-r1
+
+DESCRIPTION="This is the command-line version of the Steam client for dedicated servers"
+HOMEPAGE="https://developer.valvesoftware.com/wiki/SteamCMD"
+SRC_URI="https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1+ Steam"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+RDEPEND="
+ acct-group/steamcmd
+ acct-user/steamcmd
+ app-misc/dtach
+"
+
+RESTRICT="bindist mirror"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="
+ opt/steamcmd/linux32/libstdc++.so.6
+ opt/steamcmd/linux32/steamcmd
+"
+
+src_install() {
+ diropts -o steamcmd -g steamcmd
+ dodir /opt/steamcmd
+ keepdir /opt/steamcmd/{.steam,.steam/sdk32,linux32}
+
+ exeopts -o steamcmd -g steamcmd
+ exeinto /opt/steamcmd
+ doexe steamcmd.sh
+
+ exeopts -o steamcmd -g steamcmd
+ exeinto /opt/steamcmd/linux32
+ doexe linux32/steamcmd linux32/libstdc++.so.6
+
+ newinitd "${FILESDIR}"/steamcmd.initd-r2 steamcmd
+ newconfd "${FILESDIR}"/steamcmd.confd-r2 steamcmd
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}