mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
@@ -1 +1,2 @@
|
||||
DIST oragono-2.6.1.tar.gz 3099750 BLAKE2B d07a699fd2330e270f623cd452fa5cd6833ad541f4be76bdea0fed85ca6947f35a93876f684cd611f40d1482192cd3fcc4d8ac22f5c08dce5098ca2ad6a913fd SHA512 ce7e28f71dbd99fd304cfbf343aa3a494ceef8b3680691982f1caa16b0c1162f354eceacc3deab6d8c1a9b9d6d5fa009953f2735ab87991801ec2e6958b8fb9b
|
||||
DIST ergo-2.6.1.tar.gz 3099502 BLAKE2B 2d9aea062f1f0f827febe704a1148bf0c559ad905d709f530fceeb5bbd85297402a076d62bd53315b7c48556a9aba94f968758b26c9a31f970daf93b6cbe5807 SHA512 c9b7d14394bb0ed4425c6c8fb24c6fb73cb312ed8224887a52acb0776a5ec6c4cf2cfd73e92cbfb6385bf467bdcd443f751966fc6671d9d6446f6efd2b5d4d80
|
||||
DIST ergo-2.7.0.tar.gz 3115191 BLAKE2B 13bc6f4ddb26369912ed28205f4cee1f39d483481ffe5c6b87db1b2a49c0357d639c35d72d667bd63e2d1feec4cca4d0fb696e3edc2941be8f1bea8c5730adb7 SHA512 ac1171c68c07d0e1f5204ba14acc3eff7eb367e1a85cdeef79fb91bb9acc98109507a34a788cf99cd32125fb1a0f0b5b5c8afbb46b631d5d0da8dc70ab5c651c
|
||||
|
||||
69
net-irc/ergo/ergo-2.7.0.ebuild
Normal file
69
net-irc/ergo/ergo-2.7.0.ebuild
Normal file
@@ -0,0 +1,69 @@
|
||||
# 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://ergo.chat/ https://github.com/ergochat/ergo"
|
||||
SRC_URI="https://github.com/ergochat/ergo/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/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() {
|
||||
go build -mod=vendor . || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
|
||||
dobin ergo
|
||||
|
||||
insinto /etc/ergo
|
||||
doins default.yaml
|
||||
|
||||
newinitd "${FILESDIR}"/ergo.initd ergo
|
||||
newconfd "${FILESDIR}"/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
|
||||
}
|
||||
3
net-irc/ergo/files/ergo.confd
Normal file
3
net-irc/ergo/files/ergo.confd
Normal file
@@ -0,0 +1,3 @@
|
||||
# /etc/conf.d/ergo: config file for /etc/init.d/ergo
|
||||
ERGO_CONFIGFILE="/etc/ergo/ircd.yaml"
|
||||
|
||||
11
net-irc/ergo/files/ergo.initd
Normal file
11
net-irc/ergo/files/ergo.initd
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/sbin/openrc-run
|
||||
command=/usr/bin/ergo
|
||||
command_args="--conf ${ERGO_CONFIGFILE:-"/etc/ergo/ircd.yaml"}"
|
||||
pidfile=/var/run/ergo.pid
|
||||
name="ergo"
|
||||
description="ergo IRC daemon"
|
||||
|
||||
depend() {
|
||||
use dns
|
||||
provide ircd
|
||||
}
|
||||
Reference in New Issue
Block a user