summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-07-17 06:37:15 +0100
committerSam James <sam@gentoo.org>2024-07-17 06:53:06 +0100
commit242d376c616625cdaa747d0fdc6c2757814852c0 (patch)
tree65d5ec65351ffe2f9a524c537a00df7e5029c859 /net-irc
parentnet-irc/ergo: add 2.13.1 (diff)
downloadgentoo-242d376c616625cdaa747d0fdc6c2757814852c0.tar.gz
gentoo-242d376c616625cdaa747d0fdc6c2757814852c0.tar.bz2
gentoo-242d376c616625cdaa747d0fdc6c2757814852c0.zip
net-irc/ergo: add 2.14.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/ergo/Manifest1
-rw-r--r--net-irc/ergo/ergo-2.14.0.ebuild78
2 files changed, 79 insertions, 0 deletions
diff --git a/net-irc/ergo/Manifest b/net-irc/ergo/Manifest
index de7892a2864f..39c78e846533 100644
--- a/net-irc/ergo/Manifest
+++ b/net-irc/ergo/Manifest
@@ -1,2 +1,3 @@
DIST ergo-2.13.0.tar.gz 3668775 BLAKE2B 81f1f75e359a7796a434e1f556d563223ac892ac190e90b50b8d81367f6c1d2bf73139a8b29f974195d882dba7f569a963dde28a30bd10e55fe018ae524be70f SHA512 870e852e1d4a9bbeb9485de33bcf027bfbf92f7fffa125640cbb28798441e52c334a5e14b3a5ba009094eb8f31d24f664601394b1d22fe30828116c55da28826
DIST ergo-2.13.1.tar.gz 3668644 BLAKE2B b22d56b3425b57c987d87240e1a6b5dcb409ab2177d3553f3fd2d7ddf615dc49ea78d35402bbe20f6f97aa24acd81fae88bea3f99f3f377c243ef7e992ecd511 SHA512 dcaec6e9c9f8871633862740980eca7e07f92b0d41c1d8becad09fe20f3ab9c5920a966286b577523e6fdc683018bec1938ed5237eacbe922b70cbfb19ed2bca
+DIST ergo-2.14.0.tar.gz 3691946 BLAKE2B f3396dbfa28b575cf280178ecc819f9ee1766ca350894e5d4807b788618258ed1f1547e20adb09e8b9bcbf3852e8cb61b86833f6cebdc490c4a424e59f6eb1af SHA512 b0f2518085c85ed8a5e558535b55d5444010f47bec4f050b980e4c45b3469b84616cdbb26e46148ac72d94f8acbf73c0bc157c5f1a5af99c5e6ff375ffe1dbdf
diff --git a/net-irc/ergo/ergo-2.14.0.ebuild b/net-irc/ergo/ergo-2.14.0.ebuild
new file mode 100644
index 000000000000..95f83d85f0ca
--- /dev/null
+++ b/net-irc/ergo/ergo-2.14.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+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
+}