diff options
author | Sam James <sam@gentoo.org> | 2022-07-02 17:48:26 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-02 17:48:31 +0000 |
commit | 7a1cd8bc1aef97104e6671b3502876490f224bc9 (patch) | |
tree | 2345b294bf922b80c9551fefab4f485a585f6e81 /net-irc | |
parent | net-irc/irker: destabilize 2.22 (diff) | |
download | gentoo-7a1cd8bc1aef97104e6671b3502876490f224bc9.tar.gz gentoo-7a1cd8bc1aef97104e6671b3502876490f224bc9.tar.bz2 gentoo-7a1cd8bc1aef97104e6671b3502876490f224bc9.zip |
net-irc/irker: fix notifications
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/irker/files/irker-2.22-fix-tcpserver.patch | 22 | ||||
-rw-r--r-- | net-irc/irker/irker-2.22-r1.ebuild | 68 |
2 files changed, 90 insertions, 0 deletions
diff --git a/net-irc/irker/files/irker-2.22-fix-tcpserver.patch b/net-irc/irker/files/irker-2.22-fix-tcpserver.patch new file mode 100644 index 000000000000..1848a4430cc7 --- /dev/null +++ b/net-irc/irker/files/irker-2.22-fix-tcpserver.patch @@ -0,0 +1,22 @@ +https://gitlab.com/esr/irker/-/merge_requests/29 + +From da933d5188d88ef0557bda59f02188f164ad427c Mon Sep 17 00:00:00 2001 +From: "Frank Ch. Eigler" <fche@elastic.org> +Date: Mon, 11 Apr 2022 15:43:22 +0000 +Subject: [PATCH] irkerd: correct typo to our internal TCP/UDP ipv6 server + classes + +--- a/irkerd ++++ b/irkerd +@@ -1131,8 +1131,8 @@ if __name__ == '__main__': + tcpserver = socketserver.TCPServer((args.host, PORT), IrkerTCPHandler) + udpserver = socketserver.UDPServer((args.host, PORT), IrkerUDPHandler) + # pylint: disable=undefined-variable +- tcp6server = TCPServer((args.host6, PORT), IrkerTCPHandler) +- udp6server = UDPServer((args.host6, PORT), IrkerUDPHandler) ++ tcp6server = TCP6Server((args.host6, PORT), IrkerTCPHandler) ++ udp6server = UDP6Server((args.host6, PORT), IrkerUDPHandler) + for server in [tcpserver, udpserver, tcp6server, udp6server]: + server = threading.Thread(target=server.serve_forever) + server.setDaemon(True) +GitLab diff --git a/net-irc/irker/irker-2.22-r1.ebuild b/net-irc/irker/irker-2.22-r1.ebuild new file mode 100644 index 000000000000..e2bf844a14f6 --- /dev/null +++ b/net-irc/irker/irker-2.22-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="ssl" + +inherit optfeature python-single-r1 systemd + +DESCRIPTION="Submission tools for IRC notifications" +HOMEPAGE="http://www.catb.org/esr/irker/ https://gitlab.com/esr/irker" +SRC_URI="http://www.catb.org/esr/${PN}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# Dependency notes: +# NOTE: No pkgconfig dep here because of the systemd sed below +# NOTE: No need for asciidoc here as it's only used for the +# 'release' makefile target. +BDEPEND=" + app-text/docbook-xml-dtd:4.1.2 + app-text/xmlto + ${PYTHON_DEPS} +" +RDEPEND="${PYTHON_DEPS}" + +DOCS=( NEWS README hacking.adoc security.adoc ) +HTML_DOCS=( irkerd.html irkerhook.html ) + +PATCHES=( + "${FILESDIR}"/${PN}-2.22-fix-tcpserver.patch +) + +src_prepare() { + default + + # Rely on systemd eclass for systemd service install + sed -i -e "/^SYSTEMDSYSTEMUNITDIR/d" Makefile \ + || die "sed failed" + + # Prefix support + sed -i -e "/^ExecStart=/ s:=/:=${EPREFIX}/:" irkerd.service \ + || die "sed failed" +} + +src_install() { + default + + python_doscript "${ED}"/usr/bin/irkerd + # Not installed with the default Makefile + python_doscript irk irkerhook.py + + newinitd "${FILESDIR}"/irkerd.initd irkerd + newconfd "${FILESDIR}"/irkerd.confd irkerd + + systemd_dounit irkerd.service + + docinto examples + dodoc filter-example.py filter-test.py +} + +pkg_postinst() { + optfeature "SOCKS5 proxy support" dev-python/PySocks +} |