diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-23 06:54:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-23 06:54:34 +0000 |
commit | 9a1d1c6b10a4640cea10e7040ed173cf593f4cab (patch) | |
tree | 10b7aaa9608311a4b8a7561c6a8da3003ebb061d /net-irc/ergo | |
parent | defbebad0d311b0ce0694b17989a9f26cf000250 (diff) |
gentoo auto-resync : 23:01:2023 - 06:54:34
Diffstat (limited to 'net-irc/ergo')
-rw-r--r-- | net-irc/ergo/Manifest | 2 | ||||
-rw-r--r-- | net-irc/ergo/ergo-2.11.1.ebuild | 69 |
2 files changed, 71 insertions, 0 deletions
diff --git a/net-irc/ergo/Manifest b/net-irc/ergo/Manifest index 43dbf98d1c49..3c3e60e84e10 100644 --- a/net-irc/ergo/Manifest +++ b/net-irc/ergo/Manifest @@ -1,5 +1,7 @@ DIST ergo-2.10.0.tar.gz 3256716 BLAKE2B 72f1d6464ee434508b9944a9923435cda01e97c8b542c7c77c74562309a6b9ed727b5ae7c444f6e95517482fd87f34623d477e14c1dfbe323a7d81ace5c3e111 SHA512 952ef22b28d8de0814f04ece55b8ff88f405f184d8ecfce45c4af63e8c53153786d0b685f9bfff7cdb53ad369914f07069436f43b5ab65816bb7410b02f34bf8 DIST ergo-2.11.0.tar.gz 3264162 BLAKE2B af5020469b7a7d7194cdf4e3f82ded906b811d754fac08bdfc0f8379b907069b92260701dd2e919a196b2ab655a32f9b9e3a21bfc8d363790d49cf32473a6c60 SHA512 ccdbc391e280ab25efd45752b84223213aceb3f3045307209da7a02b3b09df571242ad92d11786693fc208427a2d1ca0a3d6d470404cfb83b0acf40ca343441d +DIST ergo-2.11.1.tar.gz 3264192 BLAKE2B 9a207fc808277275c43c4c70aec748efe0a5d3a21f4be195885b7058798df8b0d47b52a6b52708f3e04c5aa79faec2fd3f41a0da625fd55fff45a3b12cdb90ba SHA512 9808ecc28dc25e60b942bc74f8fbe4f07b7fda0641c3dd6fc681214e7e2b5fed7fa61f85e2ac0de3c08dc91a54f571e2741ab1b2f6597a2b53405211f327ad81 EBUILD ergo-2.10.0-r1.ebuild 1501 BLAKE2B 28049bdd16691767da3476ab136e98d98652a1cc5658b70853a2815ead9157e122a14ee1834a206f27b076d4d760ac62a6417202848de06bb6913dadb084287d SHA512 d482a6994db06fa9375dbe2dc5ccdd426624073a3925632329abb498464c4c7d3b48948d9e4848dd91e819d24e4712edb662a27435754e053ec7e28c98af4f4b EBUILD ergo-2.11.0.ebuild 1565 BLAKE2B a82affb7986894a7429e06881dfcf2331b7d938d968272d331e082b79460d3f7762ebe30f686225fc891c687fc552f3d7982b80be41a2efaccbf60e999976b7d SHA512 af8844c6990271dde6f9c050fe790f67bbcdb4ed0727437352ce246826c2bf91bfbf84514de72b33f44546524cd7b2cf99af2f260ab71eb8d09e3a35c9399522 +EBUILD ergo-2.11.1.ebuild 1565 BLAKE2B e017d1375a3b37ef0a50ece2692e8162a5b2570b84f0862065de26b49462c54dcb40eb634cfba0011b62e6a4255e6ff0ab015b363d7070bd1c6afcd1cf7e8c8b SHA512 51bcd9c2ae544ac9a8577f9a18bd56e476c25e1e0ca6928ce341881b9d86858b7949eaf3931a53a5f5799edcb16e4e701664048fc3ec575992325d17d9c4057e MISC metadata.xml 320 BLAKE2B 3bff5defc5150caa0cae2776e69f9070d1896c9cab8e5e0fc1afb94606a1c0e0d3ab951b4ea1076929221bcfd0576540f1b1768c1f9d3ad68161d9540c6785e3 SHA512 b634cbc9628c66cfc5b2983a6da5b2322bfb5c755893e1c15aab203f6e94b15ea5be2494b0370e8b7fd4950d0d1059e60939bd945620aa0548ef665263a5672a diff --git a/net-irc/ergo/ergo-2.11.1.ebuild b/net-irc/ergo/ergo-2.11.1.ebuild new file mode 100644 index 000000000000..39327ace6602 --- /dev/null +++ b/net-irc/ergo/ergo-2.11.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2023 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 +} |