diff --git a/games/automuteus/Makefile b/games/automuteus/Makefile index 3cff75e6568d..9001c88d617e 100644 --- a/games/automuteus/Makefile +++ b/games/automuteus/Makefile @@ -1,72 +1,72 @@ PORTNAME= automuteus -DISTVERSION= 7.0.9 +DISTVERSION= 7.1.1 CATEGORIES= games MAINTAINER= nc@FreeBSD.org COMMENT= Discord Bot to automute Among Us players at round transitions LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= go:modules USE_GITHUB= yes GH_ACCOUNT= denverquane GH_TUPLE= \ BurntSushi:toml:v1.0.0:burntsushi_toml/vendor/github.com/BurntSushi/toml \ automuteus:utils:v0.1.2:automuteus_utils/vendor/github.com/automuteus/utils \ beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \ bsm:redislock:v0.7.1:bsm_redislock/vendor/github.com/bsm/redislock \ bwmarrin:discordgo:v0.24.0:bwmarrin_discordgo/vendor/github.com/bwmarrin/discordgo \ cespare:xxhash:v2.1.1:cespare_xxhash_v2/vendor/github.com/cespare/xxhash/v2 \ davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \ dgryski:go-rendezvous:9f7001d12a5f:dgryski_go_rendezvous/vendor/github.com/dgryski/go-rendezvous \ georgysavva:scany:v0.2.7:georgysavva_scany/vendor/github.com/georgysavva/scany \ go-redis:redis:v8.8.0:go_redis_redis_v8/vendor/github.com/go-redis/redis/v8 \ go-yaml:yaml:9f266ea9e77c:go_yaml_yaml/vendor/gopkg.in/yaml.v3 \ golang:crypto:86341886e292:golang_crypto/vendor/golang.org/x/crypto \ golang:protobuf:v1.4.3:golang_protobuf/vendor/github.com/golang/protobuf \ golang:sys:3681064d5158:golang_sys/vendor/golang.org/x/sys \ golang:text:v0.3.7:golang_text/vendor/golang.org/x/text \ gorilla:mux:v1.8.0:gorilla_mux/vendor/github.com/gorilla/mux \ gorilla:websocket:v1.5.0:gorilla_websocket/vendor/github.com/gorilla/websocket \ jackc:chunkreader:v2.0.1:jackc_chunkreader_v2/vendor/github.com/jackc/chunkreader/v2 \ jackc:pgconn:v1.8.1:jackc_pgconn/vendor/github.com/jackc/pgconn \ jackc:pgio:v1.0.0:jackc_pgio/vendor/github.com/jackc/pgio \ jackc:pgpassfile:v1.0.0:jackc_pgpassfile/vendor/github.com/jackc/pgpassfile \ jackc:pgproto3:v2.0.6:jackc_pgproto3_v2/vendor/github.com/jackc/pgproto3/v2 \ jackc:pgservicefile:2b9c44734f2b:jackc_pgservicefile/vendor/github.com/jackc/pgservicefile \ jackc:pgtype:v1.7.0:jackc_pgtype/vendor/github.com/jackc/pgtype \ jackc:pgx:v4.11.0:jackc_pgx_v4/vendor/github.com/jackc/pgx/v4 \ jackc:puddle:v1.1.3:jackc_puddle/vendor/github.com/jackc/puddle \ matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \ nicksnyder:go-i18n:v2.1.2:nicksnyder_go_i18n_v2/vendor/github.com/nicksnyder/go-i18n \ open-telemetry:opentelemetry-go:v0.19.0:open_telemetry_opentelemetry_go/vendor/go.opentelemetry.io/otel \ pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \ pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \ prometheus:client_golang:v1.10.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \ prometheus:client_model:v0.2.0:prometheus_client_model/vendor/github.com/prometheus/client_model \ prometheus:common:v0.18.0:prometheus_common/vendor/github.com/prometheus/common \ prometheus:procfs:v0.6.0:prometheus_procfs/vendor/github.com/prometheus/procfs \ protocolbuffers:protobuf-go:v1.25.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \ stretchr:objx:v0.2.0:stretchr_objx/vendor/github.com/stretchr/objx \ stretchr:testify:v1.7.0:stretchr_testify/vendor/github.com/stretchr/testify USE_RC_SUBR= ${PORTNAME} GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} GO_TARGET= .:${PORTNAME} SUB_FILES= pkg-message PLIST_FILES= bin/${PORTNAME} \ - "@sample etc/${PORTNAME}/config.txt.sample" \ + "@sample etc/${PORTNAME}/automuteus.conf.sample" \ "@dir /var/log/automuteus" \ /var/log/${PORTNAME}/logs.txt post-install: @${MKDIR} ${STAGEDIR}${ETCDIR} - @${CP} ${FILESDIR}/config.txt ${STAGEDIR}${ETCDIR}/config.txt.sample + @${CP} ${FILESDIR}/automuteus.conf ${STAGEDIR}${ETCDIR}/automuteus.conf.sample @${MKDIR} ${STAGEDIR}/var/log/${PORTNAME} @${TOUCH} ${STAGEDIR}/var/log/${PORTNAME}/logs.txt .include diff --git a/games/automuteus/distinfo b/games/automuteus/distinfo index 94968fa0cf92..f2d35dd4457e 100644 --- a/games/automuteus/distinfo +++ b/games/automuteus/distinfo @@ -1,79 +1,79 @@ -TIMESTAMP = 1649479258 -SHA256 (denverquane-automuteus-7.0.9_GH0.tar.gz) = fc91142c09c26b41c63a454bfd824cbf444f7b97ab7b9e4124712cf29047640e -SIZE (denverquane-automuteus-7.0.9_GH0.tar.gz) = 12163959 +TIMESTAMP = 1649641359 +SHA256 (denverquane-automuteus-7.1.1_GH0.tar.gz) = 4a33823a1be4f10bd0ce18d182c44dc4acd5dae0dc35470536a967c0c31e1c59 +SIZE (denverquane-automuteus-7.1.1_GH0.tar.gz) = 12165790 SHA256 (BurntSushi-toml-v1.0.0_GH0.tar.gz) = 7f2c8a91ddaed4455c889baf526a5c0a57f9574676513d546b9f0499eae9b0c8 SIZE (BurntSushi-toml-v1.0.0_GH0.tar.gz) = 90415 SHA256 (automuteus-utils-v0.1.2_GH0.tar.gz) = cdde4a206e41e5ea57caf321bd8c049983bee28db34ae34c961d8e65aca528a2 SIZE (automuteus-utils-v0.1.2_GH0.tar.gz) = 42299 SHA256 (beorn7-perks-v1.0.1_GH0.tar.gz) = 98db84bb0224a26094e6adba91b7ee7a1a7ace28cb648d818f8e779e6a19f825 SIZE (beorn7-perks-v1.0.1_GH0.tar.gz) = 10867 SHA256 (bsm-redislock-v0.7.1_GH0.tar.gz) = 949e51be8bf015a1ee55ed2ec9418ed6b72f2ec1dd5ccea90bf85b53e39f2692 SIZE (bsm-redislock-v0.7.1_GH0.tar.gz) = 11483 SHA256 (bwmarrin-discordgo-v0.24.0_GH0.tar.gz) = ebbddf3afef1085ca41a0f09d4fb19fbb8ef43bff9fa5b92c00675c57c4a0199 SIZE (bwmarrin-discordgo-v0.24.0_GH0.tar.gz) = 136009 SHA256 (cespare-xxhash-v2.1.1_GH0.tar.gz) = 0ee31178d2c5a1249be4e26294a2f428008dc4e1ecbbfbe47f74e41026df1148 SIZE (cespare-xxhash-v2.1.1_GH0.tar.gz) = 9292 SHA256 (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 7d82b9bb7291adbe7498fe946920ab3e7fc9e6cbfc3b2294693fad00bf0dd17e SIZE (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 42152 SHA256 (dgryski-go-rendezvous-9f7001d12a5f_GH0.tar.gz) = 29584550745fd4b8fce2e2f3def7b9d9ffe2b86cf9b6596b53a660c9bbfe27b6 SIZE (dgryski-go-rendezvous-9f7001d12a5f_GH0.tar.gz) = 1699 SHA256 (georgysavva-scany-v0.2.7_GH0.tar.gz) = 4001eac92cfcd07ceff2bfec21d1b7174ce06371de6f273050287cb7cb3f94e1 SIZE (georgysavva-scany-v0.2.7_GH0.tar.gz) = 27811 SHA256 (go-redis-redis-v8.8.0_GH0.tar.gz) = 86f441e96ac8e3ca063a1a4f7f9b090f294b53bf6f790a24d3cb5c58f2c1b30a SIZE (go-redis-redis-v8.8.0_GH0.tar.gz) = 133427 SHA256 (go-yaml-yaml-9f266ea9e77c_GH0.tar.gz) = 63efc9aabcbb56b2c9469927784fd67ecb3a79720c4fa754c511335a04156d04 SIZE (go-yaml-yaml-9f266ea9e77c_GH0.tar.gz) = 86898 SHA256 (golang-crypto-86341886e292_GH0.tar.gz) = 92b4ef34c44645bf9e6fccc20ca0a4307ef1e4e526f583141c05832182124b6b SIZE (golang-crypto-86341886e292_GH0.tar.gz) = 1628070 SHA256 (golang-protobuf-v1.4.3_GH0.tar.gz) = 5736f943f8647362f5559689df6154f3c85d261fb088867c8a68494e2a767610 SIZE (golang-protobuf-v1.4.3_GH0.tar.gz) = 171969 SHA256 (golang-sys-3681064d5158_GH0.tar.gz) = c084b1b6a081b78986c7364ec483397d6c128aa447ab672aa132fda309bd4db7 SIZE (golang-sys-3681064d5158_GH0.tar.gz) = 1258557 SHA256 (golang-text-v0.3.7_GH0.tar.gz) = 7cab2f6c3133ac1d422edd952b0dd2082fa55a73c2663fb2defd9bf83d649b26 SIZE (golang-text-v0.3.7_GH0.tar.gz) = 8354718 SHA256 (gorilla-mux-v1.8.0_GH0.tar.gz) = ea2639259d2ce6f402636655e91eb93ba69c139e3cbf80b044ee393ada53757b SIZE (gorilla-mux-v1.8.0_GH0.tar.gz) = 45517 SHA256 (gorilla-websocket-v1.5.0_GH0.tar.gz) = 5d86f9e1c76ff7ceca0747f78b79864fbaec9d440f4fdb03197466e5102a86b0 SIZE (gorilla-websocket-v1.5.0_GH0.tar.gz) = 54155 SHA256 (jackc-chunkreader-v2.0.1_GH0.tar.gz) = bf856bad6608fb7345707aba713a1d77eb984f1d217065738a12c97e37669be4 SIZE (jackc-chunkreader-v2.0.1_GH0.tar.gz) = 3038 SHA256 (jackc-pgconn-v1.8.1_GH0.tar.gz) = f99c04e32b9b98db40c97662b20326ccf7af1fc2d4eed8d4f5c87e4591a82b8c SIZE (jackc-pgconn-v1.8.1_GH0.tar.gz) = 53272 SHA256 (jackc-pgio-v1.0.0_GH0.tar.gz) = d36e367c877954acdc96b8cd1a0df417b4cfae80dae726474a8f0de3a68a68ab SIZE (jackc-pgio-v1.0.0_GH0.tar.gz) = 1884 SHA256 (jackc-pgpassfile-v1.0.0_GH0.tar.gz) = df8904662382e1d0064ec7a5a8c36c49264d7128cea923d597802ada8c5b9603 SIZE (jackc-pgpassfile-v1.0.0_GH0.tar.gz) = 3254 SHA256 (jackc-pgproto3-v2.0.6_GH0.tar.gz) = 3d345e52e8414937255bdd795d9e97413dd3c52216c7cb3e273d5ef94f92f097 SIZE (jackc-pgproto3-v2.0.6_GH0.tar.gz) = 16872 SHA256 (jackc-pgservicefile-2b9c44734f2b_GH0.tar.gz) = dd6cf77deb2456b1c8e56875ed901a57eb887e63ae5de48f364906131275497e SIZE (jackc-pgservicefile-2b9c44734f2b_GH0.tar.gz) = 2991 SHA256 (jackc-pgtype-v1.7.0_GH0.tar.gz) = 1552dbef3b001e6e301d0577efd4ca183d76b711a66c40afebffaa8e19a4df61 SIZE (jackc-pgtype-v1.7.0_GH0.tar.gz) = 175405 SHA256 (jackc-pgx-v4.11.0_GH0.tar.gz) = 0f4751015cafcd1eac6e4525c87ce6296f4394465b337bdc51ede8413de5942e SIZE (jackc-pgx-v4.11.0_GH0.tar.gz) = 116272 SHA256 (jackc-puddle-v1.1.3_GH0.tar.gz) = 6ce53fe368d6777b7aee47c2e2e0558d7089d08d23b311f4b84613ba08edc99b SIZE (jackc-puddle-v1.1.3_GH0.tar.gz) = 10317 SHA256 (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 2def0ee6f6b12b1efc0e3007d89f598608a072610e805c3655ea9d13c3ead49b SIZE (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 37184 SHA256 (nicksnyder-go-i18n-v2.1.2_GH0.tar.gz) = 4c1f8febe1ec7e36e0716c3a06c57a2b74980bfeceb4e898e4fdb8b602d87eba SIZE (nicksnyder-go-i18n-v2.1.2_GH0.tar.gz) = 40661 SHA256 (open-telemetry-opentelemetry-go-v0.19.0_GH0.tar.gz) = c807fabc0e8a2bbb7d8df83f278a83566eb06de869fce2ef1463aa265e4681b3 SIZE (open-telemetry-opentelemetry-go-v0.19.0_GH0.tar.gz) = 620253 SHA256 (pkg-errors-v0.9.1_GH0.tar.gz) = 56bfd893023daa498508bfe161de1be83299fcf15376035e7df79cbd7d6fa608 SIZE (pkg-errors-v0.9.1_GH0.tar.gz) = 13415 SHA256 (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 28f3dc1b5c0efd61203ab07233f774740d3bf08da4d8153fb5310db6cea0ebda SIZE (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 11398 SHA256 (prometheus-client_golang-v1.10.0_GH0.tar.gz) = e7305f84aa6553d9dd4bfd148d29289df36a9df82dae7be3c6eda62feb56f3d1 SIZE (prometheus-client_golang-v1.10.0_GH0.tar.gz) = 176316 SHA256 (prometheus-client_model-v0.2.0_GH0.tar.gz) = 4ab1be9cdfa702d7f49beeb09a256bcc6a2aad55e8a0a37e7732a46934264e12 SIZE (prometheus-client_model-v0.2.0_GH0.tar.gz) = 10986 SHA256 (prometheus-common-v0.18.0_GH0.tar.gz) = 64b0963add6f1945d8da40452d9bf796db263e4d8aba26cf17fdcc3f76b8f940 SIZE (prometheus-common-v0.18.0_GH0.tar.gz) = 123693 SHA256 (prometheus-procfs-v0.6.0_GH0.tar.gz) = 6ad7a23cf4db9fa5dbf2c5d8fbd0fbf5ffe48e3ddb7bf15f9359813d764ce73c SIZE (prometheus-procfs-v0.6.0_GH0.tar.gz) = 169898 SHA256 (protocolbuffers-protobuf-go-v1.25.0_GH0.tar.gz) = c1c04d6e36c0d0fb6f3374197f9025d7e6df13f38a974098be020617c00fbaf2 SIZE (protocolbuffers-protobuf-go-v1.25.0_GH0.tar.gz) = 1258804 SHA256 (stretchr-objx-v0.2.0_GH0.tar.gz) = be7dce02798cdc24cee6bd2d95bfcf6976b1521ef735349bf5e7dfe6d147746f SIZE (stretchr-objx-v0.2.0_GH0.tar.gz) = 79981 SHA256 (stretchr-testify-v1.7.0_GH0.tar.gz) = 560c0984072cb436b17bbce5699b205d5aa2beb58ef7a94530d7724b5739a8d6 SIZE (stretchr-testify-v1.7.0_GH0.tar.gz) = 91073 diff --git a/games/automuteus/files/automuteus.conf b/games/automuteus/files/automuteus.conf new file mode 100644 index 000000000000..9b6676037a15 --- /dev/null +++ b/games/automuteus/files/automuteus.conf @@ -0,0 +1,1622 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + deploy/sample.env at main · automuteus/deploy · GitHub + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + + + + + + + + + +
+ +
+ + + + + + + +
+ + + +
+ + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + +
+ + + + + + +
+ + +
+ + + + + + +Permalink + +
+ +
+
+ + + main + + + + +
+
+
+ Switch branches/tags + +
+ + + +
+ +
+ +
+ + +
+ +
+ + + + + + + + + + + + + + + + +
+ + +
+
+
+
+ +
+ +
+ + + Go to file + + +
+ + + + + +
+
+
+ + + + + + + + + +
+ +
+
+
 
+
+ +
+
 
+ Cannot retrieve contributors at this time +
+
+ + + + + + + + +
+ +
+ + +
+ + 46 lines (41 sloc) + + 1.84 KB +
+ + + +
+ +
+
+ + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
# Please refer to the latest stable versions of Galactus and AutoMuteUs when specifying these versions.
# Note, using versions that are not SemVer format (x.y.z) is NOT recommended, as these can be experimental or unsupported
AUTOMUTEUS_TAG=
GALACTUS_TAG=
+
# Automuteus: https://github.com/automuteus/automuteus/releases
# or https://hub.docker.com/r/automuteus/automuteus/tags
# Galactus: https://github.com/automuteus/galactus/releases
# or https://hub.docker.com/r/automuteus/galactus/tags
+
# change these, but see comment block down below about HOST/PORT
DISCORD_BOT_TOKEN=
GALACTUS_HOST=
GALACTUS_EXTERNAL_PORT=
# GALACTUS_HOST can include the port or not. If you don't include the port,
# it will default to :80/:443 depending on http:// v https://
# **Make sure that GALACTUS_EXTERNAL_PORT matches the Port for the above host, UNLESS you use a reverse proxy/nginx!!!**
# Ex: if GALACTUS_HOST=http://localhost, then GALACTUS_EXTERNAL_PORT should be 80 (HTTP)
# Ex: if GALACTUS_HOST=https://localhost, then GALACTUS_EXTERNAL_PORT should be 443 (HTTPS)
# Ex: if GALACTUS_HOST=http://localhost:8123, then GALACTUS_EXTERNAL_PORT should be 8123
# If you use a reverse proxy, then GALACTUS_HOST should have the port of your reverse proxy, and it should proxy to the
# GALACTUS_EXTERNAL_PORT (ex 443 -> 8123)
+
# recommend changing these to something more secure
POSTGRES_USER=postgres
POSTGRES_PASS=putsomesecretpasswordhere
+
# Optional, leave alone by default
EMOJI_GUILD_ID=
BASE_MAP_URL=
# comma-separated
WORKER_BOT_TOKENS=
CAPTURE_TIMEOUT=
AUTOMUTEUS_LISTENING=
AUTOMUTEUS_GLOBAL_PREFIX=
# comma-separated
SLASH_COMMAND_GUILD_IDS=
STOP_GRACE_PERIOD=
+
# DO NOT change these unless you really know what you're doing
BROKER_PORT=8123
GALACTUS_PORT=5858
GALACTUS_REDIS_ADDR=redis:6379
AUTOMUTEUS_REDIS_ADDR=redis:6379
GALACTUS_ADDR=http://galactus:5858
POSTGRES_ADDR=postgres:5432
+
+ + + +
+ +
+ + + + +
+ + +
+ + +
+
+ + +
+ +
+ + +
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + diff --git a/games/automuteus/files/automuteus.in b/games/automuteus/files/automuteus.in index f5113eb34fd1..c01b9c25fdac 100644 --- a/games/automuteus/files/automuteus.in +++ b/games/automuteus/files/automuteus.in @@ -1,43 +1,43 @@ #!/bin/sh # PROVIDE: automuteus # REQUIRE: DAEMON FILESYSTEMS NETWORKING # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable automuteus. # #automuteus_enable="YES" . /etc/rc.subr name="automuteus" rcvar="automuteus_enable" load_rc_config $name : ${automuteus_enable:="NO"} -: ${automuteus_conf:="%%PREFIX%%/etc/automuteus/config.txt"} +: ${automuteus_conf:="%%PREFIX%%/etc/automuteus/automuteus.conf"} : ${automuteus_log:="/var/log/automuteus"} command="%%PREFIX%%/bin/automuteus" pidfile=/var/run/${name}.pid start_cmd="automuteus_start" stop_cmd="automuteus_stop" automuteus_start() { check_startmsgs && echo "Starting ${name}." + source ${automuteus_conf} /usr/sbin/daemon \ -p ${pidfile} \ /usr/bin/env \ - "CONFIG_PATH=${automuteus_conf}" \ "LOG_PATH=${automuteus_log}" \ ${command} } automuteus_stop() { kill `cat ${pidfile}` } run_rc_command "$1" diff --git a/games/automuteus/files/config.txt b/games/automuteus/files/config.txt deleted file mode 100644 index d816aa9a7ba7..000000000000 --- a/games/automuteus/files/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -DISCORD_BOT_TOKEN= -BOT_LANG=en diff --git a/games/automuteus/files/pkg-message.in b/games/automuteus/files/pkg-message.in index 105a48914ef5..5809dae875eb 100644 --- a/games/automuteus/files/pkg-message.in +++ b/games/automuteus/files/pkg-message.in @@ -1,16 +1,16 @@ [ { type: install message: <