net-irc/pounce: initial import

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2022-02-19 21:12:24 +05:00
parent f120036470
commit 71aead8e71
6 changed files with 122 additions and 0 deletions

1
net-irc/pounce/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST pounce-3.0.tar.gz 50497 BLAKE2B 2c86ca02110b5bcfdcfa8d2a1fd75c804a64c382fc428550a5d8cd2489c60ecfffac55fa01cd6a6f9f0347ac64d6fe599c454c77e0247e26d9661ac47a2196ce SHA512 76fce4820c877202720505a96d45394027d88f9755fe9a96fb69e305699022d61f8dba7db524b0bc5058b5f999bcd02b82904525d3284b34a29ffbe64c1c3bc0

View File

@@ -0,0 +1,5 @@
# See pounce(1) for the list of available options.
#local-cert = /etc/letsencrypt/live/example.com/fullchain.pem
#local-priv = /etc/letsencrypt/live/example.com/privkey.pem
#host = remote-irc.example.com

View File

@@ -0,0 +1,2 @@
# Configuration file.
POUNCE_CONFIG="/etc/pounce/example.conf"

View File

@@ -0,0 +1,25 @@
#!/sbin/openrc-run
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
extra_started_commands="reload"
description="IRC bouncer"
description_reload="Refresh TLS keys"
command="/usr/bin/pounce"
command_args="${POUNCE_CONFIG}"
command_background=yes
pidfile="/run/${RC_SVCNAME}.pid"
output_log="/var/log/${RC_SVCNAME}.log"
error_log="${output_log}"
depend() {
need net
}
reload() {
ebegin "Refreshing ${RC_SVCNAME} keys"
start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}"
eend $? "Failed to reload ${RC_SVCNAME}"
}

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>cyber+gentoo@sysrq.in</email>
<name>Anna</name>
</maintainer>
<upstream>
<maintainer>
<email>june@causal.agency</email>
<name>June</name>
</maintainer>
<bugs-to>mailto:list+pounce@causal.agency</bugs-to>
</upstream>
<use>
<flag name="palaver">Provide push notifications for the Palaver IRC app</flag>
</use>
</pkgmetadata>

View File

@@ -0,0 +1,71 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Multi-client, TLS-only IRC bouncer"
HOMEPAGE="https://git.causal.agency/pounce/about/"
SRC_URI="https://git.causal.agency/${PN}/snapshot/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="palaver"
DEPEND="
dev-libs/libretls:=
virtual/libcrypt:=
palaver? (
dev-db/sqlite:3
net-misc/curl
)
"
RDEPEND="${DEPEND}"
BDEPEND="
virtual/pkgconfig
"
DOCS=( {QUIRKS,README}.7 )
src_configure() {
local confargs=(
--prefix="${EPREFIX}/usr"
--mandir="${EPREFIX}/usr/share/man"
)
# note: not an autoconf configure script
./configure "${confargs[@]}" || die
pushd extra/notify >/dev/null || die
./configure "${confargs[@]}" || die
popd >/dev/null || die
if use palaver; then
pushd extra/palaver >/dev/null || die
./configure "${confargs[@]}" || die
popd >/dev/null || die
fi
tc-export CC
}
src_compile() {
emake all
emake -C extra/notify
use palaver && emake -C extra/palaver
}
src_install() {
emake DESTDIR="${D}" install
emake -C extra/notify DESTDIR="${D}" install
use palaver && emake -C extra/palaver DESTDIR="${D}" install
einstalldocs
newinitd "${FILESDIR}"/pounce.initd pounce
newconfd "${FILESDIR}"/pounce.confd pounce
insinto /etc/pounce
doins "${FILESDIR}"/example.conf
}