diff options
| author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2026-01-17 17:20:21 +0100 |
|---|---|---|
| committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2026-01-17 17:20:21 +0100 |
| commit | 40aeb4d4a179626a5e03bfe76752be4b141f9aaa (patch) | |
| tree | 38b733a8fd3a81bcfb9169ec1e5e2b4bf718526a | |
| parent | fe166e50bfcac93971ed88bc1ce4890158322b4a (diff) | |
| download | enomicon-40aeb4d4a179626a5e03bfe76752be4b141f9aaa.tar.xz | |
games-server/vintagestory: new package, add 1.21.6
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
| -rw-r--r-- | games-server/vintagestory/Manifest | 1 | ||||
| -rw-r--r-- | games-server/vintagestory/files/vintagestory.initd | 26 | ||||
| -rw-r--r-- | games-server/vintagestory/vintagestory-1.21.6.ebuild | 49 |
3 files changed, 76 insertions, 0 deletions
diff --git a/games-server/vintagestory/Manifest b/games-server/vintagestory/Manifest new file mode 100644 index 0000000..1646df1 --- /dev/null +++ b/games-server/vintagestory/Manifest @@ -0,0 +1 @@ +DIST vs_server_linux-x64_1.21.6.tar.gz 45061087 BLAKE2B d182cc7935bdbf70bf22c1e36c9b717a3de4b06ebadc32193b9f34e5bd432d2cab0a8c31607607657df98b26d09be539eb9aad1430b30b91ae10740d88d00f43 SHA512 618fe389b78a478308065a1060c857074e38fcea1c9e6ed4af4eec8939107795fabe6c917cd3970091437ab344c591b8ac44fffa0225c5b360b6c627b56f25ef diff --git a/games-server/vintagestory/files/vintagestory.initd b/games-server/vintagestory/files/vintagestory.initd new file mode 100644 index 0000000..fcdb5f2 --- /dev/null +++ b/games-server/vintagestory/files/vintagestory.initd @@ -0,0 +1,26 @@ +#!/sbin/openrc-run +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +if [ "${SVCNAME}" = "vintagestory-server" ]; then + instance="main" +else + instance="${SVCNAME#*.}" +fi + +name="Vintage Story (${instance})" +supervisor=supervise-daemon + +directory="/var/lib/vintagestory-server/${instance}" + +command="/usr/bin/vintagestory-server" +command_args="--dataPath ${directory}" +command_user="vintagestory:vintagestory" + +depend() { + use net +} + +start_pre() { + checkpath -d -o "${command_user}:${command_group}" -q "${directory%/*}" "${directory}" +} diff --git a/games-server/vintagestory/vintagestory-1.21.6.ebuild b/games-server/vintagestory/vintagestory-1.21.6.ebuild new file mode 100644 index 0000000..ec26537 --- /dev/null +++ b/games-server/vintagestory/vintagestory-1.21.6.ebuild @@ -0,0 +1,49 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +DOTNET_PKG_COMPAT=8.0 +inherit dotnet-pkg-base + +MY_PV="${PV/_rc/-rc.}" +_CHANNEL="stable" + +DESCRIPTION="Dedicated game server for Vintage Story" +HOMEPAGE="https://www.vintagestory.at/" +SRC_URI="https://cdn.vintagestory.at/gamefiles/${_CHANNEL}/vs_server_linux-x64_${MY_PV}.tar.gz" +S="${WORKDIR}" + +LICENSE="all-rights-reserved" +SLOT=0 +KEYWORDS="-* ~amd64" + +RDEPEND=" + acct-group/vintagestory + acct-user/vintagestory + net-misc/curl + virtual/dotnet-sdk:${DOTNET_PKG_COMPAT} +" +BDEPEND=" + sys-devel/gettext + virtual/dotnet-sdk:${DOTNET_PKG_COMPAT} +" + +# Do NOT Distribute! +RESTRICT="bindist mirror strip" + +QA_PREBUILT="*" +QA_PRESTRIPPED="*" + +DOTNET_PKG_OUTPUT="${S}" +INST_DIR="/opt/${PN}-server" + +src_compile() { + : +} + +src_install() { + dotnet-pkg-base_install "${INST_DIR}" + dotnet-pkg-base_dolauncher "${INST_DIR}/VintagestoryServer" "${PN}-server" + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" +} |
