[gentoo-commits] repo/gentoo:master commit in: net-irc/oragono/files/, net-irc/ergo/, net-irc/oragono/, profiles/updates/, ...
commit: 923638e571054192c0d4c701ee10f3aa4dc4bdb9 Author: Sam James gentoo org> AuthorDate: Tue Jun 8 05:01:30 2021 + Commit: Sam James gentoo org> CommitDate: Tue Jun 8 05:10:32 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=923638e5 net-irc/ergo: rename net-irc/oragono -> net-irc/ergo Signed-off-by: Sam James gentoo.org> net-irc/{oragono => ergo}/Manifest | 0 net-irc/{oragono/oragono-2.6.1.ebuild => ergo/ergo-2.6.1.ebuild} | 2 +- net-irc/{oragono => ergo}/files/oragono.confd| 0 net-irc/{oragono => ergo}/files/oragono.initd| 0 net-irc/{oragono => ergo}/metadata.xml | 0 profiles/updates/2Q-2021 | 1 + 6 files changed, 2 insertions(+), 1 deletion(-) diff --git a/net-irc/oragono/Manifest b/net-irc/ergo/Manifest similarity index 100% rename from net-irc/oragono/Manifest rename to net-irc/ergo/Manifest diff --git a/net-irc/oragono/oragono-2.6.1.ebuild b/net-irc/ergo/ergo-2.6.1.ebuild similarity index 94% rename from net-irc/oragono/oragono-2.6.1.ebuild rename to net-irc/ergo/ergo-2.6.1.ebuild index 2f2b1a51efd..f434edca6b5 100644 --- a/net-irc/oragono/oragono-2.6.1.ebuild +++ b/net-irc/ergo/ergo-2.6.1.ebuild @@ -7,7 +7,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" +SRC_URI="https://github.com/oragono/oragono/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0" SLOT="0" diff --git a/net-irc/oragono/files/oragono.confd b/net-irc/ergo/files/oragono.confd similarity index 100% rename from net-irc/oragono/files/oragono.confd rename to net-irc/ergo/files/oragono.confd diff --git a/net-irc/oragono/files/oragono.initd b/net-irc/ergo/files/oragono.initd similarity index 100% rename from net-irc/oragono/files/oragono.initd rename to net-irc/ergo/files/oragono.initd diff --git a/net-irc/oragono/metadata.xml b/net-irc/ergo/metadata.xml similarity index 100% rename from net-irc/oragono/metadata.xml rename to net-irc/ergo/metadata.xml diff --git a/profiles/updates/2Q-2021 b/profiles/updates/2Q-2021 index 438e4d00ea8..a37b7d1d620 100644 --- a/profiles/updates/2Q-2021 +++ b/profiles/updates/2Q-2021 @@ -4,3 +4,4 @@ move dev-python/ebuildtester dev-util/ebuildtester move dev-util/robin-hood-hashing dev-cpp/robin-hood-hashing move dev-python/awscli app-admin/awscli move dev-util/dwarves dev-util/pahole +move net-irc/oragono net-irc/ergo
[gentoo-commits] repo/gentoo:master commit in: net-irc/oragono/
commit: 62d86a40c64b328d2f153250440bb2e1827fce63 Author: Sam James gentoo org> AuthorDate: Mon Apr 26 14:24:29 2021 + Commit: Sam James gentoo org> CommitDate: Mon Apr 26 15:37:16 2021 + 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 684b697a97fb0274e35f8ae491841e5f8c564f778ff19294ff2353e75416e7283295668bff5db57e4950cb991ead5215c501ba1a2c517a12e85efe983bea 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 000..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 +}
[gentoo-commits] repo/gentoo:master commit in: net-irc/oragono/
commit: 81f5d0c931bbbaa54976dc1b7af77034774faeb6 Author: Sam James gentoo org> AuthorDate: Mon Apr 26 14:25:07 2021 + Commit: Sam James gentoo org> CommitDate: Mon Apr 26 15:37:17 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81f5d0c9 net-irc/oragono: drop 2.5.1, 2.6.0 (security cleanup) Bug: https://bugs.gentoo.org/785838 Signed-off-by: Sam James gentoo.org> net-irc/oragono/Manifest | 2 -- net-irc/oragono/oragono-2.5.1.ebuild | 68 net-irc/oragono/oragono-2.6.0.ebuild | 68 3 files changed, 138 deletions(-) diff --git a/net-irc/oragono/Manifest b/net-irc/oragono/Manifest index 467aa83f012..9c822e6f318 100644 --- a/net-irc/oragono/Manifest +++ b/net-irc/oragono/Manifest @@ -1,3 +1 @@ -DIST oragono-2.5.1.tar.gz 3079990 BLAKE2B 0b2c0e330cac974e311ff711b28e7f5cc5548355bcafb14fc903a63e0442e513a890f4ce890c49316603ba1dc7214d8953b3fc62f2aa40fb34e787348900de81 SHA512 684b697a97fb0274e35f8ae491841e5f8c564f778ff19294ff2353e75416e7283295668bff5db57e4950cb991ead5215c501ba1a2c517a12e85efe983bea -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.5.1.ebuild b/net-irc/oragono/oragono-2.5.1.ebuild deleted file mode 100644 index 2f2b1a51efd..000 --- a/net-irc/oragono/oragono-2.5.1.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# 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 -} diff --git a/net-irc/oragono/oragono-2.6.0.ebuild b/net-irc/oragono/oragono-2.6.0.ebuild deleted file mode 100644 index 2f2b1a51efd..000 --- a/net-irc/oragono/oragono-2.6.0.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# 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:' \ -
[gentoo-commits] repo/gentoo:master commit in: net-irc/oragono/
commit: 604f00925c54bf3ea89974e2abf32e6ed720c8c0 Author: Sam James gentoo org> AuthorDate: Sun Apr 18 21:42:01 2021 + Commit: Sam James gentoo org> CommitDate: Sun Apr 18 23:05:17 2021 + 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 684b697a97fb0274e35f8ae491841e5f8c564f778ff19294ff2353e75416e7283295668bff5db57e4950cb991ead5215c501ba1a2c517a12e85efe983bea +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 000..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 +}
[gentoo-commits] repo/gentoo:master commit in: net-irc/oragono/
commit: f99ed80c52007ca6ee4d7baadd64a80022184c16 Author: Sam James gentoo org> AuthorDate: Thu Mar 4 09:01:19 2021 + Commit: Sam James gentoo org> CommitDate: Thu Mar 4 11:06:55 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f99ed80c net-irc/oragono: restrict tests (not available) Tests aren't available per se, although we may be able to use the external shared test suite with some effort in future. Closes: https://bugs.gentoo.org/774150 Signed-off-by: Sam James gentoo.org> net-irc/oragono/oragono-2.5.1.ebuild | 4 1 file changed, 4 insertions(+) diff --git a/net-irc/oragono/oragono-2.5.1.ebuild b/net-irc/oragono/oragono-2.5.1.ebuild index f832d7ec41e..2f2b1a51efd 100644 --- a/net-irc/oragono/oragono-2.5.1.ebuild +++ b/net-irc/oragono/oragono-2.5.1.ebuild @@ -13,6 +13,10 @@ 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
[gentoo-commits] repo/gentoo:master commit in: net-irc/oragono/
commit: 13138657bd83d7a710e8f350a577d914c89a6188 Author: Sam James gentoo org> AuthorDate: Thu Mar 4 06:15:02 2021 + Commit: Sam James gentoo org> CommitDate: Thu Mar 4 06:15:02 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13138657 net-irc/oragono: minor style change (block structure) Signed-off-by: Sam James gentoo.org> net-irc/oragono/oragono-2.5.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-irc/oragono/oragono-2.5.1.ebuild b/net-irc/oragono/oragono-2.5.1.ebuild index 6a7fb9b3c97..f832d7ec41e 100644 --- a/net-irc/oragono/oragono-2.5.1.ebuild +++ b/net-irc/oragono/oragono-2.5.1.ebuild @@ -8,8 +8,8 @@ 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" +LICENSE="Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0" SLOT="0" KEYWORDS="~amd64"
[gentoo-commits] repo/gentoo:master commit in: net-irc/oragono/files/, net-irc/oragono/
commit: 7066f15c5858c7be840a6fc2683c09781f4fe55e Author: Sam James gentoo org> AuthorDate: Thu Mar 4 05:53:20 2021 + Commit: Sam James gentoo org> CommitDate: Thu Mar 4 06:00:06 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7066f15c net-irc/oragono: initial import Signed-off-by: Sam James gentoo.org> net-irc/oragono/Manifest | 1 + net-irc/oragono/files/oragono.confd | 3 ++ net-irc/oragono/files/oragono.initd | 11 +++ net-irc/oragono/metadata.xml | 11 +++ net-irc/oragono/oragono-2.5.1.ebuild | 64 5 files changed, 90 insertions(+) diff --git a/net-irc/oragono/Manifest b/net-irc/oragono/Manifest new file mode 100644 index 000..90d1a81846c --- /dev/null +++ b/net-irc/oragono/Manifest @@ -0,0 +1 @@ +DIST oragono-2.5.1.tar.gz 3079990 BLAKE2B 0b2c0e330cac974e311ff711b28e7f5cc5548355bcafb14fc903a63e0442e513a890f4ce890c49316603ba1dc7214d8953b3fc62f2aa40fb34e787348900de81 SHA512 684b697a97fb0274e35f8ae491841e5f8c564f778ff19294ff2353e75416e7283295668bff5db57e4950cb991ead5215c501ba1a2c517a12e85efe983bea diff --git a/net-irc/oragono/files/oragono.confd b/net-irc/oragono/files/oragono.confd new file mode 100644 index 000..3e694bb9703 --- /dev/null +++ b/net-irc/oragono/files/oragono.confd @@ -0,0 +1,3 @@ +# /etc/conf.d/oragono: config file for /etc/init.d/oragono +ORAGONO_CONFIGFILE="/etc/oragono/ircd.yaml" + diff --git a/net-irc/oragono/files/oragono.initd b/net-irc/oragono/files/oragono.initd new file mode 100644 index 000..2379aaea301 --- /dev/null +++ b/net-irc/oragono/files/oragono.initd @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +command=/usr/bin/oragono +command_args="--conf ${ORAGONO_CONFIGFILE:-"/etc/oragono/ircd.yaml"}" +pidfile=/var/run/oraogno.pid +name="Oragono" +description="Oragono IRC daemon" + +depend() { + use dns + provide ircd +} diff --git a/net-irc/oragono/metadata.xml b/net-irc/oragono/metadata.xml new file mode 100644 index 000..d03f6317175 --- /dev/null +++ b/net-irc/oragono/metadata.xml @@ -0,0 +1,11 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + s...@gentoo.org + Sam James + + + oragono/oragono + + diff --git a/net-irc/oragono/oragono-2.5.1.ebuild b/net-irc/oragono/oragono-2.5.1.ebuild new file mode 100644 index 000..6a7fb9b3c97 --- /dev/null +++ b/net-irc/oragono/oragono-2.5.1.ebuild @@ -0,0 +1,64 @@ +# 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" + +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 +}