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 438671382C5 for ; Mon, 26 Apr 2021 15:37:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C328E0848; Mon, 26 Apr 2021 15:37:38 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 750A6E0848 for ; Mon, 26 Apr 2021 15:37:38 +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 5B88F341452 for ; Mon, 26 Apr 2021 15:37:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 15FD4478 for ; Mon, 26 Apr 2021 15:37:35 +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: <1619451436.62d86a40c64b328d2f153250440bb2e1827fce63.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.1.ebuild X-VCS-Directories: net-irc/oragono/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 62d86a40c64b328d2f153250440bb2e1827fce63 X-VCS-Branch: master Date: Mon, 26 Apr 2021 15:37:35 +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: 60b1d4c4-903a-42aa-8159-fc7e5b504e41 X-Archives-Hash: 89a21133d8e1cbbcc2a8a928263ed8ee commit: 62d86a40c64b328d2f153250440bb2e1827fce63 Author: Sam James gentoo org> AuthorDate: Mon Apr 26 14:24:29 2021 +0000 Commit: Sam James gentoo org> CommitDate: Mon Apr 26 15:37:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62d86a40 net-irc/oragono: add 2.6.1 Bug: https://bugs.gentoo.org/785838 Signed-off-by: Sam James gentoo.org> net-irc/oragono/Manifest | 1 + net-irc/oragono/oragono-2.6.1.ebuild | 68 ++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/net-irc/oragono/Manifest b/net-irc/oragono/Manifest index 80def38b708..467aa83f012 100644 --- a/net-irc/oragono/Manifest +++ b/net-irc/oragono/Manifest @@ -1,2 +1,3 @@ DIST oragono-2.5.1.tar.gz 3079990 BLAKE2B 0b2c0e330cac974e311ff711b28e7f5cc5548355bcafb14fc903a63e0442e513a890f4ce890c49316603ba1dc7214d8953b3fc62f2aa40fb34e787348900de81 SHA512 684b697a97fb0274e35f8ae491841e5f8c564f778ff19294ff2353e75416e7283295668bff5db57e4950cb991ead5215c501ba1a2c517a12bbbbe85efe983bea DIST oragono-2.6.0.tar.gz 3099379 BLAKE2B c26a99669f74192d9b9b31609e13ce4f4c59c6e1d6eb0dc254d6999f974721c747ccdfcb90cbaa0d8c23283d852a483af7c9cda52ca07bd8d0fa9a4d1a11e315 SHA512 a2e0603318d18b6470f6eb6cbf381f9e56989ce50cab596c4181af63cef135022547cc641e195419bea00e2768ee30b9fa0db76a897b277291595d43ff117788 +DIST oragono-2.6.1.tar.gz 3099750 BLAKE2B d07a699fd2330e270f623cd452fa5cd6833ad541f4be76bdea0fed85ca6947f35a93876f684cd611f40d1482192cd3fcc4d8ac22f5c08dce5098ca2ad6a913fd SHA512 ce7e28f71dbd99fd304cfbf343aa3a494ceef8b3680691982f1caa16b0c1162f354eceacc3deab6d8c1a9b9d6d5fa009953f2735ab87991801ec2e6958b8fb9b diff --git a/net-irc/oragono/oragono-2.6.1.ebuild b/net-irc/oragono/oragono-2.6.1.ebuild new file mode 100644 index 00000000000..2f2b1a51efd --- /dev/null +++ b/net-irc/oragono/oragono-2.6.1.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 +}