1 |
hanno 10/10/10 18:35:37 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: courier-authlib-0.63.0-r1.ebuild |
5 |
Removed: courier-authlib-0.61.1.ebuild |
6 |
courier-authlib-0.60.6.ebuild |
7 |
courier-authlib-0.61.0.ebuild |
8 |
Log: |
9 |
courier-authlib: remove bash-ism from init script |
10 |
|
11 |
(Portage version: 2.1.9.14/cvs/Linux x86_64) |
12 |
|
13 |
Revision Changes Path |
14 |
1.111 net-libs/courier-authlib/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/courier-authlib/ChangeLog?rev=1.111&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/courier-authlib/ChangeLog?rev=1.111&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/courier-authlib/ChangeLog?r1=1.110&r2=1.111 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v |
23 |
retrieving revision 1.110 |
24 |
retrieving revision 1.111 |
25 |
diff -u -r1.110 -r1.111 |
26 |
--- ChangeLog 16 Jul 2010 09:15:04 -0000 1.110 |
27 |
+++ ChangeLog 10 Oct 2010 18:35:37 -0000 1.111 |
28 |
@@ -1,6 +1,13 @@ |
29 |
# ChangeLog for net-libs/courier-authlib |
30 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v 1.110 2010/07/16 09:15:04 fauli Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v 1.111 2010/10/10 18:35:37 hanno Exp $ |
33 |
+ |
34 |
+*courier-authlib-0.63.0-r1 (10 Oct 2010) |
35 |
+ |
36 |
+ 10 Oct 2010; Hanno Boeck <hanno@g.o> |
37 |
+ +courier-authlib-0.63.0-r1.ebuild, +files/courier-authlib-r1: |
38 |
+ Remove bash-ism from init script, see #340174, thanks to Alec Moskvin for |
39 |
+ patch. |
40 |
|
41 |
16 Jul 2010; Christian Faulhammer <fauli@g.o> |
42 |
courier-authlib-0.63.0.ebuild: |
43 |
|
44 |
|
45 |
|
46 |
1.1 net-libs/courier-authlib/courier-authlib-0.63.0-r1.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.63.0-r1.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.63.0-r1.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: courier-authlib-0.63.0-r1.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2010 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.63.0-r1.ebuild,v 1.1 2010/10/10 18:35:37 hanno Exp $ |
56 |
|
57 |
inherit eutils flag-o-matic |
58 |
|
59 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
60 |
|
61 |
DESCRIPTION="Courier authentication library." |
62 |
SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
63 |
HOMEPAGE="http://www.courier-mta.org/" |
64 |
LICENSE="GPL-3" |
65 |
SLOT="0" |
66 |
IUSE="berkdb crypt debug gdbm ldap mysql pam postgres vpopmail" |
67 |
|
68 |
RESTRICT="userpriv |
69 |
!berkdb? ( test )" |
70 |
|
71 |
RDEPEND="gdbm? ( sys-libs/gdbm ) |
72 |
!gdbm? ( sys-libs/db )" |
73 |
|
74 |
DEPEND="${RDEPEND} |
75 |
>=dev-libs/openssl-0.9.6 |
76 |
ldap? ( >=net-nds/openldap-1.2.11 ) |
77 |
mysql? ( virtual/mysql ) |
78 |
pam? ( virtual/pam ) |
79 |
postgres? ( >=dev-db/postgresql-base-8.4 )" |
80 |
|
81 |
pkg_setup() { |
82 |
enewuser mail -1 -1 /var/spool/mail |
83 |
|
84 |
if ! has_version 'dev-tcltk/expect' ; then |
85 |
ewarn 'The dev-tcltk/expect package is not installed.' |
86 |
ewarn 'Without it, you will not be able to change system login passwords.' |
87 |
ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' |
88 |
ewarn 'and others) will work just fine.' |
89 |
fi |
90 |
|
91 |
if use vpopmail ; then |
92 |
eerror |
93 |
eerror "vpopmail support has been removed, it's unmaintained upstream and will be" |
94 |
eerror "removed with the next release." |
95 |
eerror |
96 |
eerror "Please remove vpopmail USE-flag." |
97 |
die "vpopmail support removed" |
98 |
fi |
99 |
|
100 |
} |
101 |
|
102 |
src_compile() { |
103 |
filter-flags -fomit-frame-pointer |
104 |
|
105 |
local myconf="" |
106 |
|
107 |
myconf="${myconf} `use_with pam authpam`" |
108 |
myconf="${myconf} `use_with ldap authldap`" |
109 |
|
110 |
if use berkdb ; then |
111 |
if use gdbm ; then |
112 |
ewarn "Both gdbm and berkdb selected. Using gdbm." |
113 |
else |
114 |
myconf="${myconf} --with-db=db" |
115 |
fi |
116 |
fi |
117 |
use gdbm && myconf="${myconf} --with-db=gdbm" |
118 |
|
119 |
myconf="${myconf} --without-authvchkpw `use_with mysql authmysql` `use_with postgres authpgsql`" |
120 |
|
121 |
use debug && myconf="${myconf} debug=true" |
122 |
|
123 |
einfo "Configuring courier-authlib: ${myconf}" |
124 |
|
125 |
econf \ |
126 |
--sysconfdir=/etc/courier \ |
127 |
--datadir=/usr/share/courier \ |
128 |
--libexecdir=/usr/$(get_libdir)/courier \ |
129 |
--localstatedir=/var/lib/courier \ |
130 |
--sharedstatedir=/var/lib/courier/com \ |
131 |
--with-authdaemonvar=/var/lib/courier/authdaemon \ |
132 |
--with-authshadow \ |
133 |
--without-redhat \ |
134 |
--with-mailuser=mail \ |
135 |
--with-mailgroup=mail \ |
136 |
--cache-file="${S}/configuring.cache" \ |
137 |
${myconf} || die "econf failed" |
138 |
emake || die "emake failed" |
139 |
} |
140 |
|
141 |
orderfirst() { |
142 |
file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" |
143 |
if [[ -e "${file}" ]] ; then |
144 |
orig="$(grep \"^${option}=\" ${file} | cut -d'\"' -f 2)" |
145 |
new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" |
146 |
sed -i -e "s/^${option}=.*$/${new}/" "${file}" |
147 |
fi |
148 |
} |
149 |
|
150 |
finduserdb() { |
151 |
for dir in \ |
152 |
/etc/courier/authlib /etc/courier /etc/courier-imap \ |
153 |
/usr/lib/courier/etc /usr/lib/courier-imap/etc \ |
154 |
/usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ |
155 |
/usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ |
156 |
/usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do |
157 |
if [[ -e "${dir}/userdb" ]] ; then |
158 |
einfo "Found userdb at: ${dir}/userdb" |
159 |
cp -f "${dir}/userdb" "${D}/etc/courier/authlib/" |
160 |
chmod go-rwx "${D}/etc/courier/authlib/userdb" |
161 |
continue |
162 |
fi |
163 |
done |
164 |
} |
165 |
|
166 |
src_install() { |
167 |
diropts -o mail -g mail |
168 |
dodir /etc/courier |
169 |
keepdir /var/lib/courier/authdaemon |
170 |
keepdir /etc/courier/authlib |
171 |
emake DESTDIR="${D}" install || die "emake install failed" |
172 |
[[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb |
173 |
emake DESTDIR="${D}" install-configure || die "emake install-configure failed" |
174 |
rm -f "${D}"/etc/courier/authlib/*.bak |
175 |
chown mail:mail "${D}"/etc/courier/authlib/* |
176 |
for y in "${D}"/etc/courier/authlib/*.dist ; do |
177 |
[[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" |
178 |
done |
179 |
use pam && orderfirst authdaemonrc authmodulelist authpam |
180 |
use ldap && orderfirst authdaemonrc authmodulelist authldap |
181 |
use postgres && orderfirst authdaemonrc authmodulelist authpgsql |
182 |
use mysql && orderfirst authdaemonrc authmodulelist authmysql |
183 |
dodoc AUTHORS ChangeLog* INSTALL NEWS README |
184 |
dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html |
185 |
if use mysql ; then |
186 |
dodoc README.authmysql.myownquery |
187 |
dohtml README.authmysql.html |
188 |
fi |
189 |
if use postgres ; then |
190 |
dohtml README.authpostgres.html README.authmysql.html |
191 |
fi |
192 |
if use ldap ; then |
193 |
dodoc README.ldap |
194 |
dodir /etc/openldap/schema |
195 |
cp -f authldap.schema "${D}/etc/openldap/schema/" |
196 |
fi |
197 |
newinitd "${FILESDIR}/${PN}-r1" "${PN}" || die "doinitd failed" |
198 |
} |
199 |
|
200 |
pkg_postinst() { |
201 |
if [[ -e /etc/courier/authlib/userdb ]] ; then |
202 |
einfo "Running makeuserdb ..." |
203 |
chmod go-rwx /etc/courier/authlib/userdb |
204 |
makeuserdb |
205 |
fi |
206 |
|
207 |
# Suggest cleaning out the following old files |
208 |
list="$(find /etc/courier -maxdepth 1 -type f | grep \"^/etc/courier/auth\")" |
209 |
if [[ ! -z "${list}" ]] ; then |
210 |
ewarn "Courier authentication files are now in /etc/courier/authlib/" |
211 |
elog "The following files are no longer needed and can likely be removed:" |
212 |
elog " rm $(echo \"${list}\")" |
213 |
fi |
214 |
} |