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