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