net-nntp/inn: add 2.7.4

Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Viorel Munteanu
2026-07-11 13:09:21 +03:00
parent 395f842280
commit 3e7d2acea9
2 changed files with 145 additions and 0 deletions

View File

@@ -2,3 +2,5 @@ DIST inn-2.7.1.tar.gz 2753330 BLAKE2B 9221a95673359ed146422f1431ceafefba7a043cf0
DIST inn-2.7.1.tar.gz.asc 488 BLAKE2B 733e2649ee4647b6316e427a26595b7558c217df54b0848381a65634f82afb02bb94355fde00673b6fc7b565edaa89efdab1864bf997ca1b13202de6fc5ded53 SHA512 271c4305f1046520626e9c81accb84c1cf47262b270971d2a4159977894e851ae47c99ba19ad26cf9286387d15022c98e187a916dbc6c355f618052078757620
DIST inn-2.7.3.tar.gz 2832795 BLAKE2B cb050636d0346e206ac1811773102f456fd2ad02f0a85086fe7f0cfdda1637de5ac7b9797a0abf99284c9c901b377e6275e23e389d2aff5ceb1ca05aac9d80b3 SHA512 cc36a87d4f8ab9297c8ce56dfb4864aafc6095459fda4ab3198e0870c77e7327364b151c16bf3509cf61e07d9389f25b0da1e016b1fc908436d48bd60ed9b81d
DIST inn-2.7.3.tar.gz.asc 488 BLAKE2B 31d0e852e924a6f62e42022232375e66aa7d582b1d3e1ca9516f3977e102eb2d2a239def4254faed10d67ff8da217f6501c9cb0d611fe85f3663d4c99c4fcf5b SHA512 47da414714f3d709d2b4ccc5d8628bfd060ea1827ed4fcd5a7bd5ac21a3659f636f4901e929c872ed893a0ef6d0d31b349daee6fa918d18ac4715dd0fa6e7720
DIST inn-2.7.4.tar.gz 2895892 BLAKE2B 9b192fa3f78f2a4b1dc827960b7481cde9548861749a83ee973cd2370b93edf7871012b1d585850cfbcc0508adbf64af5a7ab693a910746aee204d3d36a0da9c SHA512 180eb4ef77475211bf7b4857c6a234ee48c7b2495a4efe6fbcd68fb13c53a75a3c39995009f49846812de668f32c419b451c298352220b5e87d4a3b1bed11afe
DIST inn-2.7.4.tar.gz.asc 833 BLAKE2B 75ab01a26f168d828ae2a4340d090181af2356314807f0f43eb64c9cd381bc01295dca404c10063c15a98820dab952b21549b92996b8f12c0f96587481c973e2 SHA512 5d3fcd92351666e99eea10487e2f88e986ecc4f63f61a15dcbf0a6c97bdd22231bd6d4ab717ec3ac0cea0b48ddbb4e7baeb7c923b3bef7c62ca500feaab0e3a8

View File

@@ -0,0 +1,143 @@
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
inherit optfeature perl-functions python-single-r1 tmpfiles verify-sig
DESCRIPTION="InterNetNews - the Internet meets Netnews"
HOMEPAGE="
https://www.isc.org/othersoftware/#INN
https://www.eyrie.org/~eagle/software/inn/
https://github.com/InterNetNews/inn
"
SRC_URI="https://downloads.isc.org/isc/${PN}/${P}.tar.gz
https://github.com/InterNetNews/inn/releases/download/${PV}/${P}.tar.gz
verify-sig? (
https://downloads.isc.org/isc/${PN}/${P}.tar.gz.asc
https://github.com/InterNetNews/inn/releases/download/${PV}/${P}.tar.gz.asc
)"
LICENSE="BSD BSD-2 BSD-4 GPL-2+ ISC MIT RSA powell public-domain"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+bzip2 cancel-locks gzip kerberos low-memory python sasl sqlite ssl test zlib"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RESTRICT="!test? ( test )"
DEPEND="
app-crypt/gnupg
dev-lang/perl:=
sys-libs/gdbm:=
sys-libs/pam
virtual/libcrypt:=
virtual/mta
bzip2? ( app-alternatives/bzip2 )
cancel-locks? ( net-libs/canlock:= )
gzip? ( app-alternatives/gzip )
kerberos? ( virtual/krb5 )
python? ( ${PYTHON_DEPS} )
sasl? ( dev-libs/cyrus-sasl:2 )
sqlite? ( dev-db/sqlite:3 )
ssl? ( dev-libs/openssl:= )
zlib? ( virtual/zlib:= )
"
RDEPEND="${DEPEND}"
BDEPEND="
app-alternatives/lex
app-alternatives/yacc
dev-lang/perl
virtual/pkgconfig
test? ( dev-perl/Test-Pod )
verify-sig? ( >=sec-keys/openpgp-keys-russallbery-20250000 )
"
DOCS=( CONTRIBUTORS HACKING INSTALL NEWS README TODO )
VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/russallbery.asc"
src_configure() {
econf_args=(
UUSTAT="${EPREFIX}/usr/bin/uustat"
inn_cv_compiler_c__g="no"
inn_cv_compiler_c__O3="no"
inn_cv_compiler_c__Werror="no"
--prefix="${EPREFIX}"/opt/${PN}
--includedir="${EPREFIX}"/usr/include
--sysconfdir="${EPREFIX}"/etc/news
--with-control-dir="${EPREFIX}"/usr/libexec/inn/control
--with-db-dir="${EPREFIX}"/var/db/news
--with-doc-dir="${EPREFIX}"/usr/share/doc/${PF}
--with-filter-dir="${EPREFIX}"/usr/libexec/inn/filter
--with-http-dir="${EPREFIX}"/usr/share/${PN}/http
--with-libperl-dir="$(perl_get_vendorlib)"
--with-log-dir="${EPREFIX}"/var/log/news
--with-run-dir="${EPREFIX}"/run/news
--with-spool-dir="${EPREFIX}"/var/spool/news
--with-tmp-dir="${EPREFIX}"/var/tmp/news
$(use_enable !low-memory largefiles)
$(use_enable low-memory tagged-hash)
$(use_with cancel-locks canlock)
$(use_with kerberos krb5)
$(use_with python)
$(use_with sasl)
$(use_with sqlite sqlite3)
$(use_with ssl openssl)
$(use_with zlib)
--disable-hardening-flags
--enable-keywords
--with-perl
--without-bdb # deprecated db
--without-blocklist # FreeBSD-only
)
if use bzip2; then
econf_args+=( --with-log-compress=bzip2 )
elif use gzip; then
econf_args+=( --with-log-compress=gzip )
else
econf_args+=( --with-log-compress=cat )
fi
econf "${econf_args[@]}"
}
src_install() {
default
keepdir /var/log/news/OLD
keepdir /var/spool/news/{archive,articles,incoming/bad,innfeed,outgoing,overview}
find "${ED}" -name '*.la' -delete || die
rm "${ED}"/usr/share/doc/${PF}/{GPL,LICENSE} || die
rm -r "${ED}"/run "${ED}"/var/tmp || die
for svc in cnfsstat innwatch; do
newinitd "${FILESDIR}"/${svc}.initd ${svc}
newconfd "${FILESDIR}"/${svc}.confd ${svc}
done
newinitd "${FILESDIR}"/innd.initd-r1 innd
newconfd "${FILESDIR}"/innd.confd innd
if use sqlite; then
newinitd "${FILESDIR}"/ovsqlite.initd ovsqlite
fi
newtmpfiles "${FILESDIR}"/inn.tmpfiles-r1 inn.conf
}
pkg_postinst() {
optfeature "controlchan script" dev-perl/MIME-tools
optfeature "innreport script" dev-perl/GD
optfeature "send-uucp backend" net-misc/taylor-uucp
if use sqlite; then
optfeature "ovsqlite-util script" dev-perl/DBD-SQLite
fi
tmpfiles_process inn.conf
}