diff options
author | Sam James <sam@gentoo.org> | 2022-12-18 06:10:41 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-18 06:10:41 +0000 |
commit | cc76c7f847c050aa95b093da90eaf0d003ac19c2 (patch) | |
tree | aa3293b8442d5e08c6f6068b6543bd1418246562 /net-irc/ergo | |
parent | dev-util/sh: add 3.6.0 (diff) | |
download | gentoo-cc76c7f847c050aa95b093da90eaf0d003ac19c2.tar.gz gentoo-cc76c7f847c050aa95b093da90eaf0d003ac19c2.tar.bz2 gentoo-cc76c7f847c050aa95b093da90eaf0d003ac19c2.zip |
net-irc/ergo: add 2.11.0_rc1 (unkeyworded)
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-irc/ergo')
-rw-r--r-- | net-irc/ergo/Manifest | 1 | ||||
-rw-r--r-- | net-irc/ergo/ergo-2.11.0_rc1.ebuild | 69 |
2 files changed, 70 insertions, 0 deletions
diff --git a/net-irc/ergo/Manifest b/net-irc/ergo/Manifest index 6a7eff9494a6..2c6357982980 100644 --- a/net-irc/ergo/Manifest +++ b/net-irc/ergo/Manifest @@ -1 +1,2 @@ DIST ergo-2.10.0.tar.gz 3256716 BLAKE2B 72f1d6464ee434508b9944a9923435cda01e97c8b542c7c77c74562309a6b9ed727b5ae7c444f6e95517482fd87f34623d477e14c1dfbe323a7d81ace5c3e111 SHA512 952ef22b28d8de0814f04ece55b8ff88f405f184d8ecfce45c4af63e8c53153786d0b685f9bfff7cdb53ad369914f07069436f43b5ab65816bb7410b02f34bf8 +DIST ergo-2.11.0_rc1.tar.gz 3267317 BLAKE2B a8dff743a691d425f78420043c8b5b32efce6a5e606784c4110e64ff8b2fa99772ced42d0981a0c6f9f7669f3d0ef9d110915917e4ec4b072eecf449eaf4b046 SHA512 74cbececd9bf5e9e4701900ca8d720bcb2c689c545fadad70215bdf4844685c59c46e4ad758fc46eeb6735b812807e81125822ac5219b11b9b76ddf306a14869 diff --git a/net-irc/ergo/ergo-2.11.0_rc1.ebuild b/net-irc/ergo/ergo-2.11.0_rc1.ebuild new file mode 100644 index 000000000000..975e100d40f3 --- /dev/null +++ b/net-irc/ergo/ergo-2.11.0_rc1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2022 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 +} |