diff options
-rw-r--r-- | games-server/among-sus/among-sus-20210519.ebuild | 4 | ||||
-rw-r--r-- | games-server/among-sus/files/among-sus.confd | 3 | ||||
-rw-r--r-- | games-server/among-sus/files/among-sus.initd | 8 |
3 files changed, 8 insertions, 7 deletions
diff --git a/games-server/among-sus/among-sus-20210519.ebuild b/games-server/among-sus/among-sus-20210519.ebuild index c0d8b11e4..58d869c9e 100644 --- a/games-server/among-sus/among-sus-20210519.ebuild +++ b/games-server/among-sus/among-sus-20210519.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic +inherit flag-o-matic toolchain-funcs COMMIT="554e60bf52e3fa931661b9414189a92bb8f69d78" DESCRIPTION="Among Us, but it's a text adventure" @@ -17,6 +17,8 @@ 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) diff --git a/games-server/among-sus/files/among-sus.confd b/games-server/among-sus/files/among-sus.confd index 86c4ccab6..6cac8fd74 100644 --- a/games-server/among-sus/files/among-sus.confd +++ b/games-server/among-sus/files/among-sus.confd @@ -1 +1,2 @@ -# AMOGUS_PORT=1234 +# 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 index 14886c2b5..3b84b8635 100644 --- a/games-server/among-sus/files/among-sus.initd +++ b/games-server/among-sus/files/among-sus.initd @@ -1,18 +1,16 @@ #!/sbin/openrc-run -# Copyright 2021 Gentoo Authors +# 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" -AMOGUS_PORT=${AMOGUS_PORT:-1234} - command="/usr/bin/among-sus" -command_args="-p ${AMOGUS_PORT}" +command_args="-p ${AMONG_SUS_PORT:-1234}" command_user=nobody:nobody command_background=1 pidfile=/run/among-sus.pid depend() { - need net + use net } |