packages: autofs/autofs.spec - build ldap extension conditionally (this mod...
pluto
pluto at pld-linux.org
Sat Aug 29 18:13:59 CEST 2009
Author: pluto Date: Sat Aug 29 16:13:59 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- build ldap extension conditionally (this module needs krb5->heimdal conversion).
---- Files affected:
packages/autofs:
autofs.spec (1.89 -> 1.90)
---- Diffs:
================================================================
Index: packages/autofs/autofs.spec
diff -u packages/autofs/autofs.spec:1.89 packages/autofs/autofs.spec:1.90
--- packages/autofs/autofs.spec:1.89 Sat Aug 29 17:58:09 2009
+++ packages/autofs/autofs.spec Sat Aug 29 18:13:54 2009
@@ -2,6 +2,9 @@
# TODO:
# - change /net to something FHS-compliant ?
#
+# Conditional build:
+%bcond_without ldap # without LDAP extension module
+#
Summary: autofs daemon
Summary(de.UTF-8): autofs daemon
Summary(es.UTF-8): Servidor autofs
@@ -96,7 +99,7 @@
BuildRequires: hesiod-devel
BuildRequires: libxml2-devel
BuildRequires: mount
-BuildRequires: openldap-devel >= 2.4.6
+%{?with_ldap:BuildRequires: openldap-devel >= 2.4.6}
BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,preun): /sbin/chkconfig
Requires: mktemp
@@ -231,6 +234,7 @@
export initdir=/etc/rc.d/init.d
%configure \
+ --with-openldap=%{?with_ldap:yes}%{!?with_ldap:no} \
--enable-force-shutdown=yes \
--with-confdir=%{_sysconfdir} \
--with-mapdir=%{_sysconfdir}
@@ -317,11 +321,13 @@
%attr(755,root,root) %{_libdir}/autofs/parse_sun.so
%{_mandir}/man[58]/*
+%if %{with ldap}
%files ldap
%defattr(644,root,root,755)
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/autofs_ldap_auth.conf
%attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so
%attr(755,root,root) %{_libdir}/autofs/lookup_ldaps.so
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -329,6 +335,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.90 2009/08/29 16:13:54 pluto
+- build ldap extension conditionally (this module needs krb5->heimdal conversion).
+
Revision 1.89 2009/08/29 15:58:09 pluto
- apply patchset.
- single threaded build.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/autofs/autofs.spec?r1=1.89&r2=1.90&f=u
More information about the pld-cvs-commit
mailing list