Gentoo Archives: gentoo-commits

From: "Hanno Boeck (hanno)" <hanno@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/courier-authlib: ChangeLog courier-authlib-0.66.3.ebuild
Date: Mon, 29 Jun 2015 09:41:08
Message-Id: 20150629094044.1E38B73F@oystercatcher.gentoo.org
1 hanno 15/06/29 09:40:44
2
3 Modified: ChangeLog
4 Added: courier-authlib-0.66.3.ebuild
5 Log:
6 Bump, subslot fixes, removal of unneeded eautoreconf, removal of deprecated warnings about old configs.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A5880072BBB51E42)
9
10 Revision Changes Path
11 1.171 net-libs/courier-authlib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/courier-authlib/ChangeLog?rev=1.171&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/courier-authlib/ChangeLog?rev=1.171&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/courier-authlib/ChangeLog?r1=1.170&r2=1.171
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v
20 retrieving revision 1.170
21 retrieving revision 1.171
22 diff -u -r1.170 -r1.171
23 --- ChangeLog 15 May 2015 11:56:33 -0000 1.170
24 +++ ChangeLog 29 Jun 2015 09:40:44 -0000 1.171
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-libs/courier-authlib
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v 1.170 2015/05/15 11:56:33 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v 1.171 2015/06/29 09:40:44 hanno Exp $
30 +
31 +*courier-authlib-0.66.3 (29 Jun 2015)
32 +
33 + 29 Jun 2015; Hanno Boeck <hanno@g.o> +courier-authlib-0.66.3.ebuild:
34 + Bump, subslot fixes, removal of unneeded eautoreconf, removal of deprecated
35 + warnings about old configs.
36
37 15 May 2015; Pacho Ramos <pacho@g.o> courier-authlib-0.66.1.ebuild:
38 ppc stable wrt bug #548176
39
40
41
42 1.1 net-libs/courier-authlib/courier-authlib-0.66.3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.66.3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.66.3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: courier-authlib-0.66.3.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.66.3.ebuild,v 1.1 2015/06/29 09:40:44 hanno Exp $
52
53 EAPI=5
54 inherit eutils flag-o-matic multilib user
55
56 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
57
58 DESCRIPTION="Courier authentication library"
59 SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
60 HOMEPAGE="http://www.courier-mta.org/"
61 LICENSE="GPL-3"
62 SLOT="0"
63 IUSE="berkdb crypt debug gdbm ldap mysql pam postgres sqlite static-libs vpopmail"
64
65 RESTRICT="userpriv
66 !berkdb? ( test )"
67
68 DEPEND="net-mail/mailbase
69 gdbm? ( sys-libs/gdbm )
70 !gdbm? ( sys-libs/db:= )
71 dev-libs/openssl:=
72 ldap? ( >=net-nds/openldap-1.2.11 )
73 mysql? ( virtual/mysql )
74 pam? ( virtual/pam )
75 postgres? ( dev-db/postgresql:= )
76 sqlite? ( dev-db/sqlite:3 )"
77
78 RDEPEND="${DEPEND}"
79
80 pkg_setup() {
81 if ! has_version 'dev-tcltk/expect' ; then
82 ewarn 'The dev-tcltk/expect package is not installed.'
83 ewarn 'Without it, you will not be able to change system login passwords.'
84 ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,'
85 ewarn 'and others) will work just fine.'
86 fi
87 }
88
89 src_configure() {
90 filter-flags -fomit-frame-pointer
91 local myconf
92 if use berkdb ; then
93 if use gdbm ; then
94 ewarn "Both gdbm and berkdb selected. Using gdbm."
95 else
96 myconf="--with-db=db"
97 fi
98 fi
99 use gdbm && myconf="--with-db=gdbm"
100 use debug && myconf+=" debug=true"
101 use sqlite && myconf+=" --with-sqlite-libs"
102
103 econf \
104 --sysconfdir=/etc/courier \
105 --datadir=/usr/share/courier \
106 --libexecdir=/usr/$(get_libdir)/courier \
107 --localstatedir=/var/lib/courier \
108 --sharedstatedir=/var/lib/courier/com \
109 --with-authdaemonvar=/var/lib/courier/authdaemon \
110 --with-authshadow \
111 --without-redhat \
112 --with-mailuser=mail \
113 --with-mailgroup=mail \
114 --cache-file="${S}/configuring.cache" \
115 $(use_with pam authpam) \
116 $(use_with ldap authldap) \
117 $(use_with mysql authmysql) \
118 $(use_with postgres authpgsql) \
119 $(use_with sqlite authsqlite) \
120 ${myconf}
121 }
122
123 orderfirst() {
124 file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}"
125 if [[ -e "${file}" ]] ; then
126 orig="$(grep ^${option}= ${file} | cut -d\" -f 2)"
127 new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\""
128 sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die
129 fi
130 }
131
132 finduserdb() {
133 for dir in \
134 /etc/courier/authlib /etc/courier /etc/courier-imap \
135 /usr/lib/courier/etc /usr/lib/courier-imap/etc \
136 /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \
137 /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \
138 /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do
139 if [[ -e "${dir}/userdb" ]] ; then
140 einfo "Found userdb at: ${dir}/userdb"
141 cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die
142 chmod go-rwx "${D}/etc/courier/authlib/userdb" || die
143 continue
144 fi
145 done
146 }
147
148 src_install() {
149 diropts -o mail -g mail
150 dodir /etc/courier
151 keepdir /var/lib/courier/authdaemon
152 keepdir /etc/courier/authlib
153 emake DESTDIR="${D}" install
154 [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb
155 emake DESTDIR="${D}" install-configure
156 rm -f "${D}"/etc/courier/authlib/*.bak
157 chown mail:mail "${D}"/etc/courier/authlib/* || die
158 for y in "${D}"/etc/courier/authlib/*.dist ; do
159 [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}"
160 done
161 use pam && orderfirst authdaemonrc authmodulelist authpam
162 use ldap && orderfirst authdaemonrc authmodulelist authldap
163 use sqlite && orderfirst authdaemonrc authmodulelist authsqlite
164 use postgres && orderfirst authdaemonrc authmodulelist authpgsql
165 use mysql && orderfirst authdaemonrc authmodulelist authmysql
166 dodoc AUTHORS ChangeLog* INSTALL NEWS README
167 dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html
168 if use mysql ; then
169 dodoc README.authmysql.myownquery
170 dohtml README.authmysql.html
171 fi
172 if use postgres ; then
173 dohtml README.authpostgres.html README.authmysql.html
174 fi
175 if use ldap ; then
176 dodoc README.ldap
177 dodir /etc/openldap/schema
178 cp -f authldap.schema "${D}/etc/openldap/schema/" || die
179 fi
180 if use sqlite ; then
181 dohtml README.authsqlite.html README.authmysql.html
182 fi
183 newinitd "${FILESDIR}/${PN}-r1" "${PN}"
184
185 use static-libs || find "${D}" -name "*.a" -delete
186 }
187
188 pkg_postinst() {
189 if [[ -e /etc/courier/authlib/userdb ]] ; then
190 einfo "Running makeuserdb ..."
191 chmod go-rwx /etc/courier/authlib/userdb || die
192 makeuserdb
193 fi
194 }