Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/ergo/
Date: Sun, 09 Jan 2022 07:34:39
Message-Id: 1641713669.5fc2acbd30ec0188a7c794a031dfcb74d54fd8ac.sam@gentoo
1 commit: 5fc2acbd30ec0188a7c794a031dfcb74d54fd8ac
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 9 07:33:28 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 9 07:34:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fc2acbd
7
8 net-irc/ergo: add 2.9.0
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-irc/ergo/Manifest | 1 +
13 net-irc/ergo/ergo-2.9.0.ebuild | 69 ++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 70 insertions(+)
15
16 diff --git a/net-irc/ergo/Manifest b/net-irc/ergo/Manifest
17 index 5fd16b1a9a7b..6868565b86f0 100644
18 --- a/net-irc/ergo/Manifest
19 +++ b/net-irc/ergo/Manifest
20 @@ -1,2 +1,3 @@
21 DIST ergo-2.7.0.tar.gz 3115191 BLAKE2B 13bc6f4ddb26369912ed28205f4cee1f39d483481ffe5c6b87db1b2a49c0357d639c35d72d667bd63e2d1feec4cca4d0fb696e3edc2941be8f1bea8c5730adb7 SHA512 ac1171c68c07d0e1f5204ba14acc3eff7eb367e1a85cdeef79fb91bb9acc98109507a34a788cf99cd32125fb1a0f0b5b5c8afbb46b631d5d0da8dc70ab5c651c
22 DIST ergo-2.8.0.tar.gz 3150109 BLAKE2B 07b725e9db49f101544a7f7cbbb197c77187f35c59e07055ff46a6ffb0a62cb250915c36209fce453e3158000f8b0eeb16189303b5dc78fda3daf6c2e8a35b28 SHA512 4f3c33286be91cf12cf6cc6b56598bf6adf60c88cd22290d3221457e4d08d7957b1922a18b151726a341825a65168daf1174c622c54268c5aa744ed9c9a0326b
23 +DIST ergo-2.9.0.tar.gz 3248868 BLAKE2B 5834a0708be1bd595f1c089dcb6d3fae2ca6b7315266cc9296ee28ad5524b0ecc8f8943fcbe3ff1c134cb94fe9a215aa05a13808f1db16e13b443442cdcc31cb SHA512 802bac210987e8671965537511db76bb8ed0f12b38d244c187030c380467f345ce72666c86a6c7c2b98a0b9fb99db3c66a7af31176d90e1dd7b9e9b52a27b59d
24
25 diff --git a/net-irc/ergo/ergo-2.9.0.ebuild b/net-irc/ergo/ergo-2.9.0.ebuild
26 new file mode 100644
27 index 000000000000..f6c97f4a9b0c
28 --- /dev/null
29 +++ b/net-irc/ergo/ergo-2.9.0.ebuild
30 @@ -0,0 +1,69 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit go-module systemd
37 +
38 +DESCRIPTION="A modern IRC server written in Go"
39 +HOMEPAGE="https://ergo.chat/ https://github.com/ergochat/ergo"
40 +SRC_URI="https://github.com/ergochat/ergo/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0"
43 +SLOT="0"
44 +KEYWORDS="~amd64"
45 +
46 +# No test files are included in release tarballs
47 +# We may even want to package irctest
48 +RESTRICT="test"
49 +
50 +BDEPEND=">=dev-lang/go-1.14"
51 +RDEPEND="
52 + acct-user/oragono
53 + acct-group/oragono
54 +"
55 +
56 +DOCS=( README.md docs/MANUAL.md docs/USERGUIDE.md )
57 +
58 +src_prepare() {
59 + default
60 +
61 + # Minor fiddling with paths
62 + sed -i \
63 + -e 's:/home/ergo/ergo:/usr/bin/ergo:' \
64 + -e 's:/home/ergo:/var/lib/ergo:' \
65 + -e 's:/var/lib/ergo/ircd.yaml:/etc/ergo/ircd.yaml:' \
66 + -e 's:User=ergo:User=oragono:' \
67 + distrib/systemd/ergo.service || die
68 +}
69 +
70 +src_compile() {
71 + go build -mod=vendor . || die
72 +}
73 +
74 +src_install() {
75 + einstalldocs
76 +
77 + dobin ergo
78 +
79 + insinto /etc/ergo
80 + doins default.yaml
81 +
82 + newinitd "${FILESDIR}"/ergo.initd ergo
83 + newconfd "${FILESDIR}"/ergo.confd ergo
84 +
85 + keepdir /var/lib/ergo
86 + fowners oragono:oragono /var/lib/ergo
87 +
88 + insinto /var/lib/ergo
89 + doins -r languages/
90 +
91 + systemd_dounit distrib/systemd/ergo.service
92 +}
93 +
94 +pkg_postinst() {
95 + if [[ -z "${REPLACING_VERSIONS}" ]] ; then
96 + elog "Please copy the example config in ${EROOT}/etc/ergo:"
97 + elog "e.g. cp ${EROOT}/etc/ergo/default.yaml ${EROOT}/etc/ergo/ircd.yaml"
98 + fi
99 +}