public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: games-server/among-sus/files/, games-server/among-sus/
@ 2021-07-01  5:08 Anna Vyalkova
  0 siblings, 0 replies; only message in thread
From: Anna Vyalkova @ 2021-07-01  5:08 UTC (permalink / raw
  To: gentoo-commits

commit:     f7d989bc03ba9abf53c390d282f15e6ab4d16280
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Mon Jun 28 01:43:14 2021 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Jul  1 04:58:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f7d989bc

games-server/among-sus: initial import

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 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(+)

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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>cyber+gentoo@sysrq.in</email>
+		<name>Anna</name>
+	</maintainer>
+	<upstream>
+		<bugs-to>https://todo.sr.ht/~martijnbraam/among-sus</bugs-to>
+	</upstream>
+	<use>
+		<flag name="notifications">Notify players you're moving</flag>
+	</use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-01  5:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-01  5:08 [gentoo-commits] repo/proj/guru:dev commit in: games-server/among-sus/files/, games-server/among-sus/ Anna Vyalkova

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox