Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/fdm/
Date: Tue, 25 Jun 2019 14:31:23
Message-Id: 1561472933.5372dc2164679ced7d53b2918059f1dfc76b5ea8.mjo@gentoo
1 commit: 5372dc2164679ced7d53b2918059f1dfc76b5ea8
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 25 14:27:39 2019 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 25 14:28:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5372dc21
7
8 net-mail/fdm: new version 2.0.
9
10 This new version is intended to fix bug 677484 that is killing the
11 build. The previous version is a few years old, and an upgrade is
12 probably easier than patching. The new version also has some other
13 improvements:
14
15 * Courier support was dropped (upstream commit bc34a567).
16
17 * The ./configure script now supports --enable-pcre instead
18 of passing PCRE=1 to "make".
19
20 * The build system installs stuff into the correct locations
21 without us passing variables to "make install".
22
23 * User creation has been moved to pkg_preinst() since the user
24 is only needed at runtime.
25
26 * Use EAPI=7.
27
28 * Drop unused eutils, multilib, and toolchain-funcs eclasses.
29
30 Bug: https://bugs.gentoo.org/677484
31 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
32 Package-Manager: Portage-2.3.66, Repoman-2.3.11
33
34 net-mail/fdm/Manifest | 1 +
35 net-mail/fdm/fdm-2.0.ebuild | 42 ++++++++++++++++++++++++++++++++++++++++++
36 2 files changed, 43 insertions(+)
37
38 diff --git a/net-mail/fdm/Manifest b/net-mail/fdm/Manifest
39 index fcf3fa2af8a..1efb740bd86 100644
40 --- a/net-mail/fdm/Manifest
41 +++ b/net-mail/fdm/Manifest
42 @@ -1 +1,2 @@
43 DIST fdm-1.9.tar.gz 299916 BLAKE2B 0c9bb9514a4d36fb1168be73fe745aa136cea75e0ebde28ab181be7d4b7e093c0bec775222e8a333e14baa90871739fa095a89bf8d1f16a86dee03b6d01021aa SHA512 e7e5c8aae8be3e82ff6015d2d87fd9d0dad4fe24796b4f30d6874f761e2df6900c8940d39de28bb2db6ee3ea3faf494c57149037657d986a3b54db3a6a601ca7
44 +DIST fdm-2.0.tar.gz 313596 BLAKE2B 8b323f4a8953a46773a4e5a1214444dc97db4346f50990fcfb4c9d79ae40bbb73b61e3bf41bc95b76e44f6bed7b398cb210d58901823752e92ca7b83189cbc7e SHA512 14e923202d17083ceb3b91b3a442d7e512c37f3d29535f22d8c0c4e1d57c97acc5d5465d643ed0cf437b3945ef777a6e38da3117219c2d54dcec88ecab1e10d9
45
46 diff --git a/net-mail/fdm/fdm-2.0.ebuild b/net-mail/fdm/fdm-2.0.ebuild
47 new file mode 100644
48 index 00000000000..72b297c3ac2
49 --- /dev/null
50 +++ b/net-mail/fdm/fdm-2.0.ebuild
51 @@ -0,0 +1,42 @@
52 +# Copyright 1999-2019 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=7
56 +
57 +inherit user
58 +
59 +DESCRIPTION="fetch, filter and deliver mail"
60 +HOMEPAGE="https://github.com/nicm/fdm"
61 +SRC_URI="https://github.com/nicm/fdm/releases/download/${PV}/${P}.tar.gz"
62 +
63 +LICENSE="BSD"
64 +SLOT="0"
65 +KEYWORDS="~amd64 ~x86"
66 +IUSE="examples libressl pcre"
67 +
68 +DEPEND="!libressl? ( dev-libs/openssl:0= )
69 + libressl? ( dev-libs/libressl:0= )
70 + sys-libs/tdb
71 + pcre? ( dev-libs/libpcre )"
72 +RDEPEND="${DEPEND}"
73 +
74 +DOCS=( CHANGES README TODO MANUAL )
75 +
76 +src_configure() {
77 + econf $(use_enable pcre)
78 +}
79 +
80 +src_install() {
81 + default
82 +
83 + if use examples ; then
84 + docinto examples
85 + dodoc examples/*
86 + fi
87 +}
88 +
89 +pkg_preinst() {
90 + # This user is hard-coded in fdm.h. If fdm is started as root,
91 + # it will attempt to drop privileges (to this user).
92 + enewuser _fdm
93 +}