Gentoo Archives: gentoo-commits

From: Jian Lin <jlin.gentoo@×××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: games-server/among-sus/files/, games-server/among-sus/
Date: Thu, 01 Jul 2021 05:20:32
Message-Id: 1625115506.f7d989bc03ba9abf53c390d282f15e6ab4d16280.jian@gentoo
1 commit: f7d989bc03ba9abf53c390d282f15e6ab4d16280
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Mon Jun 28 01:43:14 2021 +0000
4 Commit: Jian Lin <jlin.gentoo <AT> outlook <DOT> com>
5 CommitDate: Thu Jul 1 04:58:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f7d989bc
7
8 games-server/among-sus: initial import
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 games-server/among-sus/Manifest | 1 +
13 games-server/among-sus/among-sus-20210519.ebuild | 35 ++++++++++++++++++++++++
14 games-server/among-sus/files/among-sus.confd | 1 +
15 games-server/among-sus/files/among-sus.initd | 18 ++++++++++++
16 games-server/among-sus/metadata.xml | 14 ++++++++++
17 5 files changed, 69 insertions(+)
18
19 diff --git a/games-server/among-sus/Manifest b/games-server/among-sus/Manifest
20 new file mode 100644
21 index 000000000..512824baa
22 --- /dev/null
23 +++ b/games-server/among-sus/Manifest
24 @@ -0,0 +1 @@
25 +DIST among-sus-20210519.tar.gz 23784 BLAKE2B d9a215c0654f1db3d39e8ed10f792a464a1e843e863cbb5c986b6074885d10a9912ba143f8e1f692e001e7b495296b0cf92f1ce62cd533a0f7aabe871900cb5f SHA512 873a736a02f921758f3c5faac0b5d46c5f5f36f605fbfb0c5da42544a4fbd27bc73d1a2f1f82468c3f173cf4c25a28eee35d9f6b83c0809c59fb0aa954d925ab
26
27 diff --git a/games-server/among-sus/among-sus-20210519.ebuild b/games-server/among-sus/among-sus-20210519.ebuild
28 new file mode 100644
29 index 000000000..c0d8b11e4
30 --- /dev/null
31 +++ b/games-server/among-sus/among-sus-20210519.ebuild
32 @@ -0,0 +1,35 @@
33 +# Copyright 2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +inherit flag-o-matic
39 +
40 +COMMIT="554e60bf52e3fa931661b9414189a92bb8f69d78"
41 +DESCRIPTION="Among Us, but it's a text adventure"
42 +HOMEPAGE="https://sr.ht/~martijnbraam/among-sus"
43 +SRC_URI="https://tildegit.org/tildeverse/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
44 +S="${WORKDIR}/${PN}"
45 +
46 +LICENSE="GPL-3"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="+notifications"
50 +
51 +src_configure() {
52 + append-cppflags \
53 + -DVERSION=\\\"${COMMIT:0:7}\\\" \
54 + -DMOVEMENT_NOTIFICATIONS=$(usex notifications 1 0)
55 +}
56 +
57 +src_compile() {
58 + emake main
59 +}
60 +
61 +src_install() {
62 + newbin main ${PN}
63 + einstalldocs
64 +
65 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
66 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
67 +}
68
69 diff --git a/games-server/among-sus/files/among-sus.confd b/games-server/among-sus/files/among-sus.confd
70 new file mode 100644
71 index 000000000..86c4ccab6
72 --- /dev/null
73 +++ b/games-server/among-sus/files/among-sus.confd
74 @@ -0,0 +1 @@
75 +# AMOGUS_PORT=1234
76
77 diff --git a/games-server/among-sus/files/among-sus.initd b/games-server/among-sus/files/among-sus.initd
78 new file mode 100644
79 index 000000000..14886c2b5
80 --- /dev/null
81 +++ b/games-server/among-sus/files/among-sus.initd
82 @@ -0,0 +1,18 @@
83 +#!/sbin/openrc-run
84 +# Copyright 2021 Gentoo Authors
85 +# Distributed under the terms of the GNU General Public License v2
86 +
87 +name="among-sus server"
88 +description="Among Us, but it's a text adventure"
89 +
90 +AMOGUS_PORT=${AMOGUS_PORT:-1234}
91 +
92 +command="/usr/bin/among-sus"
93 +command_args="-p ${AMOGUS_PORT}"
94 +command_user=nobody:nobody
95 +command_background=1
96 +pidfile=/run/among-sus.pid
97 +
98 +depend() {
99 + need net
100 +}
101
102 diff --git a/games-server/among-sus/metadata.xml b/games-server/among-sus/metadata.xml
103 new file mode 100644
104 index 000000000..a90138a52
105 --- /dev/null
106 +++ b/games-server/among-sus/metadata.xml
107 @@ -0,0 +1,14 @@
108 +<?xml version="1.0" encoding="UTF-8"?>
109 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
110 +<pkgmetadata>
111 + <maintainer type="person">
112 + <email>cyber+gentoo@×××××.in</email>
113 + <name>Anna</name>
114 + </maintainer>
115 + <upstream>
116 + <bugs-to>https://todo.sr.ht/~martijnbraam/among-sus</bugs-to>
117 + </upstream>
118 + <use>
119 + <flag name="notifications">Notify players you're moving</flag>
120 + </use>
121 +</pkgmetadata>