Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/samba-libs: ChangeLog samba-libs-3.5.0_rc3.ebuild
Date: Fri, 19 Feb 2010 17:20:25
Message-Id: E1NiWWd-0001nc-A9@stork.gentoo.org
1 patrick 10/02/19 17:20:23
2
3 Modified: ChangeLog
4 Added: samba-libs-3.5.0_rc3.ebuild
5 Log:
6 Bump for new rc
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.31 net-fs/samba-libs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/ChangeLog?rev=1.31&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/ChangeLog?rev=1.31&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/ChangeLog?r1=1.30&r2=1.31
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba-libs/ChangeLog,v
19 retrieving revision 1.30
20 retrieving revision 1.31
21 diff -u -r1.30 -r1.31
22 --- ChangeLog 26 Jan 2010 19:03:35 -0000 1.30
23 +++ ChangeLog 19 Feb 2010 17:20:22 -0000 1.31
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-fs/samba-libs
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-libs/ChangeLog,v 1.30 2010/01/26 19:03:35 patrick Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-libs/ChangeLog,v 1.31 2010/02/19 17:20:22 patrick Exp $
29 +
30 +*samba-libs-3.5.0_rc3 (19 Feb 2010)
31 +
32 + 19 Feb 2010; Patrick Lauer <patrick@g.o>
33 + +samba-libs-3.5.0_rc3.ebuild:
34 + Bump for new rc
35
36 *samba-libs-3.5.0_rc2 (26 Jan 2010)
37
38
39
40
41 1.1 net-fs/samba-libs/samba-libs-3.5.0_rc3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/samba-libs-3.5.0_rc3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-libs/samba-libs-3.5.0_rc3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: samba-libs-3.5.0_rc3.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-fs/samba-libs/samba-libs-3.5.0_rc3.ebuild,v 1.1 2010/02/19 17:20:22 patrick Exp $
51
52 EAPI="2"
53
54 inherit pam confutils versionator multilib autotools
55
56 MY_PV=${PV/_/}
57 MY_P="samba-${MY_PV}"
58
59 DESCRIPTION="Library bits of the samba network filesystem"
60 HOMEPAGE="http://www.samba.org/"
61 SRC_URI="http://samba.org/samba/ftp/rc/${MY_P}.tar.gz"
62 LICENSE="GPL-3"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
65 IUSE="samba4 ads aio caps cluster cups debug examples ldap pam syslog winbind
66 ldb +netapi +smbclient smbsharemodes addns tools"
67
68 DEPEND="dev-libs/popt
69 sys-libs/talloc
70 sys-libs/tdb
71 virtual/libiconv
72 ads? ( virtual/krb5 sys-fs/e2fsprogs )
73 caps? ( sys-libs/libcap )
74 cluster? ( dev-db/ctdb )
75 cups? ( net-print/cups )
76 debug? ( dev-libs/dmalloc )
77 ldap? ( net-nds/openldap )
78 pam? ( virtual/pam
79 winbind? ( dev-libs/iniparser ) )
80 syslog? ( virtual/logger )
81 !<net-fs/samba-3.3
82 !=net-fs/samba-server-3.4.3[tools]"
83 # last blocker is only temporary for #288516
84
85 RDEPEND="${DEPEND}"
86
87 # Disable tests since we don't want to build that much here
88 RESTRICT="test"
89
90 BINPROGS=""
91
92 if use tools ; then
93 if use ldb ; then BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"; fi
94 fi
95
96 S="${WORKDIR}/${MY_P}/source3"
97
98 # TODO:
99 # - enable iPrint on Prefix/OSX and Darwin?
100 # - selftest-prefix? selftest?
101
102 CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
103
104 pkg_setup() {
105 confutils_use_depend_all samba4 ads
106 confutils_use_depend_all ads ldap
107 }
108
109 src_prepare() {
110
111 cd ".."
112
113 cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "lib/tevent/python.mk"
114
115 cd "source3"
116 eautoconf -Ilibreplace -Im4 -I../m4 -I../lib/replace -I../source4
117
118 # ensure that winbind has correct ldflags (QA notice)
119 sed -i \
120 -e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \
121 configure || die "sed failed"
122 }
123
124 src_configure() {
125 local myconf
126
127 # compile franky samba4 hybrid
128 # http://wiki.samba.org/index.php/Franky
129 if use samba4 ; then
130 myconf="${myconf} --enable-merged-build --enable-developer"
131 if has_version app-crypt/heimdal ; then
132 myconf="${myconf} --with-krb5=/usr/"
133 elif has_version app-crypt/mit-krb5 ; then
134 die "MIT Kerberos not supported by samba 4, use heimdal"
135 else
136 die "No supported kerberos provider detected"
137 fi
138 fi
139
140 # Filter out -fPIE
141 [[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie"
142 use hppa && myconf="${myconf} --disable-pie"
143
144 # Upstream refuses to make this configurable
145 use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no
146
147 # Notes:
148 # - FAM is a plugin for the server
149 # - DNS-SD is only used in client/server code
150 # - AFS is a pw-auth-method and only used in client/server code
151 # - AFSACL is a server module
152 # - automount is only needed in conjunction with NIS and we don't have that
153 # anymore
154 # - quota-support is only needed in server-code
155 # - acl-support is only used in server-code
156 # - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default
157 econf ${myconf} \
158 --sysconfdir=/etc/samba \
159 --localstatedir=/var \
160 $(use_enable debug developer) \
161 --enable-largefile \
162 --enable-socket-wrapper \
163 --enable-nss-wrapper \
164 --disable-swat \
165 $(use_enable debug dmalloc) \
166 $(use_enable cups) \
167 --disable-iprint \
168 --disable-fam \
169 --enable-shared-libs \
170 --disable-dnssd \
171 --disable-avahi \
172 --with-fhs \
173 --with-privatedir=/var/lib/samba/private \
174 --with-rootsbindir=/var/cache/samba \
175 --with-lockdir=/var/cache/samba \
176 --with-swatdir=/usr/share/doc/${PF}/swat \
177 --with-configdir=/etc/samba \
178 --with-logfilebase=/var/log/samba \
179 --with-pammodulesdir=$(getpam_mod_dir) \
180 --without-afs \
181 --without-fake-kaserver \
182 --without-vfs-afsacl \
183 $(use_with ldap) \
184 $(use_with ads) \
185 $(use_with ads krb5 /usr) \
186 $(use_with ads dnsupdate) \
187 --without-automount \
188 --without-cifsmount \
189 --without-cifsupcall \
190 $(use_with pam) \
191 $(use_with pam pam_smbpass) \
192 $(use_with syslog) \
193 --without-quotas \
194 --without-sys-quotas \
195 --without-utmp \
196 --without-libtdb \
197 $(use_with netapi libnetapi) \
198 --without-libtalloc \
199 $(use_with smbclient libsmbclient) \
200 $(use_with smbsharemodes libsmbsharemodes) \
201 $(use_with addns libaddns) \
202 $(use_with cluster ctdb /usr) \
203 $(use_with cluster cluster-support) \
204 --without-acl-support \
205 $(use_with aio aio-support) \
206 --with-sendfile-support \
207 $(use_with winbind) \
208 --without-included-popt \
209 --without-included-iniparser
210 }
211
212 src_compile() {
213
214 # compile libs
215 if use addns ; then
216 einfo "make addns library"
217 emake libaddns || die "emake libaddns failed"
218 fi
219 if use netapi ; then
220 einfo "make netapi library"
221 emake libnetapi || die "emake libnetapi failed"
222 fi
223 if use smbclient ; then
224 einfo "make smbclient library"
225 emake libsmbclient || die "emake libsmbclient failed"
226 fi
227 if use smbsharemodes ; then
228 einfo "make smbsharemodes library"
229 emake libsmbsharemodes || die "emake libsmbsharemodes failed"
230 fi
231
232 # compile modules
233 if use pam ; then
234 einfo "make pam modules"
235 emake pam_modules || die "emake pam_modules failed";
236 fi
237 if use winbind ; then
238 einfo "make nss modules"
239 emake nss_modules || die "emake nss_modules failed";
240 fi
241
242 # compile utilities
243 if use tools ; then
244 einfo "make utilities"
245 emake ${BINPROGS} || die "emake binprogs failed";
246 fi
247
248 }
249
250 src_install() {
251
252 # install libs
253 if use netapi ; then
254 einfo "install netapi library"
255 emake installlibnetapi DESTDIR="${D}" || die "emake install libnetapi failed"
256 fi
257 if use smbclient ; then
258 einfo "install smbclient library"
259 emake installlibsmbclient DESTDIR="${D}" || die "emake install libsmbclient failed"
260 fi
261 if use smbsharemodes ; then
262 einfo "install smbsharemodes library"
263 emake installlibsmbsharemodes DESTDIR="${D}" || die "emake install libsmbsharemodes failed"
264 fi
265 if use addns ; then
266 einfo "install addns library"
267 emake installlibaddns DESTDIR="${D}" || die "emake install libaddns failed"
268 fi
269
270 # install modules
271 if use pam ; then
272 einfo "install pam modules"
273 emake installpammodules DESTDIR="${D}" || die "emake installpammodules failed"
274 fi
275
276 # Remove empty installation directories
277 rmdir \
278 "${D}/usr/$(get_libdir)/samba" \
279 "${D}/usr"/{sbin,bin} \
280 "${D}/usr/share"/{man,locale,} \
281 "${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \
282 # || die "tried to remove non-empty dirs, this seems like a bug in the ebuild"
283
284 # Nsswitch extensions. Make link for wins and winbind resolvers
285 if use winbind ; then
286 einfo "install lbwbclient"
287 emake installlibwbclient DESTDIR="${D}" || die "emake installlibwbclient failed"
288 dolib.so ../nsswitch/libnss_wins.so
289 dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2
290 dolib.so ../nsswitch/libnss_winbind.so
291 dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2
292 fi
293
294 if use pam ; then
295 if use winbind ; then
296 newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind
297 doman ../docs/manpages/pam_winbind.8
298 dohtml ../docs/htmldocs/manpages/pam_winbind.8.html
299
300 if use examples ; then
301 insinto /usr/share/doc/${PF}/examples
302 doins -r ../examples/pam_winbind
303 fi
304 fi
305
306 newpamd "${CONFDIR}/samba.pam" samba
307 dodoc pam_smbpass/README
308 fi
309
310 # install utilities
311 if use tools && [[ -n "${BINPROGS}" ]] ; then
312 einfo "install utilities"
313 dobin ${BINPROGS} || die "not all bins around"
314 for prog in ${BINPROGS} ; do
315 doman ../docs/manpages/${prog/bin\/}* || die "doman failed"
316 dohtml ../docs/htmldocs/manpages/${prog/bin\/}*.html || die "dohtml failed"
317 done
318 fi
319
320 # install examples
321 if use examples ; then
322 einfo "install examples"
323 insinto /usr/share/doc/${PF}/examples
324 doins -r ../examples/libsmbclient
325 use winbind && doins -r ../examples/nss
326 fi
327
328 }