games-server/vintagestory-server: new package, add 1.18.5

This commit is contained in:
Alarig Le Lay 2023-05-30 11:04:41 +02:00
parent 60405781da
commit a40ec87943
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
3 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST vs_server_1.18.5.tar.gz 29892055 BLAKE2B b07a1a07d2482d2daeeac89043781c51fb75a9da04b3afb929f73a8fab90f6a71da4962af4136389aaebf8b26171dbdff881414832df799cafdd6a2bd2c4fd68 SHA512 9c3fc99a102a357bee17ea90d6529a4d6daeaf9e94de0e55c10d3eb93d40d25540fecfee0753372bbdbfddeddb4a5e36d2ae429fe30a6839924bf1a80b10e300

View file

@ -0,0 +1,23 @@
#!/sbin/openrc-run
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="vintagestory daemon"
description=""
command=/usr/bin/mono
retry=15
command_background=1
directory="/opt/vintagestory-server"
pidfile="/run/${RC_SVCNAME}.pid"
command_user="vintagestory"
command_group="vintagestory"
command_args="/opt/vintagestory-server/VintagestoryServer.exe --dataPath ${DATAPATH}"
DATAPATH="/var/lib/vintagestory"
start_pre() {
checkpath -d -m 0750 -o "${command_user}:${command_group}" \
"${DATAPATH}"
}

View file

@ -0,0 +1,29 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Server for Vintage Story"
HOMEPAGE="https://www.vintagestory.at/"
SRC_URI="https://cdn.vintagestory.at/gamefiles/stable/vs_server_${PV}.tar.gz"
LICENSE="all-right-reserved"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
dev-lang/mono
net-misc/curl
net-misc/wget
"
RDEPEND="${DEPEND}"
BDEPEND=""
S="${WORKDIR}"
src_install() {
insinto /opt/vintagestory-server
doins -r *
newinitd "${FILESDIR}"/vintagestory.initd vintagestory
}