commit:     7030712df6ba0b1849ebb20d4d6b4317c1fe368f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  2 21:04:24 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan  2 21:08:52 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7030712d

net-irc/ngircd: bump to 26.1

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-irc/ngircd/Manifest           |   1 +
 net-irc/ngircd/ngircd-26.1.ebuild | 105 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+)

diff --git a/net-irc/ngircd/Manifest b/net-irc/ngircd/Manifest
index 6dba9318b06..5bd634e231a 100644
--- a/net-irc/ngircd/Manifest
+++ b/net-irc/ngircd/Manifest
@@ -1 +1,2 @@
+DIST ngircd-26.1.tar.gz 562938 BLAKE2B 
a1a4ca8b6e12a02cb4ba2e07d777cf77051b5330464c91634cfac0b385157ab7c648e3b71151247bc8ee6cc847e84755fdca3d9b4a25205bbb57b8296995dd17
 SHA512 
4a3ee379dd8d8655a71134c745f750359ceb0512e184db555f65f2bcab68087480365a35680a9ec75b1e6eb0fef23e1cbe0a0e13c3c58d211e5a520a8eeaa71c
 DIST ngircd-26.tar.gz 565579 BLAKE2B 
edd005179a79bbb51a1401f7d580ebf66cb5bf65d1427453c471a4e7e667d7fd6b320c292e9a7993c5fef6beeae88126fefb73284063451b080ecc0d3e6ca0f1
 SHA512 
2502baf83e3bfca3e6b83c22fe660fee24732ee875b32a7071a489a8babcc08124738142215b55d4f9bd4e94bec3f2a41889ab18324f772b1674b02883cbfb91

diff --git a/net-irc/ngircd/ngircd-26.1.ebuild 
b/net-irc/ngircd/ngircd-26.1.ebuild
new file mode 100644
index 00000000000..3336bff7a93
--- /dev/null
+++ b/net-irc/ngircd/ngircd-26.1.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# Bug: https://github.com/ngircd/ngircd/issues/261
+WANT_AUTOMAKE=1.11.6
+inherit autotools
+
+DESCRIPTION="An IRC server written from scratch"
+HOMEPAGE="https://ngircd.barton.de/";
+SRC_URI="https://arthur.barton.de/pub/${PN}/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~x64-macos"
+IUSE="debug gnutls ident irc-plus +ipv6 libressl pam +ssl strict-rfc tcpd test 
zlib"
+
+#RESTRICT="!test? ( test )"
+# Flaky test needs investigation (bug 719256)
+RESTRICT="test"
+
+RDEPEND="
+       acct-user/ngircd
+       acct-group/ngircd
+       irc-plus? ( virtual/libiconv )
+       ident? ( net-libs/libident )
+       pam? ( sys-libs/pam )
+       ssl? (
+               gnutls? ( net-libs/gnutls:= )
+               !gnutls? (
+                       !libressl? ( dev-libs/openssl:0= )
+                       libressl? ( dev-libs/libressl:0= )
+               )
+       )
+       tcpd? ( sys-apps/tcp-wrappers )
+       zlib? ( sys-libs/zlib )
+"
+
+BDEPEND="sys-devel/automake:1.11"
+
+DEPEND="
+       ${RDEPEND}
+       test? (
+               dev-tcltk/expect
+               net-misc/netkit-telnetd
+       )
+"
+
+src_prepare() {
+       default
+
+       if ! use prefix; then
+               sed -i \
+                       -e "s:;ServerUID = 65534:ServerUID = ngircd:" \
+                       -e "s:;ServerGID = 65534:ServerGID = ngircd:" \
+                       doc/sample-ngircd.conf.tmpl || die
+       fi
+
+       # Once https://github.com/ngircd/ngircd/pull/270 is in a release 
(ngircd 26), we can remove
+       # the eautomake/autotools machinery.
+       eautomake
+}
+
+src_configure() {
+       local myconf=(
+               --sysconfdir="${EPREFIX}"/etc/"${PN}"
+               $(use_enable debug sniffer)
+               $(use_enable debug)
+               $(use_enable irc-plus ircplus)
+               $(use_enable ipv6)
+               $(use_enable strict-rfc)
+               $(use_with irc-plus iconv)
+               $(use_with ident)
+               $(use_with pam)
+               $(use_with tcpd tcp-wrappers)
+               $(use_with zlib)
+       )
+
+       if use ssl; then
+               if use gnutls; then
+                       myconf+=(
+                               $( use_with gnutls )
+                       )
+               else
+                       myconf+=(
+                               $( use_with !gnutls openssl )
+                       )
+               fi
+       fi
+
+       econf "${myconf[@]}"
+}
+
+src_install() {
+       default
+       newinitd "${FILESDIR}"/ngircd.init-r1.d ngircd
+}
+
+pkg_postinst() {
+       if [[ -z ${REPLACING_VERSIONS} ]] && use pam; then
+               elog "ngircd will use PAMIsOptionalPAM by default, please 
change this option."
+               elog "You may not be able to login until you change this."
+       fi
+}

Reply via email to