summaryrefslogtreecommitdiff
path: root/games-server/among-sus
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-04-12 21:03:09 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-04-12 21:03:09 +0000
commitd97953e6ff67978da9554e7b4601aedceb21e215 (patch)
tree674053c902db6972b9716c9ac3b1e960ee7a5358 /games-server/among-sus
parent1d1fa5bb30df70070bbbbd2b777b839d31f09c41 (diff)
downloadbaldeagleos-repo-d97953e6ff67978da9554e7b4601aedceb21e215.tar.gz
baldeagleos-repo-d97953e6ff67978da9554e7b4601aedceb21e215.tar.xz
baldeagleos-repo-d97953e6ff67978da9554e7b4601aedceb21e215.zip
Adding metadata
Diffstat (limited to 'games-server/among-sus')
-rw-r--r--games-server/among-sus/Manifest1
-rw-r--r--games-server/among-sus/among-sus-20210519.ebuild37
-rw-r--r--games-server/among-sus/files/among-sus.confd2
-rw-r--r--games-server/among-sus/files/among-sus.initd16
-rw-r--r--games-server/among-sus/metadata.xml14
5 files changed, 70 insertions, 0 deletions
diff --git a/games-server/among-sus/Manifest b/games-server/among-sus/Manifest
new file mode 100644
index 000000000000..512824baa710
--- /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 000000000000..1642a2adf924
--- /dev/null
+++ b/games-server/among-sus/among-sus-20210519.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+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() {
+ tc-export CC
+ append-cflags -Wno-unused-result
+ 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 000000000000..6cac8fd74bda
--- /dev/null
+++ b/games-server/among-sus/files/among-sus.confd
@@ -0,0 +1,2 @@
+# Set port number
+#AMONG_SUS_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 000000000000..3b84b863504a
--- /dev/null
+++ b/games-server/among-sus/files/among-sus.initd
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+# Copyright 2021-2022 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"
+
+command="/usr/bin/among-sus"
+command_args="-p ${AMONG_SUS_PORT:-1234}"
+command_user=nobody:nobody
+command_background=1
+pidfile=/run/among-sus.pid
+
+depend() {
+ use net
+}
diff --git a/games-server/among-sus/metadata.xml b/games-server/among-sus/metadata.xml
new file mode 100644
index 000000000000..a90138a5252c
--- /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>