From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7248D1581C1 for ; Wed, 17 Jul 2024 05:54:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E95742BC0C0; Wed, 17 Jul 2024 05:54:24 +0000 (UTC) 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 pigeon.gentoo.org (Postfix) with ESMTPS id C773D2BC0C0 for ; Wed, 17 Jul 2024 05:54:24 +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 E0C94342F9A for ; Wed, 17 Jul 2024 05:54:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 276141E3E for ; Wed, 17 Jul 2024 05:54:21 +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: <1721195585.7a17ef4dd4007cbea04835f686476be4b740977c.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.13.1.ebuild X-VCS-Directories: net-irc/ergo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7a17ef4dd4007cbea04835f686476be4b740977c X-VCS-Branch: master Date: Wed, 17 Jul 2024 05:54:21 +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: 400dfc0a-db5c-4a23-855f-09b2cce2fdf2 X-Archives-Hash: ba426e63db391e9dd82b31988433e700 commit: 7a17ef4dd4007cbea04835f686476be4b740977c Author: Sam James gentoo org> AuthorDate: Wed Jul 17 05:35:43 2024 +0000 Commit: Sam James gentoo org> CommitDate: Wed Jul 17 05:53:05 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a17ef4d net-irc/ergo: add 2.13.1 Bug: https://bugs.gentoo.org/936197 Signed-off-by: Sam James gentoo.org> net-irc/ergo/Manifest | 1 + net-irc/ergo/ergo-2.13.1.ebuild | 78 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/net-irc/ergo/Manifest b/net-irc/ergo/Manifest index 8e25cc27959c..de7892a2864f 100644 --- a/net-irc/ergo/Manifest +++ b/net-irc/ergo/Manifest @@ -1 +1,2 @@ DIST ergo-2.13.0.tar.gz 3668775 BLAKE2B 81f1f75e359a7796a434e1f556d563223ac892ac190e90b50b8d81367f6c1d2bf73139a8b29f974195d882dba7f569a963dde28a30bd10e55fe018ae524be70f SHA512 870e852e1d4a9bbeb9485de33bcf027bfbf92f7fffa125640cbb28798441e52c334a5e14b3a5ba009094eb8f31d24f664601394b1d22fe30828116c55da28826 +DIST ergo-2.13.1.tar.gz 3668644 BLAKE2B b22d56b3425b57c987d87240e1a6b5dcb409ab2177d3553f3fd2d7ddf615dc49ea78d35402bbe20f6f97aa24acd81fae88bea3f99f3f377c243ef7e992ecd511 SHA512 dcaec6e9c9f8871633862740980eca7e07f92b0d41c1d8becad09fe20f3ab9c5920a966286b577523e6fdc683018bec1938ed5237eacbe922b70cbfb19ed2bca diff --git a/net-irc/ergo/ergo-2.13.1.ebuild b/net-irc/ergo/ergo-2.13.1.ebuild new file mode 100644 index 000000000000..95f83d85f0ca --- /dev/null +++ b/net-irc/ergo/ergo-2.13.1.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 +}