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