From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2B8761582EF for ; Sun, 09 Feb 2025 07:30:25 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 16874343101 for ; Sun, 09 Feb 2025 07:30:25 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id EE2BB110475; Sun, 09 Feb 2025 07:30:15 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id E70F7110475 for ; Sun, 09 Feb 2025 07:30:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9DFD83430C8 for ; Sun, 09 Feb 2025 07:30:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BD98026E4 for ; Sun, 09 Feb 2025 07:30:12 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1739086181.d443f1ff373da5390ed4fd6da4b0b307516c5055.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/ergo/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-irc/ergo/Manifest net-irc/ergo/ergo-2.15.0.ebuild X-VCS-Directories: net-irc/ergo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d443f1ff373da5390ed4fd6da4b0b307516c5055 X-VCS-Branch: master Date: Sun, 09 Feb 2025 07:30:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 65322c61-12de-44c9-8b49-220dc3cd9932 X-Archives-Hash: 6bc75a655a9b8825d6a9f305d2c326f1 commit: d443f1ff373da5390ed4fd6da4b0b307516c5055 Author: Sam James gentoo org> AuthorDate: Sun Feb 9 07:29:41 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sun Feb 9 07:29:41 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d443f1ff net-irc/ergo: add 2.15.0 Signed-off-by: Sam James gentoo.org> net-irc/ergo/Manifest | 1 + net-irc/ergo/ergo-2.15.0.ebuild | 78 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/net-irc/ergo/Manifest b/net-irc/ergo/Manifest index 59769d0184dc..c1bd5a69e3b4 100644 --- a/net-irc/ergo/Manifest +++ b/net-irc/ergo/Manifest @@ -1 +1,2 @@ DIST ergo-2.14.0.tar.gz 3691946 BLAKE2B f3396dbfa28b575cf280178ecc819f9ee1766ca350894e5d4807b788618258ed1f1547e20adb09e8b9bcbf3852e8cb61b86833f6cebdc490c4a424e59f6eb1af SHA512 b0f2518085c85ed8a5e558535b55d5444010f47bec4f050b980e4c45b3469b84616cdbb26e46148ac72d94f8acbf73c0bc157c5f1a5af99c5e6ff375ffe1dbdf +DIST ergo-2.15.0.tar.gz 3751363 BLAKE2B 1b093f0db07056c179e30c5f3cef3d5ea924aed5d01ce49a47991e294c3591a438eb273c0f332b29861b9f0ae2c19c7f32e86b533e3125778d95e7b3b5d5701e SHA512 9e74fa149426c8d42ccb02ce8220110f5465ff6a49a58b70f0ccefdfabebbfd5a7db01dbfe10da1cb0cd751c6c01fd13af0102b99450c9fcc08bb64be732b964 diff --git a/net-irc/ergo/ergo-2.15.0.ebuild b/net-irc/ergo/ergo-2.15.0.ebuild new file mode 100644 index 000000000000..70131f2ba190 --- /dev/null +++ b/net-irc/ergo/ergo-2.15.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2025 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 +}