summaryrefslogtreecommitdiff
path: root/net-irc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-12 12:14:42 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-12 12:14:42 +0100
commit3a0e100e02e1c6c2818268f57eae51095cee35af (patch)
treefdc72a395f9087c6e6dfa08b8a1791f65c5af170 /net-irc
parentb71bf04bdb3f690dbd36fcda860a5a68c1988f6e (diff)
gentoo auto-resync : 12:10:2023 - 12:14:42
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/Manifest.gzbin8231 -> 8228 bytes
-rw-r--r--net-irc/ergo/Manifest2
-rw-r--r--net-irc/ergo/ergo-2.12.0.ebuild78
3 files changed, 80 insertions, 0 deletions
diff --git a/net-irc/Manifest.gz b/net-irc/Manifest.gz
index 52516fc7207c..26ef7777cb40 100644
--- a/net-irc/Manifest.gz
+++ b/net-irc/Manifest.gz
Binary files differ
diff --git a/net-irc/ergo/Manifest b/net-irc/ergo/Manifest
index 7a7f2253e23a..ffafa9f6c20f 100644
--- a/net-irc/ergo/Manifest
+++ b/net-irc/ergo/Manifest
@@ -1,3 +1,5 @@
DIST ergo-2.11.1.tar.gz 3264192 BLAKE2B 9a207fc808277275c43c4c70aec748efe0a5d3a21f4be195885b7058798df8b0d47b52a6b52708f3e04c5aa79faec2fd3f41a0da625fd55fff45a3b12cdb90ba SHA512 9808ecc28dc25e60b942bc74f8fbe4f07b7fda0641c3dd6fc681214e7e2b5fed7fa61f85e2ac0de3c08dc91a54f571e2741ab1b2f6597a2b53405211f327ad81
+DIST ergo-2.12.0.tar.gz 3461568 BLAKE2B 8710ebae2cf840f8ea730fc4c9910d738702dfc55e2f68433e6ffdd7d9647ba081cb5d47ee7fd1e76d8a06017cfd73c377ea10510f37817c6ca63bdc81a33832 SHA512 932179ec05b0c7e5868bb41ebbfa9cc57b8eb8f6e9a0aceaf12081b4b42c6cfa996142d1f9e52c39d2b674d92b409ef8d3792f164281e6bf3f3a5b97def1d3ac
EBUILD ergo-2.11.1.ebuild 1564 BLAKE2B 61870557a004f25d957d9aed7d284d1103c7d1097e89c9564d7961c7d2c9d5f2ddf098868878adb6859819d34c57d381ac4750c098d9b8489bf3f97d1edf9d05 SHA512 88eff6bcdb7b830fc5214b7c4f1717791fe1b441335d689c9b73601abef3075ac22b2c1afc77742f9bd821571c7b0affab8c78695b93ff7a4e4121fdd65a3a61
+EBUILD ergo-2.12.0.ebuild 1744 BLAKE2B f548e8556b781b58b84ea242c658d5f699c94257340d6d760c0bb20b6fe407f6406d929c3c989db980ab2a4d8af4296af2ee2ed6e8c9404388d6efb55be49ad1 SHA512 969968a7f37b7448d086cc2546b1462ae86880cd1dbeffb3c631f8d09c892cd3334351729eeabac11877ba5185baaeef2b7537da8802a46dea1906ba80581fe4
MISC metadata.xml 320 BLAKE2B 3bff5defc5150caa0cae2776e69f9070d1896c9cab8e5e0fc1afb94606a1c0e0d3ab951b4ea1076929221bcfd0576540f1b1768c1f9d3ad68161d9540c6785e3 SHA512 b634cbc9628c66cfc5b2983a6da5b2322bfb5c755893e1c15aab203f6e94b15ea5be2494b0370e8b7fd4950d0d1059e60939bd945620aa0548ef665263a5672a
diff --git a/net-irc/ergo/ergo-2.12.0.ebuild b/net-irc/ergo/ergo-2.12.0.ebuild
new file mode 100644
index 000000000000..749773f6dd84
--- /dev/null
+++ b/net-irc/ergo/ergo-2.12.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit go-module python-any-r1 systemd
+
+DESCRIPTION="A modern IRC server written in Go"
+HOMEPAGE="https://ergo.chat/ https://github.com/ergochat/ergo"
+SRC_URI="https://github.com/ergochat/ergo/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/${P/_/-}
+
+LICENSE="Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0"
+SLOT="0"
+if [[ ${PV} != *_rc* ]] ; then
+ KEYWORDS="~amd64 ~arm ~arm64"
+fi
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+# We may even want to package irctest in future?
+RDEPEND="
+ acct-user/oragono
+ acct-group/oragono
+"
+BDEPEND="test? ( ${PYTHON_DEPS} )"
+
+DOCS=( README.md docs/MANUAL.md docs/USERGUIDE.md )
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ sed -i -e 's:ERGO_USERNAME="ergo":ERGO_USERNAME="oragono":' distrib/openrc/ergo.confd || die
+
+ # Minor fiddling with paths
+ sed -i \
+ -e 's:/home/ergo/ergo:/usr/bin/ergo:' \
+ -e 's:/home/ergo:/var/lib/ergo:' \
+ -e 's:/var/lib/ergo/ircd.yaml:/etc/ergo/ircd.yaml:' \
+ -e 's:User=ergo:User=oragono:' \
+ distrib/systemd/ergo.service || die
+}
+
+src_compile() {
+ ego build .
+}
+
+src_install() {
+ einstalldocs
+
+ dobin ergo
+
+ insinto /etc/ergo
+ doins default.yaml
+
+ newinitd distrib/openrc/ergo.initd ergo
+ newconfd distrib/openrc/ergo.confd ergo
+
+ keepdir /var/lib/ergo
+ fowners oragono:oragono /var/lib/ergo
+
+ insinto /var/lib/ergo
+ doins -r languages/
+
+ systemd_dounit distrib/systemd/ergo.service
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]] ; then
+ elog "Please copy the example config in ${EROOT}/etc/ergo:"
+ elog "e.g. cp ${EROOT}/etc/ergo/default.yaml ${EROOT}/etc/ergo/ircd.yaml"
+ fi
+}