From f7d989bc03ba9abf53c390d282f15e6ab4d16280 Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Mon, 28 Jun 2021 06:43:14 +0500 Subject: games-server/among-sus: initial import Signed-off-by: Anna (cybertailor) Vyalkova --- games-server/among-sus/Manifest | 1 + games-server/among-sus/among-sus-20210519.ebuild | 35 ++++++++++++++++++++++++ games-server/among-sus/files/among-sus.confd | 1 + games-server/among-sus/files/among-sus.initd | 18 ++++++++++++ games-server/among-sus/metadata.xml | 14 ++++++++++ 5 files changed, 69 insertions(+) create mode 100644 games-server/among-sus/Manifest create mode 100644 games-server/among-sus/among-sus-20210519.ebuild create mode 100644 games-server/among-sus/files/among-sus.confd create mode 100644 games-server/among-sus/files/among-sus.initd create mode 100644 games-server/among-sus/metadata.xml (limited to 'games-server') diff --git a/games-server/among-sus/Manifest b/games-server/among-sus/Manifest new file mode 100644 index 000000000..512824baa --- /dev/null +++ b/games-server/among-sus/Manifest @@ -0,0 +1 @@ +DIST among-sus-20210519.tar.gz 23784 BLAKE2B d9a215c0654f1db3d39e8ed10f792a464a1e843e863cbb5c986b6074885d10a9912ba143f8e1f692e001e7b495296b0cf92f1ce62cd533a0f7aabe871900cb5f SHA512 873a736a02f921758f3c5faac0b5d46c5f5f36f605fbfb0c5da42544a4fbd27bc73d1a2f1f82468c3f173cf4c25a28eee35d9f6b83c0809c59fb0aa954d925ab diff --git a/games-server/among-sus/among-sus-20210519.ebuild b/games-server/among-sus/among-sus-20210519.ebuild new file mode 100644 index 000000000..c0d8b11e4 --- /dev/null +++ b/games-server/among-sus/among-sus-20210519.ebuild @@ -0,0 +1,35 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +COMMIT="554e60bf52e3fa931661b9414189a92bb8f69d78" +DESCRIPTION="Among Us, but it's a text adventure" +HOMEPAGE="https://sr.ht/~martijnbraam/among-sus" +SRC_URI="https://tildegit.org/tildeverse/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+notifications" + +src_configure() { + append-cppflags \ + -DVERSION=\\\"${COMMIT:0:7}\\\" \ + -DMOVEMENT_NOTIFICATIONS=$(usex notifications 1 0) +} + +src_compile() { + emake main +} + +src_install() { + newbin main ${PN} + einstalldocs + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/games-server/among-sus/files/among-sus.confd b/games-server/among-sus/files/among-sus.confd new file mode 100644 index 000000000..86c4ccab6 --- /dev/null +++ b/games-server/among-sus/files/among-sus.confd @@ -0,0 +1 @@ +# AMOGUS_PORT=1234 diff --git a/games-server/among-sus/files/among-sus.initd b/games-server/among-sus/files/among-sus.initd new file mode 100644 index 000000000..14886c2b5 --- /dev/null +++ b/games-server/among-sus/files/among-sus.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="among-sus server" +description="Among Us, but it's a text adventure" + +AMOGUS_PORT=${AMOGUS_PORT:-1234} + +command="/usr/bin/among-sus" +command_args="-p ${AMOGUS_PORT}" +command_user=nobody:nobody +command_background=1 +pidfile=/run/among-sus.pid + +depend() { + need net +} diff --git a/games-server/among-sus/metadata.xml b/games-server/among-sus/metadata.xml new file mode 100644 index 000000000..a90138a52 --- /dev/null +++ b/games-server/among-sus/metadata.xml @@ -0,0 +1,14 @@ + + + + + cyber+gentoo@sysrq.in + Anna + + + https://todo.sr.ht/~martijnbraam/among-sus + + + Notify players you're moving + + -- cgit v1.2.3-65-gdbad