Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/fetchmail/
Date: Fri, 20 May 2022 12:31:14
Message-Id: 1653049862.fd62598230039b7ecc721e72f2af6c91588a54a0.voyageur@gentoo
1 commit: fd62598230039b7ecc721e72f2af6c91588a54a0
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 20 12:31:02 2022 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Fri May 20 12:31:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd625982
7
8 net-mail/fetchmail: add 6.4.30
9
10 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
11
12 net-mail/fetchmail/Manifest | 1 +
13 net-mail/fetchmail/fetchmail-6.4.30.ebuild | 107 +++++++++++++++++++++++++++++
14 2 files changed, 108 insertions(+)
15
16 diff --git a/net-mail/fetchmail/Manifest b/net-mail/fetchmail/Manifest
17 index 85c305cee130..7b14d1c5cfe4 100644
18 --- a/net-mail/fetchmail/Manifest
19 +++ b/net-mail/fetchmail/Manifest
20 @@ -1,3 +1,4 @@
21 DIST fetchmail-6.4.21.tar.xz 1318996 BLAKE2B 4c2befad2b7dfa6957889e029572c259be7a20e4b54b864e2cca827540d745a57ad227f8e1fce1336e8f3a1005c780d8fa7c1b10b9ee05ce68dbcfac75afa179 SHA512 c9300f63c0e4073f199a9a7d9061774a7f88aad496b696cad96c0ee85107cae506461f0cd083903c60104b1e7654461213f3f759c1cdaffaf1c85fb1956faa67
22 DIST fetchmail-6.4.22.tar.xz 1330176 BLAKE2B 7086f8a3df263f68ae2034321f63c40fcf4759517f46c67ba4b5d3b33ba07d3bb4f512d749a67a2d76991b46847b6dd9df0795a7a28e8166842454001497cfc9 SHA512 ff6db2705b6e3806e22c326da8a0f6bdc0909965cd283b50f9d55bd3a18a52fc4b2f4b4afece1e81aa25b6f1037450cb2b579c4d2cfe4705d34b31d4c1a47e00
23 DIST fetchmail-6.4.27.tar.xz 1326668 BLAKE2B fb349f8e4b17929d8ab5ec144e2d6e4227b56143112eb3745830c339f8dfdaa80fb47060ad3671258563198ed1283a903fcd5a82564b7320a829ceb4c5826642 SHA512 75650c2a8bcfa6f4364dacd6964f00848a23e1bc96eed10f7fcfd9c8c6f6b6fe60eee2730c57c8a5263c11f01b3031cbef7d6b2bffa730de63e7ec262448af2f
24 +DIST fetchmail-6.4.30.tar.xz 1333524 BLAKE2B 67e6aff00b1678ad68a4539c40147c79fbb22970248a97fd16340dbc64e90339a476ea322afde7345858b7041a00364e181af37dc96a09dcdca2e096f62922ea SHA512 0ec540c4102267e6e72fefa5e76aa76f45d25a0e68ec40f1fd834719f2a4b5f3f78c587b050fc33d97dd8fc6f674950949e5c23f960ebcd3046d5cc2e06db1d0
25
26 diff --git a/net-mail/fetchmail/fetchmail-6.4.30.ebuild b/net-mail/fetchmail/fetchmail-6.4.30.ebuild
27 new file mode 100644
28 index 000000000000..98b1ae2dae89
29 --- /dev/null
30 +++ b/net-mail/fetchmail/fetchmail-6.4.30.ebuild
31 @@ -0,0 +1,107 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +PYTHON_REQ_USE="tk"
39 +
40 +inherit autotools python-single-r1 systemd tmpfiles toolchain-funcs
41 +
42 +DESCRIPTION="the legendary remote-mail retrieval and forwarding utility"
43 +HOMEPAGE="https://www.fetchmail.info/"
44 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
45 +
46 +LICENSE="GPL-2 public-domain"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
49 +IUSE="ssl nls kerberos tk socks"
50 +REQUIRED_USE="tk? ( ${PYTHON_REQUIRED_USE} )"
51 +
52 +RDEPEND="acct-user/fetchmail
53 + ssl? (
54 + >=dev-libs/openssl-1.1.1:=
55 + )
56 + kerberos? (
57 + virtual/krb5
58 + >=dev-libs/openssl-1.0.2:=
59 + )
60 + nls? ( virtual/libintl )
61 + !elibc_glibc? ( sys-fs/e2fsprogs )
62 + socks? ( net-proxy/dante )
63 + tk? (
64 + ${PYTHON_DEPS}
65 + $(python_gen_cond_dep '
66 + dev-python/future[${PYTHON_USEDEP}]
67 + ')
68 + )"
69 +DEPEND="${RDEPEND}
70 + app-arch/xz-utils
71 + sys-devel/flex
72 + nls? ( sys-devel/gettext )"
73 +
74 +DOCS="FAQ FEATURES NEWS NOTES README README.NTLM README.SSL* TODO"
75 +HTML_DOCS="*.html"
76 +PATCHES=(
77 + "${FILESDIR}"/${PN}-6.3.26-python-optional.patch
78 +)
79 +S=${WORKDIR}/${P/_/.}
80 +
81 +pkg_setup() {
82 + use tk && python-single-r1_pkg_setup
83 +}
84 +
85 +src_prepare() {
86 + default
87 + # don't compile during src_install
88 + use tk && : > "${S}"/py-compile
89 + eautoreconf
90 +}
91 +
92 +src_configure() {
93 + use tk || export PYTHON=:
94 +
95 + econf \
96 + --enable-RPA \
97 + --enable-NTLM \
98 + --enable-SDPS \
99 + $(use_enable nls) \
100 + $(use_with ssl ssl "${EPREFIX}/usr") \
101 + $(use kerberos && echo "--with-ssl=${EPREFIX}/usr") \
102 + $(use_with kerberos gssapi) \
103 + $(use_with kerberos kerberos5) \
104 + --without-hesiod \
105 + $(use_with socks)
106 +}
107 +
108 +src_compile() {
109 + emake AR="$(tc-getAR)"
110 +}
111 +
112 +src_install() {
113 + default
114 +
115 + newinitd "${FILESDIR}"/fetchmail.initd fetchmail
116 + newconfd "${FILESDIR}"/fetchmail.confd fetchmail
117 +
118 + systemd_dounit "${FILESDIR}"/${PN}.service
119 + systemd_newunit "${FILESDIR}"/${PN}_at.service "${PN}@.service"
120 + dotmpfiles "${FILESDIR}"/${PN}.conf
121 +
122 + docinto contrib
123 + local f
124 + for f in contrib/* ; do
125 + [ -f "${f}" ] && dodoc "${f}"
126 + done
127 +
128 + use tk && python_optimize
129 +}
130 +
131 +pkg_postinst() {
132 + tmpfiles_process ${PN}.conf
133 +
134 + if [[ -z ${REPLACING_VERSIONS} ]]; then
135 + elog "Please see /etc/conf.d/fetchmail if you want to adjust"
136 + elog "the polling delay used by the fetchmail init script."
137 + fi
138 +}