1 |
commit: b5ca03162110b60f61d677dc63e0b03396bf0d95 |
2 |
Author: Hanno <hanno <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 22 15:34:48 2019 +0000 |
4 |
Commit: Hanno Boeck <hanno <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 22 15:34:48 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5ca0316 |
7 |
|
8 |
net-libs/courier-authlib: Remove broken version. |
9 |
|
10 |
This version contained removal of la files which doesn't work. |
11 |
Remove the ebuild so noone accidentally installs it. |
12 |
|
13 |
Resolves: https://bugs.gentoo.org/674546 |
14 |
Signed-off-by: Hanno Boeck <hanno <AT> gentoo.org> |
15 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
16 |
|
17 |
.../courier-authlib/courier-authlib-0.69.0.ebuild | 150 --------------------- |
18 |
1 file changed, 150 deletions(-) |
19 |
|
20 |
diff --git a/net-libs/courier-authlib/courier-authlib-0.69.0.ebuild b/net-libs/courier-authlib/courier-authlib-0.69.0.ebuild |
21 |
deleted file mode 100644 |
22 |
index 9aee2b60eda..00000000000 |
23 |
--- a/net-libs/courier-authlib/courier-authlib-0.69.0.ebuild |
24 |
+++ /dev/null |
25 |
@@ -1,150 +0,0 @@ |
26 |
-# Copyright 1999-2019 Gentoo Authors |
27 |
-# Distributed under the terms of the GNU General Public License v2 |
28 |
- |
29 |
-EAPI=7 |
30 |
-inherit flag-o-matic |
31 |
- |
32 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
33 |
- |
34 |
-DESCRIPTION="Courier authentication library" |
35 |
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
36 |
-HOMEPAGE="https://www.courier-mta.org/authlib/" |
37 |
-LICENSE="GPL-3" |
38 |
-SLOT="0" |
39 |
-IUSE="berkdb crypt debug gdbm ldap libressl mysql pam postgres sqlite static-libs" |
40 |
- |
41 |
-RESTRICT="!berkdb? ( test )" |
42 |
- |
43 |
-DEPEND="net-mail/mailbase |
44 |
- >=net-libs/courier-unicode-2.1 |
45 |
- gdbm? ( sys-libs/gdbm ) |
46 |
- !gdbm? ( sys-libs/db:= ) |
47 |
- !libressl? ( dev-libs/openssl:0= ) |
48 |
- libressl? ( dev-libs/libressl:= ) |
49 |
- ldap? ( >=net-nds/openldap-1.2.11 ) |
50 |
- mysql? ( dev-db/mysql-connector-c ) |
51 |
- pam? ( virtual/pam ) |
52 |
- postgres? ( dev-db/postgresql:= ) |
53 |
- sqlite? ( dev-db/sqlite:3 )" |
54 |
- |
55 |
-RDEPEND="${DEPEND}" |
56 |
- |
57 |
-pkg_setup() { |
58 |
- if ! has_version 'dev-tcltk/expect' ; then |
59 |
- ewarn 'The dev-tcltk/expect package is not installed.' |
60 |
- ewarn 'Without it, you will not be able to change system login passwords.' |
61 |
- ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' |
62 |
- ewarn 'and others) will work just fine.' |
63 |
- fi |
64 |
-} |
65 |
- |
66 |
-src_configure() { |
67 |
- filter-flags -fomit-frame-pointer |
68 |
- local myconf |
69 |
- if use berkdb ; then |
70 |
- if use gdbm ; then |
71 |
- ewarn "Both gdbm and berkdb selected. Using gdbm." |
72 |
- else |
73 |
- myconf="--with-db=db" |
74 |
- fi |
75 |
- fi |
76 |
- use gdbm && myconf="--with-db=gdbm" |
77 |
- use debug && myconf+=" debug=true" |
78 |
- use sqlite && myconf+=" --with-sqlite-libs" |
79 |
- |
80 |
- econf \ |
81 |
- --sysconfdir=/etc/courier \ |
82 |
- --datadir=/usr/share/courier \ |
83 |
- --localstatedir=/var/lib/courier \ |
84 |
- --sharedstatedir=/var/lib/courier/com \ |
85 |
- --with-authdaemonvar=/var/lib/courier/authdaemon \ |
86 |
- --with-authshadow \ |
87 |
- --without-redhat \ |
88 |
- --with-mailuser=mail \ |
89 |
- --with-mailgroup=mail \ |
90 |
- --cache-file="${S}/configuring.cache" \ |
91 |
- $(use_with pam authpam) \ |
92 |
- $(use_with ldap authldap) \ |
93 |
- $(use_with mysql authmysql) \ |
94 |
- $(use_with postgres authpgsql) \ |
95 |
- $(use_with sqlite authsqlite) \ |
96 |
- ${myconf} |
97 |
-} |
98 |
- |
99 |
-orderfirst() { |
100 |
- file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" |
101 |
- if [[ -e "${file}" ]] ; then |
102 |
- orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" |
103 |
- new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" |
104 |
- sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die |
105 |
- fi |
106 |
-} |
107 |
- |
108 |
-finduserdb() { |
109 |
- for dir in \ |
110 |
- /etc/courier/authlib /etc/courier /etc/courier-imap \ |
111 |
- /usr/lib/courier/etc /usr/lib/courier-imap/etc \ |
112 |
- /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ |
113 |
- /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ |
114 |
- /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do |
115 |
- if [[ -e "${dir}/userdb" ]] ; then |
116 |
- einfo "Found userdb at: ${dir}/userdb" |
117 |
- cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die |
118 |
- chmod go-rwx "${D}/etc/courier/authlib/userdb" || die |
119 |
- continue |
120 |
- fi |
121 |
- done |
122 |
-} |
123 |
- |
124 |
-src_install() { |
125 |
- diropts -o mail -g mail |
126 |
- dodir /etc/courier |
127 |
- keepdir /var/lib/courier/authdaemon |
128 |
- keepdir /etc/courier/authlib |
129 |
- emake DESTDIR="${D}" install |
130 |
- [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb |
131 |
- emake DESTDIR="${D}" install-configure |
132 |
- rm -f "${D}"/etc/courier/authlib/*.bak |
133 |
- chown mail:mail "${D}"/etc/courier/authlib/* || die |
134 |
- for y in "${D}"/etc/courier/authlib/*.dist ; do |
135 |
- [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" |
136 |
- done |
137 |
- use pam && orderfirst authdaemonrc authmodulelist authpam |
138 |
- use ldap && orderfirst authdaemonrc authmodulelist authldap |
139 |
- use sqlite && orderfirst authdaemonrc authmodulelist authsqlite |
140 |
- use postgres && orderfirst authdaemonrc authmodulelist authpgsql |
141 |
- use mysql && orderfirst authdaemonrc authmodulelist authmysql |
142 |
- |
143 |
- DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) |
144 |
- HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) |
145 |
- if use mysql ; then |
146 |
- DOCS+=( README.authmysql.myownquery ) |
147 |
- HTML_DOCS+=( README.authmysql.html ) |
148 |
- fi |
149 |
- if use postgres ; then |
150 |
- HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) |
151 |
- fi |
152 |
- if use ldap ; then |
153 |
- DOCS+=( README.ldap ) |
154 |
- dodir /etc/openldap/schema |
155 |
- cp -f authldap.schema "${D}/etc/openldap/schema/" || die |
156 |
- fi |
157 |
- if use sqlite ; then |
158 |
- HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) |
159 |
- fi |
160 |
- einstalldocs |
161 |
- |
162 |
- newinitd "${FILESDIR}/${PN}-r2" "${PN}" |
163 |
- |
164 |
- use static-libs || find "${D}" -name "*.a" -delete |
165 |
- |
166 |
- find "${D}" -name '*.la' -delete || die |
167 |
-} |
168 |
- |
169 |
-pkg_postinst() { |
170 |
- if [[ -e /etc/courier/authlib/userdb ]] ; then |
171 |
- einfo "Running makeuserdb ..." |
172 |
- chmod go-rwx /etc/courier/authlib/userdb || die |
173 |
- makeuserdb |
174 |
- fi |
175 |
-} |