diff options
author | Sam James <sam@gentoo.org> | 2021-04-18 21:42:01 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-18 23:05:17 +0000 |
commit | 604f00925c54bf3ea89974e2abf32e6ed720c8c0 (patch) | |
tree | 0bf4bc04a8ec1878146f0cc49819f6da6ae02185 /net-irc | |
parent | net-misc/modemmanager: Version bump to 1.16.2 (diff) | |
download | gentoo-604f00925c54bf3ea89974e2abf32e6ed720c8c0.tar.gz gentoo-604f00925c54bf3ea89974e2abf32e6ed720c8c0.tar.bz2 gentoo-604f00925c54bf3ea89974e2abf32e6ed720c8c0.zip |
net-irc/oragono: add 2.6.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/oragono/Manifest | 1 | ||||
-rw-r--r-- | net-irc/oragono/oragono-2.6.0.ebuild | 68 |
2 files changed, 69 insertions, 0 deletions
diff --git a/net-irc/oragono/Manifest b/net-irc/oragono/Manifest index 90d1a81846c7..80def38b708b 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 000000000000..2f2b1a51efdb --- /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 +} |