diff --git a/games-server/vintagestory-server/Manifest b/games-server/vintagestory-server/Manifest new file mode 100644 index 0000000..7b5c1b9 --- /dev/null +++ b/games-server/vintagestory-server/Manifest @@ -0,0 +1 @@ +DIST vs_server_1.18.5.tar.gz 29892055 BLAKE2B b07a1a07d2482d2daeeac89043781c51fb75a9da04b3afb929f73a8fab90f6a71da4962af4136389aaebf8b26171dbdff881414832df799cafdd6a2bd2c4fd68 SHA512 9c3fc99a102a357bee17ea90d6529a4d6daeaf9e94de0e55c10d3eb93d40d25540fecfee0753372bbdbfddeddb4a5e36d2ae429fe30a6839924bf1a80b10e300 diff --git a/games-server/vintagestory-server/files/vintagestory.initd b/games-server/vintagestory-server/files/vintagestory.initd new file mode 100644 index 0000000..6ceb001 --- /dev/null +++ b/games-server/vintagestory-server/files/vintagestory.initd @@ -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}" +} diff --git a/games-server/vintagestory-server/vintagestory-server-1.18.5.ebuild b/games-server/vintagestory-server/vintagestory-server-1.18.5.ebuild new file mode 100644 index 0000000..72ce443 --- /dev/null +++ b/games-server/vintagestory-server/vintagestory-server-1.18.5.ebuild @@ -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 +}