commit:     bae54bca47296d69c871aff75656de219c893b2f
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Wed Feb  4 10:08:30 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb  5 22:54:13 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bae54bca

net-irc/iroffer-dinoex: add 3.34

update licenses according to LICENSE

use l10n instead of plocale, add turkish

remove chroot because NSS checking didn't work and the initscript
doesn't use it anyway

use behaviour from global desc. for gnutls (ineffective if -ssl)
use dev-libs/libmaxminddb for geoip (preferred by upstream)
add missing net-libs/miniupnpc if upnp is enabled

simplify with usev

Closes: https://bugs.gentoo.org/968851
Closes: https://bugs.gentoo.org/959575
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/45636
Closes: https://github.com/gentoo/gentoo/pull/45636
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-irc/iroffer-dinoex/Manifest                    |   1 +
 .../files/iroffer-dinoex-3.34-rm_Werror.patch      |  20 ++++
 net-irc/iroffer-dinoex/iroffer-dinoex-3.34.ebuild  | 132 +++++++++++++++++++++
 3 files changed, 153 insertions(+)

diff --git a/net-irc/iroffer-dinoex/Manifest b/net-irc/iroffer-dinoex/Manifest
index ac0acc4dc045..9b605a3f203a 100644
--- a/net-irc/iroffer-dinoex/Manifest
+++ b/net-irc/iroffer-dinoex/Manifest
@@ -1,2 +1,3 @@
 DIST iroffer-dinoex-3.32.tar.gz 1321125 BLAKE2B 
3a124d16911d97d0ec937b86c9e0ad513ebdcea5e09e4cb1a53753c03d5e13347d0bf1116bf9abe0137fb7a05bbc7a8e31c2c0da5c15cc4e0b55e067d62b1461
 SHA512 
03d662cf7eb3093b1f050eda8777011d6e7a833dc2fcf65d29ef0294a0d6ce4e2cea273e2d4e6ee6ba2364c088890ac6338a3aa8e6477d5e2a1a990a6e4e9603
 DIST iroffer-dinoex-3.33.tar.gz 540521 BLAKE2B 
abdf64dca8f9f8da76a15061c2eb26ad4c4c223f78a608725b61497efd514575e90c159790681e9ad3dd68c72a3cd27fcc0fa023eb6a57f31aa2f3464afa8704
 SHA512 
7d2a8417ee02d0462aee07013cd7d2ae196ea588d1f7e852b280d5f7cc19c91902d5ad81d32ce3041f7d21dea7ebbd7ac396209a455334d1b66d33349e725b44
+DIST iroffer-dinoex-3.34.tar.gz 592239 BLAKE2B 
4ce6e7230650d83aa67ccb3331e93c81ae4cd7687cd65763eefa34386269d24bc44f5e87b7b8b4da35b057ccc3e5bf26bd4342e200d371a4b16c653bd76f413a
 SHA512 
4d3024329a1d28ba3da830d59935c5d61fbd2c7a5339ace5d6e9d64109227c99c5279f199d02a83770526f93f516436a737fc0acdd4d3ad5714a8a5a099ac886

diff --git a/net-irc/iroffer-dinoex/files/iroffer-dinoex-3.34-rm_Werror.patch 
b/net-irc/iroffer-dinoex/files/iroffer-dinoex-3.34-rm_Werror.patch
new file mode 100644
index 000000000000..80fca9e87ca7
--- /dev/null
+++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex-3.34-rm_Werror.patch
@@ -0,0 +1,20 @@
+--- a/Configure
++++ b/Configure
+@@ -910,17 +910,6 @@ else
+  ${msg} " ${irt_no}"
+ fi
+ 
+-${msg} -n "${irt_seeingif} $cctype ${irt_accepts} '-Werror'... "
+-echo "
+-#include <stdlib.h>
+-${main0}" > config.temp.c
+-if $cctype -o config.temp -Werror $CFLAGS config.temp.c $LDFLAGS $libs $LIBS; 
then
+- ${msg} "${irt_yes}"
+- WERROR="-Werror"
+-else
+- ${msg} " ${irt_no}"
+-fi
+-
+ ${msg} -n "${irt_seeingif} $cctype ${irt_accepts} '-Wno-unreachable-code'... "
+ echo "
+ #include <stdlib.h>

diff --git a/net-irc/iroffer-dinoex/iroffer-dinoex-3.34.ebuild 
b/net-irc/iroffer-dinoex/iroffer-dinoex-3.34.ebuild
new file mode 100644
index 000000000000..e0b5c8dedd3e
--- /dev/null
+++ b/net-irc/iroffer-dinoex/iroffer-dinoex-3.34.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo toolchain-funcs
+
+DESCRIPTION="IRC fileserver using DCC"
+HOMEPAGE="https://iroffer.net/";
+SRC_URI="https://iroffer.net/${P}.tar.gz";
+
+LICENSE="GPL-2+-with-openssl-exception MIT blowfish? ( LGPL-2.1+ ) upnp? ( BSD 
)"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+MY_L10N=( de fr en it tr )
+IUSE="+admin +blowfish curl debug geoip gnutls +http +memsave ruby ssl +telnet 
upnp"
+IUSE+=" ${MY_L10N[@]/#/l10n_}"
+
+REQUIRED_USE="admin? ( http )"
+
+RDEPEND="
+       acct-user/iroffer
+       virtual/libcrypt:=
+       curl? (
+               net-misc/curl[ssl?]
+               ssl? (
+                       gnutls? ( net-misc/curl[curl_ssl_gnutls] )
+                       !gnutls? ( net-misc/curl[curl_ssl_openssl] )
+               )
+       )
+       geoip? ( dev-libs/libmaxminddb:= )
+       ruby? ( dev-lang/ruby:* )
+       ssl? (
+               gnutls? ( net-libs/gnutls:= )
+               !gnutls? ( dev-libs/openssl:0= )
+       )
+       upnp? ( net-libs/miniupnpc:= )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-3.31-config.patch
+       #"${FILESDIR}"/${PN}-3.34-fix_ssl.patch
+       "${FILESDIR}"/${PN}-3.34-rm_Werror.patch
+)
+
+src_configure() {
+       for lang in "${MY_L10N[@]}"; do
+               use "l10n_${lang}" && LANGS+=( "${lang}" )
+       done
+       export ${LANGS[@]:-en}
+
+       myconfargs=(
+               PREFIX="${EPREFIX}/usr"
+               CC="$(tc-getCC)"
+               -no-chroot
+               $(usev !admin -no-admin)
+               $(usev !blowfish -no-blowfish)
+               $(usev curl -curl)
+               $(usev debug -debug)
+               $(use !elibc_musl && usev debug -profiling)
+               $(usev geoip -geoip)
+               $(usev !http -no-http)
+               $(usev !memsave -no-memsave)
+               $(usev ruby -ruby)
+               $(usex ssl "$(usex gnutls -tls '')" -no-openssl)
+               $(usev !telnet -no-telnet)
+               $(usev upnp -upnp)
+       )
+       edo ./Configure "${myconfargs[@]}"
+}
+
+src_compile() {
+       emake "${LANGS[@]}"
+}
+
+myloc() {
+       emake DESTDIR="${D}" install-${1}
+
+       DOCS+=( help-admin-${1}.txt )
+       use http && HTML_DOCS+=( doc/INSTALL-linux-${1}.html )
+
+       insinto /etc/${PN}
+       case ${1} in
+       "de")
+               DOCS+=( LIESMICH.modDinoex )
+               doins beispiel.config;;
+       "fr")
+               doins exemple.config;;
+       "tr")
+               doins misal.config;;
+       esac
+}
+
+src_install() {
+       local DOCS=( README{,.modDinoex} TODO THANKS )
+
+       local loc
+       for loc in "${LANGS[@]}";
+               do myloc "${loc}"
+       done
+
+       einstalldocs
+
+       doman iroffer.1 xdcc.7
+
+       insinto /etc/${PN}
+       doins sample.config
+
+       newinitd "${FILESDIR}/${PN}.init" ${PN}
+       newconfd "${FILESDIR}/${PN}.conf" ${PN}
+
+       insinto /etc/logrotate.d
+       newins "${FILESDIR}/${PN}.logrotate" ${PN}
+
+       if use ruby; then
+               insinto /usr/share/${PN}
+               doins ruby-sample.rb
+       fi
+
+       if use http; then
+               insinto /usr/share/${PN}/htdocs
+               doins htdocs/*
+       fi
+}
+
+pkg_postinst() {
+       if ! use l10n_en; then
+               ewarn "Please check BIN defined into 
"${EROOT}"/etc/conf.d/iroffer-dinoex"
+               ewarn "The path must be made consistent with the desired 
language."
+       fi
+}

Reply via email to