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 85E7715800F for ; Mon, 23 Jan 2023 03:17:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B9892E07E6; Mon, 23 Jan 2023 03:17: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 9C620E07E6 for ; Mon, 23 Jan 2023 03:17: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 BB69E340B25 for ; Mon, 23 Jan 2023 03:17:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D3994C8 for ; Mon, 23 Jan 2023 03:17:22 +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: <1674443788.8b7d8f73227358965f743bfaccd12a13457128de.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.11.1.ebuild X-VCS-Directories: net-irc/ergo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8b7d8f73227358965f743bfaccd12a13457128de X-VCS-Branch: master Date: Mon, 23 Jan 2023 03:17:22 +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: c666e5c3-2d62-4cb6-8be9-484301b4868c X-Archives-Hash: 604c193d50973b8478ec544e55df16c2 commit: 8b7d8f73227358965f743bfaccd12a13457128de Author: Sam James gentoo org> AuthorDate: Mon Jan 23 03:16:28 2023 +0000 Commit: Sam James gentoo org> CommitDate: Mon Jan 23 03:16:28 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b7d8f73 net-irc/ergo: add 2.11.1 Bug: https://bugs.gentoo.org/891803 Signed-off-by: Sam James gentoo.org> net-irc/ergo/Manifest | 1 + net-irc/ergo/ergo-2.11.1.ebuild | 69 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/net-irc/ergo/Manifest b/net-irc/ergo/Manifest index 36d06d8c10b1..7c915cbb97a6 100644 --- a/net-irc/ergo/Manifest +++ b/net-irc/ergo/Manifest @@ -1,2 +1,3 @@ DIST ergo-2.10.0.tar.gz 3256716 BLAKE2B 72f1d6464ee434508b9944a9923435cda01e97c8b542c7c77c74562309a6b9ed727b5ae7c444f6e95517482fd87f34623d477e14c1dfbe323a7d81ace5c3e111 SHA512 952ef22b28d8de0814f04ece55b8ff88f405f184d8ecfce45c4af63e8c53153786d0b685f9bfff7cdb53ad369914f07069436f43b5ab65816bb7410b02f34bf8 DIST ergo-2.11.0.tar.gz 3264162 BLAKE2B af5020469b7a7d7194cdf4e3f82ded906b811d754fac08bdfc0f8379b907069b92260701dd2e919a196b2ab655a32f9b9e3a21bfc8d363790d49cf32473a6c60 SHA512 ccdbc391e280ab25efd45752b84223213aceb3f3045307209da7a02b3b09df571242ad92d11786693fc208427a2d1ca0a3d6d470404cfb83b0acf40ca343441d +DIST ergo-2.11.1.tar.gz 3264192 BLAKE2B 9a207fc808277275c43c4c70aec748efe0a5d3a21f4be195885b7058798df8b0d47b52a6b52708f3e04c5aa79faec2fd3f41a0da625fd55fff45a3b12cdb90ba SHA512 9808ecc28dc25e60b942bc74f8fbe4f07b7fda0641c3dd6fc681214e7e2b5fed7fa61f85e2ac0de3c08dc91a54f571e2741ab1b2f6597a2b53405211f327ad81 diff --git a/net-irc/ergo/ergo-2.11.1.ebuild b/net-irc/ergo/ergo-2.11.1.ebuild new file mode 100644 index 000000000000..39327ace6602 --- /dev/null +++ b/net-irc/ergo/ergo-2.11.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module 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 + +# We may even want to package irctest in future? + +RDEPEND="acct-user/oragono + acct-group/oragono" + +DOCS=( README.md docs/MANUAL.md docs/USERGUIDE.md ) + +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 +}