Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-auth/nss_ldap: nss_ldap-265-r5.ebuild ChangeLog
Date: Fri, 30 May 2014 14:38:00
Message-Id: 20140530143757.04DDB2004E@flycatcher.gentoo.org
1 mgorny 14/05/30 14:37:56
2
3 Modified: ChangeLog
4 Added: nss_ldap-265-r5.ebuild
5 Log:
6 Enable multilib support.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.86 sys-auth/nss_ldap/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss_ldap/ChangeLog?rev=1.86&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss_ldap/ChangeLog?rev=1.86&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss_ldap/ChangeLog?r1=1.85&r2=1.86
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-auth/nss_ldap/ChangeLog,v
20 retrieving revision 1.85
21 retrieving revision 1.86
22 diff -u -r1.85 -r1.86
23 --- ChangeLog 3 Mar 2014 00:26:20 -0000 1.85
24 +++ ChangeLog 30 May 2014 14:37:56 -0000 1.86
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-auth/nss_ldap
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss_ldap/ChangeLog,v 1.85 2014/03/03 00:26:20 prometheanfire Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss_ldap/ChangeLog,v 1.86 2014/05/30 14:37:56 mgorny Exp $
30 +
31 +*nss_ldap-265-r5 (30 May 2014)
32 +
33 + 30 May 2014; Michał Górny <mgorny@g.o> +nss_ldap-265-r5.ebuild:
34 + Enable multilib support.
35
36 *nss_ldap-265-r4 (03 Mar 2014)
37
38
39
40
41 1.1 sys-auth/nss_ldap/nss_ldap-265-r5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss_ldap/nss_ldap-265-r5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss_ldap/nss_ldap-265-r5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nss_ldap-265-r5.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-auth/nss_ldap/nss_ldap-265-r5.ebuild,v 1.1 2014/05/30 14:37:56 mgorny Exp $
51
52 EAPI=5
53 inherit fixheadtails eutils multilib multilib-minimal autotools prefix
54
55 IUSE="debug ssl sasl kerberos"
56
57 DESCRIPTION="NSS LDAP Module"
58 HOMEPAGE="http://www.padl.com/OSS/nss_ldap.html"
59 SRC_URI="http://www.padl.com/download/${P}.tar.gz"
60
61 SLOT="0"
62 LICENSE="LGPL-2"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
64
65 DEPEND=">=net-nds/openldap-2.1.30-r5[${MULTILIB_USEDEP}]
66 sasl? ( dev-libs/cyrus-sasl )
67 kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
68 ssl? ( dev-libs/openssl[${MULTILIB_USEDEP}] )"
69 RDEPEND="${DEPEND}
70 !<net-fs/autofs-4.1.3
71 abi_x86_32? (
72 !<=app-emulation/emul-linux-x86-baselibs-20140508-r7
73 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
74 )"
75
76 src_prepare() {
77 if use prefix; then
78 epatch "${FILESDIR}"/${P}-installdir.patch
79 eprefixify Makefile.am
80 fi
81
82 # bug 438692
83 epatch "${FILESDIR}"/${P}-pthread.patch
84
85 epatch "${FILESDIR}"/nsswitch.ldap.diff
86
87 # Applied by upstream
88 #epatch "${FILESDIR}"/${PN}-239-tls-security-bug.patch
89
90 epatch "${FILESDIR}"/${PN}-249-sasl-compile.patch
91
92 EPATCH_OPTS="-p1 -d ${S}" epatch "${FILESDIR}"/${PN}-265-reconnect-timeouts.patch
93
94 # Applied by upstream
95 #EPATCH_OPTS="-p1 -d ${S}" epatch "${FILESDIR}"/${PN}-254-nss_getgrent_skipmembers.patch
96
97 EPATCH_OPTS="-p1 -d ${S}" epatch "${FILESDIR}"/${PN}-257-nss_max_group_depth.patch
98
99 sed -i.orig \
100 -e '/^ @(#)\$Id: ldap.conf,v/s,^,#,' \
101 "${S}"/ldap.conf
102
103 # fix head/tail stuff
104 ht_fix_file "${S}"/Makefile.am "${S}"/Makefile.in "${S}"/depcomp
105
106 # fix build borkage
107 for i in Makefile.{in,am}; do
108 sed -i.orig \
109 -e '/^install-exec-local: nss_ldap.so/s,nss_ldap.so,,g' \
110 "${S}"/$i
111 done
112
113 epatch "${FILESDIR}"/${PN}-257.2-gssapi-headers.patch
114
115 # Bug #214750, no automagic deps
116 epatch "${FILESDIR}"/${PN}-264-disable-automagic.patch
117
118 # Upstream forgets the version number sometimes
119 #sed -i \
120 # -e "/^AM_INIT_AUTOMAKE/s~2..~$PV~" \
121 # "${S}"/configure.in
122
123 # Include an SONAME
124 epatch "${FILESDIR}"/${PN}-254-soname.patch
125
126 #fix broken oneshot connections
127 epatch "${FILESDIR}/nss_ldap-265-missing-entries-oneshot.patch"
128
129 sed -i \
130 -e 's, vers_string , PERL5LIB="@top_srcdir@" @top_srcdir@/vers_string ,g' \
131 "${S}"/Makefile.am
132
133 if use kernel_FreeBSD; then
134 #fix broken fbsd support
135 EPATCH_OPTS="-p0 -d ${S}" epatch "${FILESDIR}/nss_ldap-265-fbsd.patch"
136 fi
137
138 eautoreconf
139 }
140
141 multilib_src_configure() {
142 local myconf=()
143 use debug && myconf+=( --enable-debugging )
144 use kerberos && myconf+=( --enable-configurable-krb5-ccname-gssapi )
145 multilib_is_native_abi && myconf+=( --libdir="${EPREFIX}/$(get_libdir)" )
146 # --enable-schema-mapping \
147 ECONF_SOURCE=${S} \
148 econf \
149 --with-ldap-lib=openldap \
150 --with-ldap-conf-file="${EPREFIX}/etc/ldap.conf" \
151 --enable-paged-results \
152 --enable-rfc2307bis \
153 $(use_enable ssl) \
154 $(multilib_native_use_enable sasl) \
155 $(use_enable kerberos krb) \
156 "${myconf[@]}"
157
158 if use kernel_FreeBSD; then
159 # configure.in does not properly handle include dependencies
160 echo "#define HAVE_NETINET_IF_ETHER_H 1" >> ${S}/config.h
161 echo "#define HAVE_NET_ROUTE_H 1" >> ${S}/config.h
162 echo "#define HAVE_RESOLV_H 1" >> ${S}/config.h
163 fi
164 }
165
166 multilib_src_install() {
167 if use kernel_FreeBSD; then
168 emake -j1 DESTDIR="${D}" install
169 else
170 emake -j1 DESTDIR="${D}" install \
171 INST_UID=${PORTAGE_USER:-root} INST_GID=${PORTAGE_GROUP:-root}
172 fi
173 }
174
175 multilib_src_install_all() {
176 # dumb /usr/lib* -> /lib* symlinks gone wrong
177 rm -rf "${ED}"/usr/usr
178
179 insinto /etc
180 doins ldap.conf
181
182 # Append two blank lines and some skip entries
183 echo >>"${ED}"/etc/ldap.conf
184 echo >>"${ED}"/etc/ldap.conf
185 sed -i "${ED}"/etc/ldap.conf \
186 -e '$inss_initgroups_ignoreusers ldap,openldap,mysql,syslog,root,postgres'
187
188 dodoc ldap.conf ANNOUNCE NEWS ChangeLog AUTHORS \
189 CVSVersionInfo.txt README nsswitch.ldap certutil
190 docinto docs; dodoc doc/*
191 }
192
193 pkg_postinst() {
194 elog "If you use a ldaps:// string in the 'uri' setting of"
195 elog "your /etc/ldap.conf, you must set 'ssl on'!"
196 }