diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-05 09:25:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-05 09:25:57 +0000 |
commit | 6d691ad5b6239929063441bbd14c489e92e7396e (patch) | |
tree | e294f87b1ce66397fee1273bd6c7131aeb586f51 /net-irc/oragono | |
parent | d99093fb4bb5652015c06274d64083daa2439e4f (diff) |
gentoo resync : 05.03.2021
Diffstat (limited to 'net-irc/oragono')
-rw-r--r-- | net-irc/oragono/Manifest | 5 | ||||
-rw-r--r-- | net-irc/oragono/files/oragono.confd | 3 | ||||
-rw-r--r-- | net-irc/oragono/files/oragono.initd | 11 | ||||
-rw-r--r-- | net-irc/oragono/metadata.xml | 11 | ||||
-rw-r--r-- | net-irc/oragono/oragono-2.5.1.ebuild | 68 |
5 files changed, 98 insertions, 0 deletions
diff --git a/net-irc/oragono/Manifest b/net-irc/oragono/Manifest new file mode 100644 index 000000000000..92f2db332552 --- /dev/null +++ b/net-irc/oragono/Manifest @@ -0,0 +1,5 @@ +AUX oragono.confd 104 BLAKE2B 8e1f9372d43f979a768b516f0b7c4e00540a1547592bae12b576e8b182b94eefadfda09208e14a7f3fe1c8480d447e487a1df86807041bca33a53b87f208822a SHA512 7b54c8ad9ed552fd91bda17605118599a8f3853156c0d8b9d1c64630b984095096c74dcd38000b2d13ab0e3015ee81e994ea5d90b20edbc6b5c174f6efbdb307 +AUX oragono.initd 228 BLAKE2B 5ccdbc0762223f0311ea80f104cb814bd1990720bc35befbb3b19d4e71226e773ea60a2a37ab249fa18f01ca680d6c2f5b86d8cf283a0eef8a08a28f438dd458 SHA512 428c1a350d3720434a727f1f68463519941e6e27f985be51417001bbfb55b7a68fc874977dec6d63bd1fb1dff496e88b9bccb2a6e079f34b726ce78d76a8f53b +DIST oragono-2.5.1.tar.gz 3079990 BLAKE2B 0b2c0e330cac974e311ff711b28e7f5cc5548355bcafb14fc903a63e0442e513a890f4ce890c49316603ba1dc7214d8953b3fc62f2aa40fb34e787348900de81 SHA512 684b697a97fb0274e35f8ae491841e5f8c564f778ff19294ff2353e75416e7283295668bff5db57e4950cb991ead5215c501ba1a2c517a12bbbbe85efe983bea +EBUILD oragono-2.5.1.ebuild 1526 BLAKE2B 3f4ae8e5e54dd75c22bf07b112693cc7b7f3bcea18c578e1bdabc5e8d4de8d61312318a794b82ee4e988da99224723d719d5347c4d53c4a3e2b10b768d82167c SHA512 57000d21064464c62072c2385cd62ab31b11c273d2070c8cd664b1d1a099c867308718cc2f9b3db04ed9b26a98e7e01ab935e2cd1af67963619b4441e36abd6d +MISC metadata.xml 319 BLAKE2B d82fdd20f65f3c9c6d544701fd4542c7ea14a10869210f24a966e6c512127c132d9a8e58e116196999159cbcff6017b20ec5c5f4b918471a32cb91e81e84fdf2 SHA512 721af15195dda9a790c7cd38bd36792a0411bb45a34e5b0a2b5e9d3343a1c41d7aa583e8be8ea97a639cafafe70c8a5e0219d6b5f175e5eeb166d6afca2e464b diff --git a/net-irc/oragono/files/oragono.confd b/net-irc/oragono/files/oragono.confd new file mode 100644 index 000000000000..3e694bb97038 --- /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 000000000000..2379aaea301c --- /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 000000000000..d03f63171752 --- /dev/null +++ b/net-irc/oragono/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sam@gentoo.org</email> + <name>Sam James</name> + </maintainer> + <upstream> + <remote-id type="github">oragono/oragono</remote-id> + </upstream> +</pkgmetadata> 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 000000000000..2f2b1a51efdb --- /dev/null +++ b/net-irc/oragono/oragono-2.5.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 +} |