Gentoo Archives: gentoo-commits

From: Hanno Boeck <hanno@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/courier-authlib/
Date: Tue, 18 Dec 2018 09:31:19
Message-Id: 1545125465.efd47d31aa6113f111136d40df1f858a73f2b570.hanno@gentoo
1 commit: efd47d31aa6113f111136d40df1f858a73f2b570
2 Author: Hanno <hanno <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 18 09:31:05 2018 +0000
4 Commit: Hanno Boeck <hanno <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 18 09:31:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efd47d31
7
8 net-libs/courier-authlib: Remove old
9
10 Signed-off-by: Hanno Boeck <hanno <AT> gentoo.org>
11 Package-Manager: Portage-2.3.52, Repoman-2.3.12
12
13 net-libs/courier-authlib/Manifest | 2 -
14 .../courier-authlib/courier-authlib-0.66.3.ebuild | 146 --------------------
15 .../courier-authlib-0.66.4-r1.ebuild | 146 --------------------
16 .../courier-authlib/courier-authlib-0.67.0.ebuild | 149 ---------------------
17 .../courier-authlib/courier-authlib-0.68.0.ebuild | 149 ---------------------
18 5 files changed, 592 deletions(-)
19
20 diff --git a/net-libs/courier-authlib/Manifest b/net-libs/courier-authlib/Manifest
21 index 515776ac336..994641106cf 100644
22 --- a/net-libs/courier-authlib/Manifest
23 +++ b/net-libs/courier-authlib/Manifest
24 @@ -1,5 +1,3 @@
25 DIST courier-authlib-0.65.0.tar.bz2 2303751 BLAKE2B 595a91a87d9f0f87ded7db73f88a9a74f8e5140452cab2bada43de9836b4f3e8b123dbb10295493e71e52e1920950f28d67a74ec026ff33c27ffa14024d079a1 SHA512 edc4a51bc0d748e7d6cdbf9e9c67c43eeedd9e3846d91a8eea24613f6fb5125d2e713ef7fd63cbbe1905205f2a406b4ff3f31d7c3fb7028939123dbc728d8e38
26 -DIST courier-authlib-0.66.3.tar.bz2 2085083 BLAKE2B eeb4fe55cf3abd087d6e3a8185f57d7b90ecd12323dcfa0f1a2a0dd2a34e315662569c5beead6bf2d231a5e11592c9568b4ed44fe239c12cd51024db6ffbb146 SHA512 09d97c8efc79d84437feefca13f5161c0e113864b9c971a4a980b359c9c14699f8d07eac6b52ac0a7d30f9770656e672f64c3445ecf4dcad88f51a427310d530
27 DIST courier-authlib-0.66.4.tar.bz2 2192331 BLAKE2B 8fd68153b2defb63bbafb44b34c0f7ab5f7156800dc3eeb3c31fc0952c9a4637d4937babceae624c1a22512076bb11a1a356e0e0332c13d61026470a03b7e1c9 SHA512 0987bc9d33a013ae842e0ea3e4e83ef9d6196c2f923a6970e049a36b8ccddbf0c4465c43c7e27d6718480e981f573795f6417478de1ff685264f3439e8dffdc9
28 -DIST courier-authlib-0.67.0.tar.bz2 2194546 BLAKE2B 2ccb6ed15c2f02d206606f8bba04c9f2da415da3d739e456914e44010c955c9aaeae1f1c0746c8812f5165eb8db1997284e1c378132a6144da2b8f77d77a6eff SHA512 6e3da28d555761177727c44b1422bf5baf6ffbf28f53cea89a4a8e13daa5433803deba1614295d9679c41b5be4750f464e7869a2d3ecbfd91ae84e7281c4f3ef
29 DIST courier-authlib-0.68.0.tar.bz2 2194982 BLAKE2B e463390b49bb3ca147467d3054a83d5a8ce96b604bde0b624c4d7ce81235c6f747e5d847dde794c81c4ad36aeef49bdd27cf904142b4542df833484c5eb7a57e SHA512 5c4adaf0fd69f4b9e780962aa3f9eeac6b15cea3f302288ff4549ce2b0be9ea0808b4501670ef3c4e0419c3d27505c256c082f795dea4683dd5265fd7dcab93b
30
31 diff --git a/net-libs/courier-authlib/courier-authlib-0.66.3.ebuild b/net-libs/courier-authlib/courier-authlib-0.66.3.ebuild
32 deleted file mode 100644
33 index d956b78af02..00000000000
34 --- a/net-libs/courier-authlib/courier-authlib-0.66.3.ebuild
35 +++ /dev/null
36 @@ -1,146 +0,0 @@
37 -# Copyright 1999-2015 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=5
41 -inherit eutils flag-o-matic multilib user
42 -
43 -KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
44 -
45 -DESCRIPTION="Courier authentication library"
46 -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
47 -HOMEPAGE="http://www.courier-mta.org/"
48 -LICENSE="GPL-3"
49 -SLOT="0"
50 -IUSE="berkdb crypt debug gdbm ldap mysql pam postgres sqlite static-libs vpopmail"
51 -
52 -RESTRICT="userpriv
53 - !berkdb? ( test )"
54 -
55 -DEPEND="net-mail/mailbase
56 - =net-libs/courier-unicode-1.3
57 - gdbm? ( sys-libs/gdbm )
58 - !gdbm? ( sys-libs/db:= )
59 - dev-libs/openssl:=
60 - ldap? ( >=net-nds/openldap-1.2.11 )
61 - mysql? ( virtual/mysql )
62 - pam? ( virtual/pam )
63 - postgres? ( dev-db/postgresql:= )
64 - sqlite? ( dev-db/sqlite:3 )"
65 -
66 -RDEPEND="${DEPEND}"
67 -
68 -pkg_setup() {
69 - if ! has_version 'dev-tcltk/expect' ; then
70 - ewarn 'The dev-tcltk/expect package is not installed.'
71 - ewarn 'Without it, you will not be able to change system login passwords.'
72 - ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,'
73 - ewarn 'and others) will work just fine.'
74 - fi
75 -}
76 -
77 -src_configure() {
78 - filter-flags -fomit-frame-pointer
79 - local myconf
80 - if use berkdb ; then
81 - if use gdbm ; then
82 - ewarn "Both gdbm and berkdb selected. Using gdbm."
83 - else
84 - myconf="--with-db=db"
85 - fi
86 - fi
87 - use gdbm && myconf="--with-db=gdbm"
88 - use debug && myconf+=" debug=true"
89 - use sqlite && myconf+=" --with-sqlite-libs"
90 -
91 - econf \
92 - --sysconfdir=/etc/courier \
93 - --datadir=/usr/share/courier \
94 - --libexecdir=/usr/$(get_libdir)/courier \
95 - --localstatedir=/var/lib/courier \
96 - --sharedstatedir=/var/lib/courier/com \
97 - --with-authdaemonvar=/var/lib/courier/authdaemon \
98 - --with-authshadow \
99 - --without-redhat \
100 - --with-mailuser=mail \
101 - --with-mailgroup=mail \
102 - --cache-file="${S}/configuring.cache" \
103 - $(use_with pam authpam) \
104 - $(use_with ldap authldap) \
105 - $(use_with mysql authmysql) \
106 - $(use_with postgres authpgsql) \
107 - $(use_with sqlite authsqlite) \
108 - ${myconf}
109 -}
110 -
111 -orderfirst() {
112 - file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}"
113 - if [[ -e "${file}" ]] ; then
114 - orig="$(grep ^${option}= ${file} | cut -d\" -f 2)"
115 - new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\""
116 - sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die
117 - fi
118 -}
119 -
120 -finduserdb() {
121 - for dir in \
122 - /etc/courier/authlib /etc/courier /etc/courier-imap \
123 - /usr/lib/courier/etc /usr/lib/courier-imap/etc \
124 - /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \
125 - /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \
126 - /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do
127 - if [[ -e "${dir}/userdb" ]] ; then
128 - einfo "Found userdb at: ${dir}/userdb"
129 - cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die
130 - chmod go-rwx "${D}/etc/courier/authlib/userdb" || die
131 - continue
132 - fi
133 - done
134 -}
135 -
136 -src_install() {
137 - diropts -o mail -g mail
138 - dodir /etc/courier
139 - keepdir /var/lib/courier/authdaemon
140 - keepdir /etc/courier/authlib
141 - emake DESTDIR="${D}" install
142 - [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb
143 - emake DESTDIR="${D}" install-configure
144 - rm -f "${D}"/etc/courier/authlib/*.bak
145 - chown mail:mail "${D}"/etc/courier/authlib/* || die
146 - for y in "${D}"/etc/courier/authlib/*.dist ; do
147 - [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}"
148 - done
149 - use pam && orderfirst authdaemonrc authmodulelist authpam
150 - use ldap && orderfirst authdaemonrc authmodulelist authldap
151 - use sqlite && orderfirst authdaemonrc authmodulelist authsqlite
152 - use postgres && orderfirst authdaemonrc authmodulelist authpgsql
153 - use mysql && orderfirst authdaemonrc authmodulelist authmysql
154 - dodoc AUTHORS ChangeLog* INSTALL NEWS README
155 - dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html
156 - if use mysql ; then
157 - dodoc README.authmysql.myownquery
158 - dohtml README.authmysql.html
159 - fi
160 - if use postgres ; then
161 - dohtml README.authpostgres.html README.authmysql.html
162 - fi
163 - if use ldap ; then
164 - dodoc README.ldap
165 - dodir /etc/openldap/schema
166 - cp -f authldap.schema "${D}/etc/openldap/schema/" || die
167 - fi
168 - if use sqlite ; then
169 - dohtml README.authsqlite.html README.authmysql.html
170 - fi
171 - newinitd "${FILESDIR}/${PN}-r1" "${PN}"
172 -
173 - use static-libs || find "${D}" -name "*.a" -delete
174 -}
175 -
176 -pkg_postinst() {
177 - if [[ -e /etc/courier/authlib/userdb ]] ; then
178 - einfo "Running makeuserdb ..."
179 - chmod go-rwx /etc/courier/authlib/userdb || die
180 - makeuserdb
181 - fi
182 -}
183
184 diff --git a/net-libs/courier-authlib/courier-authlib-0.66.4-r1.ebuild b/net-libs/courier-authlib/courier-authlib-0.66.4-r1.ebuild
185 deleted file mode 100644
186 index 2930679a065..00000000000
187 --- a/net-libs/courier-authlib/courier-authlib-0.66.4-r1.ebuild
188 +++ /dev/null
189 @@ -1,146 +0,0 @@
190 -# Copyright 1999-2016 Gentoo Foundation
191 -# Distributed under the terms of the GNU General Public License v2
192 -
193 -EAPI=6
194 -inherit eutils flag-o-matic multilib user
195 -
196 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
197 -
198 -DESCRIPTION="Courier authentication library"
199 -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
200 -HOMEPAGE="http://www.courier-mta.org/"
201 -LICENSE="GPL-3"
202 -SLOT="0"
203 -IUSE="berkdb crypt debug gdbm ldap libressl mysql pam postgres sqlite static-libs"
204 -
205 -RESTRICT="!berkdb? ( test )"
206 -
207 -DEPEND="net-mail/mailbase
208 - >=net-libs/courier-unicode-1.3
209 - gdbm? ( sys-libs/gdbm )
210 - !gdbm? ( sys-libs/db:= )
211 - !libressl? ( dev-libs/openssl:0= )
212 - libressl? ( dev-libs/libressl:= )
213 - ldap? ( >=net-nds/openldap-1.2.11 )
214 - mysql? ( virtual/mysql )
215 - pam? ( virtual/pam )
216 - postgres? ( dev-db/postgresql:= )
217 - sqlite? ( dev-db/sqlite:3 )"
218 -
219 -RDEPEND="${DEPEND}"
220 -
221 -pkg_setup() {
222 - if ! has_version 'dev-tcltk/expect' ; then
223 - ewarn 'The dev-tcltk/expect package is not installed.'
224 - ewarn 'Without it, you will not be able to change system login passwords.'
225 - ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,'
226 - ewarn 'and others) will work just fine.'
227 - fi
228 -}
229 -
230 -src_configure() {
231 - filter-flags -fomit-frame-pointer
232 - local myconf
233 - if use berkdb ; then
234 - if use gdbm ; then
235 - ewarn "Both gdbm and berkdb selected. Using gdbm."
236 - else
237 - myconf="--with-db=db"
238 - fi
239 - fi
240 - use gdbm && myconf="--with-db=gdbm"
241 - use debug && myconf+=" debug=true"
242 - use sqlite && myconf+=" --with-sqlite-libs"
243 -
244 - econf \
245 - --sysconfdir=/etc/courier \
246 - --datadir=/usr/share/courier \
247 - --libexecdir=/usr/$(get_libdir)/courier \
248 - --localstatedir=/var/lib/courier \
249 - --sharedstatedir=/var/lib/courier/com \
250 - --with-authdaemonvar=/var/lib/courier/authdaemon \
251 - --with-authshadow \
252 - --without-redhat \
253 - --with-mailuser=mail \
254 - --with-mailgroup=mail \
255 - --cache-file="${S}/configuring.cache" \
256 - $(use_with pam authpam) \
257 - $(use_with ldap authldap) \
258 - $(use_with mysql authmysql) \
259 - $(use_with postgres authpgsql) \
260 - $(use_with sqlite authsqlite) \
261 - ${myconf}
262 -}
263 -
264 -orderfirst() {
265 - file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}"
266 - if [[ -e "${file}" ]] ; then
267 - orig="$(grep ^${option}= ${file} | cut -d\" -f 2)"
268 - new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\""
269 - sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die
270 - fi
271 -}
272 -
273 -finduserdb() {
274 - for dir in \
275 - /etc/courier/authlib /etc/courier /etc/courier-imap \
276 - /usr/lib/courier/etc /usr/lib/courier-imap/etc \
277 - /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \
278 - /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \
279 - /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do
280 - if [[ -e "${dir}/userdb" ]] ; then
281 - einfo "Found userdb at: ${dir}/userdb"
282 - cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die
283 - chmod go-rwx "${D}/etc/courier/authlib/userdb" || die
284 - continue
285 - fi
286 - done
287 -}
288 -
289 -src_install() {
290 - diropts -o mail -g mail
291 - dodir /etc/courier
292 - keepdir /var/lib/courier/authdaemon
293 - keepdir /etc/courier/authlib
294 - emake DESTDIR="${D}" install
295 - [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb
296 - emake DESTDIR="${D}" install-configure
297 - rm -f "${D}"/etc/courier/authlib/*.bak
298 - chown mail:mail "${D}"/etc/courier/authlib/* || die
299 - for y in "${D}"/etc/courier/authlib/*.dist ; do
300 - [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}"
301 - done
302 - use pam && orderfirst authdaemonrc authmodulelist authpam
303 - use ldap && orderfirst authdaemonrc authmodulelist authldap
304 - use sqlite && orderfirst authdaemonrc authmodulelist authsqlite
305 - use postgres && orderfirst authdaemonrc authmodulelist authpgsql
306 - use mysql && orderfirst authdaemonrc authmodulelist authmysql
307 - dodoc AUTHORS ChangeLog* INSTALL NEWS README
308 - dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html
309 - if use mysql ; then
310 - dodoc README.authmysql.myownquery
311 - dohtml README.authmysql.html
312 - fi
313 - if use postgres ; then
314 - dohtml README.authpostgres.html README.authmysql.html
315 - fi
316 - if use ldap ; then
317 - dodoc README.ldap
318 - dodir /etc/openldap/schema
319 - cp -f authldap.schema "${D}/etc/openldap/schema/" || die
320 - fi
321 - if use sqlite ; then
322 - dohtml README.authsqlite.html README.authmysql.html
323 - fi
324 - newinitd "${FILESDIR}/${PN}-r1" "${PN}"
325 -
326 - use static-libs || find "${D}" -name "*.a" -delete
327 -}
328 -
329 -pkg_postinst() {
330 - if [[ -e /etc/courier/authlib/userdb ]] ; then
331 - einfo "Running makeuserdb ..."
332 - chmod go-rwx /etc/courier/authlib/userdb || die
333 - makeuserdb
334 - fi
335 -}
336
337 diff --git a/net-libs/courier-authlib/courier-authlib-0.67.0.ebuild b/net-libs/courier-authlib/courier-authlib-0.67.0.ebuild
338 deleted file mode 100644
339 index fd7d8f6786c..00000000000
340 --- a/net-libs/courier-authlib/courier-authlib-0.67.0.ebuild
341 +++ /dev/null
342 @@ -1,149 +0,0 @@
343 -# Copyright 1999-2018 Gentoo Foundation
344 -# Distributed under the terms of the GNU General Public License v2
345 -
346 -EAPI=6
347 -inherit flag-o-matic
348 -
349 -KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
350 -
351 -DESCRIPTION="Courier authentication library"
352 -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
353 -HOMEPAGE="http://www.courier-mta.org/"
354 -LICENSE="GPL-3"
355 -SLOT="0"
356 -IUSE="berkdb crypt debug gdbm ldap libressl mysql pam postgres sqlite static-libs"
357 -
358 -RESTRICT="!berkdb? ( test )"
359 -
360 -DEPEND="net-mail/mailbase
361 - >=net-libs/courier-unicode-1.3
362 - gdbm? ( sys-libs/gdbm )
363 - !gdbm? ( sys-libs/db:= )
364 - !libressl? ( dev-libs/openssl:0= )
365 - libressl? ( dev-libs/libressl:= )
366 - ldap? ( >=net-nds/openldap-1.2.11 )
367 - mysql? ( virtual/mysql )
368 - pam? ( virtual/pam )
369 - postgres? ( dev-db/postgresql:= )
370 - sqlite? ( dev-db/sqlite:3 )"
371 -
372 -RDEPEND="${DEPEND}"
373 -
374 -pkg_setup() {
375 - if ! has_version 'dev-tcltk/expect' ; then
376 - ewarn 'The dev-tcltk/expect package is not installed.'
377 - ewarn 'Without it, you will not be able to change system login passwords.'
378 - ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,'
379 - ewarn 'and others) will work just fine.'
380 - fi
381 -}
382 -
383 -src_configure() {
384 - filter-flags -fomit-frame-pointer
385 - local myconf
386 - if use berkdb ; then
387 - if use gdbm ; then
388 - ewarn "Both gdbm and berkdb selected. Using gdbm."
389 - else
390 - myconf="--with-db=db"
391 - fi
392 - fi
393 - use gdbm && myconf="--with-db=gdbm"
394 - use debug && myconf+=" debug=true"
395 - use sqlite && myconf+=" --with-sqlite-libs"
396 -
397 - econf \
398 - --sysconfdir=/etc/courier \
399 - --datadir=/usr/share/courier \
400 - --libexecdir=/usr/$(get_libdir)/courier \
401 - --localstatedir=/var/lib/courier \
402 - --sharedstatedir=/var/lib/courier/com \
403 - --with-authdaemonvar=/var/lib/courier/authdaemon \
404 - --with-authshadow \
405 - --without-redhat \
406 - --with-mailuser=mail \
407 - --with-mailgroup=mail \
408 - --cache-file="${S}/configuring.cache" \
409 - $(use_with pam authpam) \
410 - $(use_with ldap authldap) \
411 - $(use_with mysql authmysql) \
412 - $(use_with postgres authpgsql) \
413 - $(use_with sqlite authsqlite) \
414 - ${myconf}
415 -}
416 -
417 -orderfirst() {
418 - file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}"
419 - if [[ -e "${file}" ]] ; then
420 - orig="$(grep ^${option}= ${file} | cut -d\" -f 2)"
421 - new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\""
422 - sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die
423 - fi
424 -}
425 -
426 -finduserdb() {
427 - for dir in \
428 - /etc/courier/authlib /etc/courier /etc/courier-imap \
429 - /usr/lib/courier/etc /usr/lib/courier-imap/etc \
430 - /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \
431 - /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \
432 - /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do
433 - if [[ -e "${dir}/userdb" ]] ; then
434 - einfo "Found userdb at: ${dir}/userdb"
435 - cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die
436 - chmod go-rwx "${D}/etc/courier/authlib/userdb" || die
437 - continue
438 - fi
439 - done
440 -}
441 -
442 -src_install() {
443 - diropts -o mail -g mail
444 - dodir /etc/courier
445 - keepdir /var/lib/courier/authdaemon
446 - keepdir /etc/courier/authlib
447 - emake DESTDIR="${D}" install
448 - [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb
449 - emake DESTDIR="${D}" install-configure
450 - rm -f "${D}"/etc/courier/authlib/*.bak
451 - chown mail:mail "${D}"/etc/courier/authlib/* || die
452 - for y in "${D}"/etc/courier/authlib/*.dist ; do
453 - [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}"
454 - done
455 - use pam && orderfirst authdaemonrc authmodulelist authpam
456 - use ldap && orderfirst authdaemonrc authmodulelist authldap
457 - use sqlite && orderfirst authdaemonrc authmodulelist authsqlite
458 - use postgres && orderfirst authdaemonrc authmodulelist authpgsql
459 - use mysql && orderfirst authdaemonrc authmodulelist authmysql
460 -
461 - DOCS=( AUTHORS ChangeLog* INSTALL NEWS README )
462 - HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html )
463 - if use mysql ; then
464 - DOCS+=( README.authmysql.myownquery )
465 - HTML_DOCS+=( README.authmysql.html )
466 - fi
467 - if use postgres ; then
468 - HTML_DOCS+=( README.authpostgres.html README.authmysql.html )
469 - fi
470 - if use ldap ; then
471 - DOCS+=( README.ldap )
472 - dodir /etc/openldap/schema
473 - cp -f authldap.schema "${D}/etc/openldap/schema/" || die
474 - fi
475 - if use sqlite ; then
476 - HTML_DOCS+=( README.authsqlite.html README.authmysql.html )
477 - fi
478 - einstalldocs
479 -
480 - newinitd "${FILESDIR}/${PN}-r1" "${PN}"
481 -
482 - use static-libs || find "${D}" -name "*.a" -delete
483 -}
484 -
485 -pkg_postinst() {
486 - if [[ -e /etc/courier/authlib/userdb ]] ; then
487 - einfo "Running makeuserdb ..."
488 - chmod go-rwx /etc/courier/authlib/userdb || die
489 - makeuserdb
490 - fi
491 -}
492
493 diff --git a/net-libs/courier-authlib/courier-authlib-0.68.0.ebuild b/net-libs/courier-authlib/courier-authlib-0.68.0.ebuild
494 deleted file mode 100644
495 index 951b69d639f..00000000000
496 --- a/net-libs/courier-authlib/courier-authlib-0.68.0.ebuild
497 +++ /dev/null
498 @@ -1,149 +0,0 @@
499 -# Copyright 1999-2017 Gentoo Foundation
500 -# Distributed under the terms of the GNU General Public License v2
501 -
502 -EAPI=6
503 -inherit flag-o-matic
504 -
505 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
506 -
507 -DESCRIPTION="Courier authentication library"
508 -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
509 -HOMEPAGE="http://www.courier-mta.org/"
510 -LICENSE="GPL-3"
511 -SLOT="0"
512 -IUSE="berkdb crypt debug gdbm ldap libressl mysql pam postgres sqlite static-libs"
513 -
514 -RESTRICT="!berkdb? ( test )"
515 -
516 -DEPEND="net-mail/mailbase
517 - >=net-libs/courier-unicode-1.3
518 - gdbm? ( sys-libs/gdbm )
519 - !gdbm? ( sys-libs/db:= )
520 - !libressl? ( dev-libs/openssl:0= )
521 - libressl? ( dev-libs/libressl:= )
522 - ldap? ( >=net-nds/openldap-1.2.11 )
523 - mysql? ( virtual/mysql )
524 - pam? ( virtual/pam )
525 - postgres? ( dev-db/postgresql:= )
526 - sqlite? ( dev-db/sqlite:3 )"
527 -
528 -RDEPEND="${DEPEND}"
529 -
530 -pkg_setup() {
531 - if ! has_version 'dev-tcltk/expect' ; then
532 - ewarn 'The dev-tcltk/expect package is not installed.'
533 - ewarn 'Without it, you will not be able to change system login passwords.'
534 - ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,'
535 - ewarn 'and others) will work just fine.'
536 - fi
537 -}
538 -
539 -src_configure() {
540 - filter-flags -fomit-frame-pointer
541 - local myconf
542 - if use berkdb ; then
543 - if use gdbm ; then
544 - ewarn "Both gdbm and berkdb selected. Using gdbm."
545 - else
546 - myconf="--with-db=db"
547 - fi
548 - fi
549 - use gdbm && myconf="--with-db=gdbm"
550 - use debug && myconf+=" debug=true"
551 - use sqlite && myconf+=" --with-sqlite-libs"
552 -
553 - econf \
554 - --sysconfdir=/etc/courier \
555 - --datadir=/usr/share/courier \
556 - --libexecdir=/usr/$(get_libdir)/courier \
557 - --localstatedir=/var/lib/courier \
558 - --sharedstatedir=/var/lib/courier/com \
559 - --with-authdaemonvar=/var/lib/courier/authdaemon \
560 - --with-authshadow \
561 - --without-redhat \
562 - --with-mailuser=mail \
563 - --with-mailgroup=mail \
564 - --cache-file="${S}/configuring.cache" \
565 - $(use_with pam authpam) \
566 - $(use_with ldap authldap) \
567 - $(use_with mysql authmysql) \
568 - $(use_with postgres authpgsql) \
569 - $(use_with sqlite authsqlite) \
570 - ${myconf}
571 -}
572 -
573 -orderfirst() {
574 - file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}"
575 - if [[ -e "${file}" ]] ; then
576 - orig="$(grep ^${option}= ${file} | cut -d\" -f 2)"
577 - new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\""
578 - sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die
579 - fi
580 -}
581 -
582 -finduserdb() {
583 - for dir in \
584 - /etc/courier/authlib /etc/courier /etc/courier-imap \
585 - /usr/lib/courier/etc /usr/lib/courier-imap/etc \
586 - /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \
587 - /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \
588 - /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do
589 - if [[ -e "${dir}/userdb" ]] ; then
590 - einfo "Found userdb at: ${dir}/userdb"
591 - cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die
592 - chmod go-rwx "${D}/etc/courier/authlib/userdb" || die
593 - continue
594 - fi
595 - done
596 -}
597 -
598 -src_install() {
599 - diropts -o mail -g mail
600 - dodir /etc/courier
601 - keepdir /var/lib/courier/authdaemon
602 - keepdir /etc/courier/authlib
603 - emake DESTDIR="${D}" install
604 - [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb
605 - emake DESTDIR="${D}" install-configure
606 - rm -f "${D}"/etc/courier/authlib/*.bak
607 - chown mail:mail "${D}"/etc/courier/authlib/* || die
608 - for y in "${D}"/etc/courier/authlib/*.dist ; do
609 - [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}"
610 - done
611 - use pam && orderfirst authdaemonrc authmodulelist authpam
612 - use ldap && orderfirst authdaemonrc authmodulelist authldap
613 - use sqlite && orderfirst authdaemonrc authmodulelist authsqlite
614 - use postgres && orderfirst authdaemonrc authmodulelist authpgsql
615 - use mysql && orderfirst authdaemonrc authmodulelist authmysql
616 -
617 - DOCS=( AUTHORS ChangeLog* INSTALL NEWS README )
618 - HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html )
619 - if use mysql ; then
620 - DOCS+=( README.authmysql.myownquery )
621 - HTML_DOCS+=( README.authmysql.html )
622 - fi
623 - if use postgres ; then
624 - HTML_DOCS+=( README.authpostgres.html README.authmysql.html )
625 - fi
626 - if use ldap ; then
627 - DOCS+=( README.ldap )
628 - dodir /etc/openldap/schema
629 - cp -f authldap.schema "${D}/etc/openldap/schema/" || die
630 - fi
631 - if use sqlite ; then
632 - HTML_DOCS+=( README.authsqlite.html README.authmysql.html )
633 - fi
634 - einstalldocs
635 -
636 - newinitd "${FILESDIR}/${PN}-r1" "${PN}"
637 -
638 - use static-libs || find "${D}" -name "*.a" -delete
639 -}
640 -
641 -pkg_postinst() {
642 - if [[ -e /etc/courier/authlib/userdb ]] ; then
643 - einfo "Running makeuserdb ..."
644 - chmod go-rwx /etc/courier/authlib/userdb || die
645 - makeuserdb
646 - fi
647 -}