1 |
commit: 6fecf28086de01bae46e761a964c9ead6158899f |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 4 10:39:21 2021 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 4 10:39:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fecf280 |
7 |
|
8 |
net-mail/courier-imap: remove old masked version |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
net-mail/courier-imap/Manifest | 1 - |
14 |
net-mail/courier-imap/courier-imap-4.18.2.ebuild | 238 ----------------------- |
15 |
2 files changed, 239 deletions(-) |
16 |
|
17 |
diff --git a/net-mail/courier-imap/Manifest b/net-mail/courier-imap/Manifest |
18 |
index 319d514ce8b..ae5df5d8f41 100644 |
19 |
--- a/net-mail/courier-imap/Manifest |
20 |
+++ b/net-mail/courier-imap/Manifest |
21 |
@@ -1,3 +1,2 @@ |
22 |
-DIST courier-imap-4.18.2.tar.bz2 3205230 BLAKE2B dd52c55698ac4307a52ef76ed6ca54d4289e00aacff487609cfe01bce351e180561b4bec4904e2701a0c05916bbac2e301409530ccbdcd08474b50be4c1365e3 SHA512 821f0151012f1a357faf705d938d8498a939cc994957398c0d5e2b7a619eabe202549f174e625161545ba6a94b753072458e9f0edc30cbb2443b15405740347e |
23 |
DIST courier-imap-5.1.2.tar.bz2 3361084 BLAKE2B 0b42ec3a765c1adf425408f72b34beb7626bb9707df5adbc86b61cf60a12c3cbcad808a3173441666925f3ac4e44c137b611d4c8213566e2dc2e8fb8122d37c8 SHA512 697b7c91ea603ae67a3c167238841dcad266c6262965e7753bb2d2efee3a434c405ea55d35393330f7a55c2efc2cefbcca339c8b8f4867513e5157acc42c498d |
24 |
DIST courier-imap-5.1.3.tar.bz2 3361334 BLAKE2B 750a0fdca6882b26a7f9eef062b516a2d9271e6f73b8cd999653fc37947ffcfcbe7bb88c246be0e662f235b04c5a6f7d5dc7e06010075353670ecb1a2ca413ff SHA512 6685fe596eefcdc976f23aa115b3bc3d13e14421b1d430eb59a4bbee419ba86cb190e536871b42cbebba96160a3894cdef86571ae10bd7ee052cb7e7f8552dca |
25 |
|
26 |
diff --git a/net-mail/courier-imap/courier-imap-4.18.2.ebuild b/net-mail/courier-imap/courier-imap-4.18.2.ebuild |
27 |
deleted file mode 100644 |
28 |
index 8b034286d89..00000000000 |
29 |
--- a/net-mail/courier-imap/courier-imap-4.18.2.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,238 +0,0 @@ |
32 |
-# Copyright 1999-2021 Gentoo Authors |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=6 |
36 |
-inherit autotools libtool readme.gentoo-r1 systemd |
37 |
- |
38 |
-DESCRIPTION="An IMAP daemon designed specifically for maildirs" |
39 |
-HOMEPAGE="https://www.courier-mta.org/imap/" |
40 |
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
41 |
- |
42 |
-LICENSE="GPL-3" |
43 |
-SLOT="0" |
44 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
45 |
- |
46 |
-IUSE="berkdb debug fam +gdbm gnutls ipv6 selinux trashquota" |
47 |
-REQUIRED_USE="|| ( berkdb gdbm )" |
48 |
- |
49 |
-CDEPEND=" |
50 |
- gnutls? ( net-libs/gnutls ) |
51 |
- !gnutls? ( |
52 |
- dev-libs/openssl:0= |
53 |
- ) |
54 |
- >=net-libs/courier-authlib-0.66.4 |
55 |
- >=net-libs/courier-unicode-2 |
56 |
- >=net-mail/mailbase-0.00-r8 |
57 |
- berkdb? ( sys-libs/db:= ) |
58 |
- fam? ( virtual/fam ) |
59 |
- gdbm? ( >=sys-libs/gdbm-1.8.0 ) |
60 |
-" |
61 |
-DEPEND="${CDEPEND} |
62 |
- dev-lang/perl |
63 |
- !mail-mta/courier |
64 |
- userland_GNU? ( sys-process/procps ) |
65 |
-" |
66 |
-RDEPEND="${CDEPEND} |
67 |
- selinux? ( sec-policy/selinux-courier ) |
68 |
-" |
69 |
- |
70 |
-# get rid of old style virtual - bug 350792 |
71 |
-RDEPEND="${RDEPEND} |
72 |
- !mail-mta/courier |
73 |
- !net-mail/cyrus-imapd |
74 |
-" |
75 |
- |
76 |
-RC_VER="4.0.6-r1" |
77 |
-INITD_VER="4.0.6-r1" |
78 |
- |
79 |
-# make check is not supported by this package due to the |
80 |
-# --enable-workarounds-for-imap-client-bugs option. |
81 |
-RESTRICT="test" |
82 |
- |
83 |
-DISABLE_AUTOFORMATTING="yes" |
84 |
-DOC_CONTENTS=" |
85 |
-Please read http://www.courier-mta.org/imap/INSTALL.html#upgrading |
86 |
-and remove TLS_DHPARAMS from configuration files or run mkdhparams |
87 |
- |
88 |
-For a quick-start howto please refer to |
89 |
-${PN}-gentoo.readme in /usr/share/doc/${PF} |
90 |
-" |
91 |
- |
92 |
-PATCHES=( |
93 |
- "${FILESDIR}/${PN}-4.17-disable-fam-configure.ac.patch" |
94 |
- "${FILESDIR}/${PN}-4.17-aclocal-fix.patch" |
95 |
-) |
96 |
- |
97 |
-src_prepare() { |
98 |
- default |
99 |
- |
100 |
- # These patches should fix problems detecting BerkeleyDB. |
101 |
- # We now can compile with db4 support. |
102 |
- if use berkdb ; then |
103 |
- eapply "${FILESDIR}/${PN}-4.17-db4-bdbobj_configure.ac.patch" |
104 |
- eapply "${FILESDIR}/${PN}-4.17-db4-configure.ac.patch" |
105 |
- fi |
106 |
- |
107 |
- eautoreconf |
108 |
-} |
109 |
- |
110 |
-src_configure() { |
111 |
- local myconf="" |
112 |
- |
113 |
- # Default to gdbm if both berkdb and gdbm are present. |
114 |
- if use gdbm ; then |
115 |
- einfo "Building with GDBM support" |
116 |
- myconf="${myconf} --with-db=gdbm" |
117 |
- elif use berkdb ; then |
118 |
- einfo "Building with BerkeleyDB support" |
119 |
- myconf="${myconf} --with-db=db" |
120 |
- fi |
121 |
- |
122 |
- if use trashquota ; then |
123 |
- einfo "Building with Trash Quota Support" |
124 |
- myconf="${myconf} --with-trashquota" |
125 |
- fi |
126 |
- |
127 |
- use debug && myconf="${myconf} debug=true" |
128 |
- |
129 |
- econf \ |
130 |
- --disable-root-check \ |
131 |
- --bindir=/usr/sbin \ |
132 |
- --sysconfdir="/etc/${PN}" \ |
133 |
- --libexecdir="/usr/$(get_libdir)/${PN}" \ |
134 |
- --localstatedir="/var/lib/${PN}" \ |
135 |
- --with-authdaemonvar="/var/lib/${PN}/authdaemon" \ |
136 |
- --enable-workarounds-for-imap-client-bugs \ |
137 |
- --with-mailuser=mail \ |
138 |
- --with-mailgroup=mail \ |
139 |
- $(use_with fam) \ |
140 |
- $(use_with ipv6) \ |
141 |
- $(use_with gnutls) \ |
142 |
- ${myconf} |
143 |
- |
144 |
- # Change the pem file location. |
145 |
- sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/imapd.pem:" \ |
146 |
- libs/imap/imapd-ssl.dist || \ |
147 |
- die "sed failed" |
148 |
- |
149 |
- sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/pop3d.pem:" \ |
150 |
- libs/imap/pop3d-ssl.dist || \ |
151 |
- die "sed failed" |
152 |
-} |
153 |
- |
154 |
-#src_compile() { |
155 |
- # spurious failures with parallel compiles, bug #???? |
156 |
-# emake -j1 |
157 |
-#} |
158 |
- |
159 |
-src_install() { |
160 |
- dodir "/var/lib/${PN}" /etc/pam.d |
161 |
- keepdir /var/lib/courier-imap |
162 |
- |
163 |
- default |
164 |
- rm -r "${D}/etc/pam.d" || die |
165 |
- |
166 |
- # Avoid name collisions in /usr/sbin wrt imapd and pop3d |
167 |
- for name in imapd pop3d ; do |
168 |
- mv "${D}/usr/sbin/"{,courier-}${name} \ |
169 |
- || die "failed to rename ${name} to courier-${name}" |
170 |
- done |
171 |
- |
172 |
- # Hack /usr/lib/courier-imap/foo.rc to use ${MAILDIR} instead of |
173 |
- # 'Maildir', and to use /usr/sbin/courier-foo names. |
174 |
- for service in {imapd,pop3d}{,-ssl} ; do |
175 |
- sed -e 's/Maildir/${MAILDIR}/' \ |
176 |
- -i "${D}/usr/$(get_libdir)/${PN}/${service}.rc" \ |
177 |
- || die "sed failed" |
178 |
- sed -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" \ |
179 |
- -i "${D}/usr/$(get_libdir)/${PN}/${service}.rc" \ |
180 |
- || die "sed failed" |
181 |
- done |
182 |
- |
183 |
- # Rename the config files correctly and add a value for ${MAILDIR} |
184 |
- # to them. |
185 |
- for service in {imapd,pop3d}{,-ssl} ; do |
186 |
- mv "${D}/etc/${PN}/${service}"{.dist,} \ |
187 |
- || die "failed to rename ${service}.dist to ${service}" |
188 |
- echo -e '\n# Hardwire a value for ${MAILDIR}' \ |
189 |
- >> "${D}/etc/${PN}/${service}" |
190 |
- echo 'MAILDIR=.maildir' >> "${D}/etc/${PN}/${service}" |
191 |
- echo 'MAILDIRPATH=.maildir' >> "${D}/etc/${PN}/${service}" |
192 |
- done |
193 |
- |
194 |
- for service in imapd pop3d ; do |
195 |
- echo -e '# Put any program for ${PRERUN} here' \ |
196 |
- >> "${D}/etc/${PN}/${service}" |
197 |
- echo 'PRERUN=' >> "${D}/etc/${PN}/${service}" |
198 |
- echo -e '# Put any program for ${LOGINRUN} here' \ |
199 |
- >> "${D}/etc/${PN}/${service}" |
200 |
- echo -e '# this is for relay-ctrl-allow in 4*' \ |
201 |
- >> "${D}/etc/${PN}/${service}" |
202 |
- echo 'LOGINRUN=' >> "${D}/etc/${PN}/${service}" |
203 |
- done |
204 |
- |
205 |
- for x in "${D}/usr/sbin"/* ; do |
206 |
- if [[ -L "${x}" ]] ; then |
207 |
- rm "${x}" || die "failed to remove ${x}" |
208 |
- fi |
209 |
- done |
210 |
- |
211 |
- mv "${D}/usr/share"/* "${D}/usr/sbin/" || die |
212 |
- mv "${D}/usr/sbin/man" "${D}/usr/share/" || die |
213 |
- |
214 |
- rm "${D}/usr/sbin/"{mkimapdcert,mkpop3dcert} || die |
215 |
- |
216 |
- dosbin "${FILESDIR}/mkimapdcert" "${FILESDIR}/mkpop3dcert" |
217 |
- |
218 |
- dosym ../../sbin/courierlogger "/usr/$(get_libdir)/${PN}/courierlogger" |
219 |
- |
220 |
- for initd in courier-{imapd,pop3d}{,-ssl} ; do |
221 |
- sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ |
222 |
- "${FILESDIR}/${PN}-${INITD_VER}-${initd}.rc6" \ |
223 |
- > "${T}/${initd}" \ |
224 |
- || die "initd libdir-sed failed" |
225 |
- doinitd "${T}/${initd}" |
226 |
- done |
227 |
- |
228 |
- systemd_newunit "${FILESDIR}"/courier-authdaemond-r1.service \ |
229 |
- courier-authdaemond.service |
230 |
- systemd_newunit "${FILESDIR}"/courier-imapd-ssl-r1.service \ |
231 |
- courier-imapd-ssl.service |
232 |
- systemd_newunit "${FILESDIR}"/courier-imapd-r1.service \ |
233 |
- courier-imapd.service |
234 |
- |
235 |
- exeinto "/usr/$(get_libdir)/${PN}" |
236 |
- for exe in gentoo-{imapd,pop3d}{,-ssl}.rc courier-{imapd,pop3d}.indirect ; do |
237 |
- sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ |
238 |
- "${FILESDIR}/${PN}-${RC_VER}-${exe}" \ |
239 |
- > "${T}/${exe}" \ |
240 |
- || die "exe libdir-sed failed" |
241 |
- doexe "${T}/${exe}" |
242 |
- done |
243 |
- |
244 |
- # Avoid a collision with mail-mta/netqmail, bug 482098. |
245 |
- mv "${D}/usr/sbin/"{,courier-}maildirmake \ |
246 |
- || die "failed to rename maildirmake to courier-maildirmake" |
247 |
- mv "${D}/usr/share/man/man1/"{,courier-}maildirmake.1 \ |
248 |
- || die "failed to rename maildirmake.1 to courier-maildirmake.1" |
249 |
- |
250 |
- dodoc AUTHORS INSTALL NEWS README ChangeLog |
251 |
- readme.gentoo_create_doc |
252 |
- dodoc "${FILESDIR}/${PN}-gentoo.readme" |
253 |
- docinto imap |
254 |
- dodoc libs/imap/ChangeLog libs/imap/BUGS* libs/imap/README* |
255 |
- docinto maildir |
256 |
- dodoc libs/maildir/AUTHORS libs/maildir/*.html libs/maildir/README* |
257 |
- docinto rfc2045 |
258 |
- dodoc libs/rfc2045/*.html |
259 |
- docinto tcpd |
260 |
- dodoc libs/tcpd/README* libs/tcpd/*.html |
261 |
-} |
262 |
- |
263 |
-pkg_postinst() { |
264 |
- # Some users have been reporting that permissions on this directory were |
265 |
- # getting scrambled, so let's ensure that they are sane. |
266 |
- fperms 0755 "${ROOT}/usr/$(get_libdir)/${PN}" |
267 |
- |
268 |
- readme.gentoo_print_elog |
269 |
-} |