1 |
eras 12/01/12 07:34:48 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cyrus-sasl-2.1.25-r1.ebuild |
5 |
Log: |
6 |
fix PLAIN and LOGIN with no auxprop - bug #392761 |
7 |
|
8 |
(Portage version: 2.1.10.44/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.241 dev-libs/cyrus-sasl/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/cyrus-sasl/ChangeLog?rev=1.241&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/cyrus-sasl/ChangeLog?rev=1.241&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/cyrus-sasl/ChangeLog?r1=1.240&r2=1.241 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/ChangeLog,v |
20 |
retrieving revision 1.240 |
21 |
retrieving revision 1.241 |
22 |
diff -u -r1.240 -r1.241 |
23 |
--- ChangeLog 4 Jan 2012 22:04:05 -0000 1.240 |
24 |
+++ ChangeLog 12 Jan 2012 07:34:48 -0000 1.241 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-libs/cyrus-sasl |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/ChangeLog,v 1.240 2012/01/04 22:04:05 ranger Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/ChangeLog,v 1.241 2012/01/12 07:34:48 eras Exp $ |
30 |
+ |
31 |
+*cyrus-sasl-2.1.25-r1 (12 Jan 2012) |
32 |
+ |
33 |
+ 12 Jan 2012; Eray Aslan <eras@g.o> +cyrus-sasl-2.1.25-r1.ebuild, |
34 |
+ +files/cyrus-sasl-2.1.25-auxprop.patch: |
35 |
+ fix PLAIN and LOGIN with no auxprop - bug #392761 |
36 |
|
37 |
04 Jan 2012; Brent Baude <ranger@g.o> cyrus-sasl-2.1.23-r6.ebuild: |
38 |
Marking cyrus-sasl-2.1.23-r6 ppc for bug 393387 |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-libs/cyrus-sasl/cyrus-sasl-2.1.25-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/cyrus-sasl/cyrus-sasl-2.1.25-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/cyrus-sasl/cyrus-sasl-2.1.25-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: cyrus-sasl-2.1.25-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/cyrus-sasl-2.1.25-r1.ebuild,v 1.1 2012/01/12 07:34:48 eras Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
inherit eutils flag-o-matic multilib autotools pam java-pkg-opt-2 db-use |
55 |
|
56 |
SASLAUTHD_CONF_VER="2.1.21" |
57 |
|
58 |
DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)." |
59 |
HOMEPAGE="http://cyrusimap.web.cmu.edu/" |
60 |
SRC_URI="ftp://ftp.cyrusimap.org/cyrus-sasl/${P}.tar.gz" |
61 |
|
62 |
LICENSE="as-is" |
63 |
SLOT="2" |
64 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
65 |
IUSE="authdaemond berkdb gdbm kerberos ldapdb openldap mysql pam postgres sample sqlite |
66 |
srp ssl static-libs urandom" |
67 |
|
68 |
DEPEND="authdaemond? ( || ( net-mail/courier-imap mail-mta/courier ) ) |
69 |
berkdb? ( >=sys-libs/db-3.2 ) |
70 |
gdbm? ( >=sys-libs/gdbm-1.8.0 ) |
71 |
kerberos? ( virtual/krb5 ) |
72 |
openldap? ( net-nds/openldap ) |
73 |
mysql? ( virtual/mysql ) |
74 |
pam? ( virtual/pam ) |
75 |
postgres? ( dev-db/postgresql-base ) |
76 |
sqlite? ( dev-db/sqlite:3 ) |
77 |
ssl? ( dev-libs/openssl ) |
78 |
java? ( >=virtual/jdk-1.4 )" |
79 |
RDEPEND="${DEPEND}" |
80 |
|
81 |
pkg_setup() { |
82 |
java-pkg-opt-2_pkg_setup |
83 |
} |
84 |
|
85 |
src_prepare() { |
86 |
epatch "${FILESDIR}"/${P}-sasldb_al.patch |
87 |
epatch "${FILESDIR}"/${P}-saslauthd_libtool.patch |
88 |
epatch "${FILESDIR}"/${P}-avoid_pic_overwrite.patch |
89 |
epatch "${FILESDIR}"/${P}-autotools_fixes.patch |
90 |
epatch "${FILESDIR}"/${P}-as_needed.patch |
91 |
epatch "${FILESDIR}"/${P}-missing_header.patch |
92 |
epatch "${FILESDIR}"/${P}-gssapi.patch |
93 |
epatch "${FILESDIR}"/${P}-lib_before_plugin.patch |
94 |
epatch "${FILESDIR}"/${P}-fix_heimdal.patch |
95 |
epatch "${FILESDIR}"/${P}-auxprop.patch |
96 |
epatch "${FILESDIR}"/${PN}-2.1.23-gss_c_nt_hostbased_service.patch |
97 |
epatch "${FILESDIR}"/${PN}-2.1.23+db-5.0.patch |
98 |
# epatch "${FILESDIR}"/${P}-fix_dovecot_authentication.patch |
99 |
|
100 |
# Use plugindir for sasldir |
101 |
sed -i '/^sasldir =/s:=.*:= $(plugindir):' \ |
102 |
"${S}"/plugins/Makefile.{am,in} || die "sed failed" |
103 |
|
104 |
AT_M4DIR="${S}/cmulocal ${S}/config" eautoreconf |
105 |
} |
106 |
|
107 |
src_configure() { |
108 |
append-flags -fno-strict-aliasing |
109 |
append-cppflags -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DLDAP_DEPRECATED |
110 |
|
111 |
# Java support. |
112 |
use java && export JAVAC="${JAVAC} ${JAVACFLAGS}" |
113 |
|
114 |
local myconf |
115 |
|
116 |
# Add authdaemond support (bug #56523). |
117 |
if use authdaemond ; then |
118 |
myconf="${myconf} --with-authdaemond=/var/lib/courier/authdaemon/socket" |
119 |
fi |
120 |
|
121 |
# Fix for bug #59634. |
122 |
if ! use ssl ; then |
123 |
myconf="${myconf} --without-des" |
124 |
fi |
125 |
|
126 |
if use mysql || use postgres ; then |
127 |
myconf="${myconf} --enable-sql" |
128 |
else |
129 |
myconf="${myconf} --disable-sql" |
130 |
fi |
131 |
|
132 |
# Default to GDBM if both 'gdbm' and 'berkdb' are present. |
133 |
if use gdbm ; then |
134 |
einfo "Building with GNU DB as database backend for your SASLdb" |
135 |
myconf="${myconf} --with-dblib=gdbm" |
136 |
elif use berkdb ; then |
137 |
einfo "Building with BerkeleyDB as database backend for your SASLdb" |
138 |
myconf="${myconf} --with-dblib=berkeley --with-bdb-incdir=$(db_includedir)" |
139 |
else |
140 |
einfo "Building without SASLdb support" |
141 |
myconf="${myconf} --with-dblib=none" |
142 |
fi |
143 |
|
144 |
# Use /dev/urandom instead of /dev/random (bug #46038). |
145 |
if use urandom ; then |
146 |
myconf="${myconf} --with-devrandom=/dev/urandom" |
147 |
fi |
148 |
|
149 |
econf \ |
150 |
--enable-login \ |
151 |
--enable-ntlm \ |
152 |
--enable-auth-sasldb \ |
153 |
--disable-cmulocal \ |
154 |
--disable-krb4 \ |
155 |
--enable-otp \ |
156 |
--without-sqlite \ |
157 |
--with-saslauthd=/var/lib/sasl2 \ |
158 |
--with-pwcheck=/var/lib/sasl2 \ |
159 |
--with-configdir=/etc/sasl2 \ |
160 |
--with-plugindir=/usr/$(get_libdir)/sasl2 \ |
161 |
--with-dbpath=/etc/sasl2/sasldb2 \ |
162 |
$(use_with ssl openssl) \ |
163 |
$(use_with pam) \ |
164 |
$(use_with openldap ldap) \ |
165 |
$(use_enable ldapdb) \ |
166 |
$(use_enable sample) \ |
167 |
$(use_enable kerberos gssapi) \ |
168 |
$(use_enable java) \ |
169 |
$(use_with java javahome ${JAVA_HOME}) \ |
170 |
$(use_with mysql) \ |
171 |
$(use_with postgres pgsql) \ |
172 |
$(use_with sqlite sqlite3 /usr/$(get_libdir)) \ |
173 |
$(use_enable srp) \ |
174 |
$(use_enable static-libs static) \ |
175 |
${myconf} |
176 |
} |
177 |
|
178 |
src_compile() { |
179 |
emake |
180 |
|
181 |
# Default location for java classes breaks OpenOffice (bug #60769). |
182 |
# Thanks to axxo@g.o for the solution. |
183 |
cd "${S}" |
184 |
if use java ; then |
185 |
jar -cvf ${PN}.jar -C java $(find java -name "*.class") |
186 |
fi |
187 |
|
188 |
# Add testsaslauthd (bug #58768). |
189 |
cd "${S}/saslauthd" |
190 |
emake testsaslauthd |
191 |
} |
192 |
|
193 |
src_install() { |
194 |
emake DESTDIR="${D}" install |
195 |
keepdir /var/lib/sasl2 /etc/sasl2 |
196 |
|
197 |
if use sample ; then |
198 |
docinto sample |
199 |
dodoc sample/*.c |
200 |
exeinto /usr/share/doc/${P}/sample |
201 |
doexe sample/client sample/server |
202 |
fi |
203 |
|
204 |
# Default location for java classes breaks OpenOffice (bug #60769). |
205 |
if use java ; then |
206 |
java-pkg_dojar ${PN}.jar |
207 |
java-pkg_regso "${D}/usr/$(get_libdir)/libjavasasl.so" |
208 |
# hackish, don't wanna dig through makefile |
209 |
rm -Rf "${D}/usr/$(get_libdir)/java" |
210 |
docinto "java" |
211 |
dodoc "${S}/java/README" "${FILESDIR}/java.README.gentoo" "${S}"/java/doc/* |
212 |
dodir "/usr/share/doc/${PF}/java/Test" |
213 |
insinto "/usr/share/doc/${PF}/java/Test" |
214 |
doins "${S}"/java/Test/*.java |
215 |
fi |
216 |
|
217 |
docinto "" |
218 |
dodoc AUTHORS ChangeLog NEWS README doc/TODO doc/*.txt |
219 |
newdoc pwcheck/README README.pwcheck |
220 |
dohtml doc/*.html |
221 |
|
222 |
docinto "saslauthd" |
223 |
dodoc saslauthd/{AUTHORS,ChangeLog,LDAP_SASLAUTHD,NEWS,README} |
224 |
|
225 |
newpamd "${FILESDIR}/saslauthd.pam-include" saslauthd |
226 |
|
227 |
newinitd "${FILESDIR}/pwcheck.rc6" pwcheck |
228 |
|
229 |
newinitd "${FILESDIR}/saslauthd2.rc6" saslauthd |
230 |
newconfd "${FILESDIR}/saslauthd-${SASLAUTHD_CONF_VER}.conf" saslauthd |
231 |
|
232 |
newsbin "${S}/saslauthd/testsaslauthd" testsaslauthd |
233 |
|
234 |
use static-libs || find "${D}"/usr/lib*/sasl2 -name 'lib*.la' -delete |
235 |
} |
236 |
|
237 |
pkg_preinst() { |
238 |
preserve_old_lib /usr/$(get_libdir)/libsasl2.so.2.0.23 |
239 |
} |
240 |
|
241 |
pkg_postinst () { |
242 |
# Generate an empty sasldb2 with correct permissions. |
243 |
if ( use berkdb || use gdbm ) && [[ ! -f "${ROOT}/etc/sasl2/sasldb2" ]] ; then |
244 |
einfo "Generating an empty sasldb2 with correct permissions ..." |
245 |
echo "p" | "${ROOT}/usr/sbin/saslpasswd2" -f "${ROOT}/etc/sasl2/sasldb2" -p login \ |
246 |
|| die "Failed to generate sasldb2" |
247 |
"${ROOT}/usr/sbin/saslpasswd2" -f "${ROOT}/etc/sasl2/sasldb2" -d login \ |
248 |
|| die "Failed to delete temp user" |
249 |
chown root:mail "${ROOT}/etc/sasl2/sasldb2" \ |
250 |
|| die "Failed to chown ${ROOT}/etc/sasl2/sasldb2" |
251 |
chmod 0640 "${ROOT}/etc/sasl2/sasldb2" \ |
252 |
|| die "Failed to chmod ${ROOT}/etc/sasl2/sasldb2" |
253 |
fi |
254 |
|
255 |
if use authdaemond ; then |
256 |
elog "You need to add a user running a service using Courier's" |
257 |
elog "authdaemon to the 'mail' group. For example, do:" |
258 |
elog " gpasswd -a postfix mail" |
259 |
elog "to add the 'postfix' user to the 'mail' group." |
260 |
fi |
261 |
|
262 |
preserve_old_lib_notify /usr/$(get_libdir)/libsasl2.so.2.0.23 |
263 |
} |