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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 758B21382C5 for ; Sun, 18 Apr 2021 23:05:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B515E07A7; Sun, 18 Apr 2021 23:05:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 58AB1E07A7 for ; Sun, 18 Apr 2021 23:05:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0AEB2335C30 for ; Sun, 18 Apr 2021 23:05:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B4AE0634 for ; Sun, 18 Apr 2021 23:05:33 +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: <1618787117.604f00925c54bf3ea89974e2abf32e6ed720c8c0.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/oragono/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-irc/oragono/Manifest net-irc/oragono/oragono-2.6.0.ebuild X-VCS-Directories: net-irc/oragono/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 604f00925c54bf3ea89974e2abf32e6ed720c8c0 X-VCS-Branch: master Date: Sun, 18 Apr 2021 23:05:33 +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: b59f2501-b629-4b7a-ad6c-2f1c77c3cb63 X-Archives-Hash: ca0820a2ac65c966321d4eee2e8d91d7 commit: 604f00925c54bf3ea89974e2abf32e6ed720c8c0 Author: Sam James gentoo org> AuthorDate: Sun Apr 18 21:42:01 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sun Apr 18 23:05:17 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=604f0092 net-irc/oragono: add 2.6.0 Signed-off-by: Sam James gentoo.org> net-irc/oragono/Manifest | 1 + net-irc/oragono/oragono-2.6.0.ebuild | 68 ++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/net-irc/oragono/Manifest b/net-irc/oragono/Manifest index 90d1a81846c..80def38b708 100644 --- a/net-irc/oragono/Manifest +++ b/net-irc/oragono/Manifest @@ -1 +1,2 @@ DIST oragono-2.5.1.tar.gz 3079990 BLAKE2B 0b2c0e330cac974e311ff711b28e7f5cc5548355bcafb14fc903a63e0442e513a890f4ce890c49316603ba1dc7214d8953b3fc62f2aa40fb34e787348900de81 SHA512 684b697a97fb0274e35f8ae491841e5f8c564f778ff19294ff2353e75416e7283295668bff5db57e4950cb991ead5215c501ba1a2c517a12bbbbe85efe983bea +DIST oragono-2.6.0.tar.gz 3099379 BLAKE2B c26a99669f74192d9b9b31609e13ce4f4c59c6e1d6eb0dc254d6999f974721c747ccdfcb90cbaa0d8c23283d852a483af7c9cda52ca07bd8d0fa9a4d1a11e315 SHA512 a2e0603318d18b6470f6eb6cbf381f9e56989ce50cab596c4181af63cef135022547cc641e195419bea00e2768ee30b9fa0db76a897b277291595d43ff117788 diff --git a/net-irc/oragono/oragono-2.6.0.ebuild b/net-irc/oragono/oragono-2.6.0.ebuild new file mode 100644 index 00000000000..2f2b1a51efd --- /dev/null +++ b/net-irc/oragono/oragono-2.6.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit go-module systemd + +DESCRIPTION="A modern IRC server written in Go" +HOMEPAGE="https://oragono.io/ https://github.com/oragono/oragono" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" + +# No test files are included in release tarballs +# We may even want to package irctest +RESTRICT="test" + +BDEPEND=">=dev-lang/go-1.14" +RDEPEND=" + acct-user/oragono + acct-group/oragono +" + +DOCS=( README.md docs/MANUAL.md docs/USERGUIDE.md ) + +src_prepare() { + default + + # Minor fiddling with paths + sed -i \ + -e 's:/home/oragono/oragono:/usr/bin/oragono:' \ + -e 's:/home/oragono:/var/lib/oragono:' \ + -e 's:/var/lib/oragono/ircd.yaml:/etc/oragono/ircd.yaml:' \ + distrib/systemd/oragono.service || die +} + +src_compile() { + go build -mod=vendor . || die +} + +src_install() { + einstalldocs + + dobin oragono + + insinto /etc/oragono + doins default.yaml + + newinitd "${FILESDIR}"/oragono.initd oragono + newconfd "${FILESDIR}"/oragono.confd oragono + + keepdir /var/lib/oragono + fowners oragono:oragono /var/lib/oragono + + insinto /var/lib/oragono + doins -r languages/ + + systemd_dounit distrib/systemd/oragono.service +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + elog "Please copy the example config in ${EROOT}/etc/oragono:" + elog "e.g. cp ${EROOT}/etc/oragono/default.yaml ${EROOT}/etc/oragono/ircd.yaml" + fi +}