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