summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-08 05:01:30 +0000
committerSam James <sam@gentoo.org>2021-06-08 05:10:32 +0000
commit923638e571054192c0d4c701ee10f3aa4dc4bdb9 (patch)
tree2e3ccc45adb49662b63e0ab79ffd66f261093cd9 /net-irc/ergo
parentdev-ruby/ruby-macho: add 2.5.1 (diff)
downloadgentoo-923638e571054192c0d4c701ee10f3aa4dc4bdb9.tar.gz
gentoo-923638e571054192c0d4c701ee10f3aa4dc4bdb9.tar.bz2
gentoo-923638e571054192c0d4c701ee10f3aa4dc4bdb9.zip
net-irc/ergo: rename net-irc/oragono -> net-irc/ergo
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-irc/ergo')
-rw-r--r--net-irc/ergo/Manifest1
-rw-r--r--net-irc/ergo/ergo-2.6.1.ebuild68
-rw-r--r--net-irc/ergo/files/oragono.confd3
-rw-r--r--net-irc/ergo/files/oragono.initd11
-rw-r--r--net-irc/ergo/metadata.xml11
5 files changed, 94 insertions, 0 deletions
diff --git a/net-irc/ergo/Manifest b/net-irc/ergo/Manifest
new file mode 100644
index 000000000000..9c822e6f318f
--- /dev/null
+++ b/net-irc/ergo/Manifest
@@ -0,0 +1 @@
+DIST oragono-2.6.1.tar.gz 3099750 BLAKE2B d07a699fd2330e270f623cd452fa5cd6833ad541f4be76bdea0fed85ca6947f35a93876f684cd611f40d1482192cd3fcc4d8ac22f5c08dce5098ca2ad6a913fd SHA512 ce7e28f71dbd99fd304cfbf343aa3a494ceef8b3680691982f1caa16b0c1162f354eceacc3deab6d8c1a9b9d6d5fa009953f2735ab87991801ec2e6958b8fb9b
diff --git a/net-irc/ergo/ergo-2.6.1.ebuild b/net-irc/ergo/ergo-2.6.1.ebuild
new file mode 100644
index 000000000000..f434edca6b5f
--- /dev/null
+++ b/net-irc/ergo/ergo-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/oragono/oragono/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/ergo/files/oragono.confd b/net-irc/ergo/files/oragono.confd
new file mode 100644
index 000000000000..3e694bb97038
--- /dev/null
+++ b/net-irc/ergo/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/ergo/files/oragono.initd b/net-irc/ergo/files/oragono.initd
new file mode 100644
index 000000000000..2379aaea301c
--- /dev/null
+++ b/net-irc/ergo/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/ergo/metadata.xml b/net-irc/ergo/metadata.xml
new file mode 100644
index 000000000000..d03f63171752
--- /dev/null
+++ b/net-irc/ergo/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>