source: projects/specs/trunk/o/openldap/openldap-vl.spec @ 9391

Revision 9391, 44.4 KB checked in by inagaki, 9 years ago (diff)

2015-02-27 Ryoichi INAGAKI <ryo1@…>

  • bind, ntp, openldap: updated including security fix


Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3%define migtools_version 47
4%define ldbm_backend berkeley
5%define evolution_connector_prefix %{_libdir}/evolution-openldap
6%define evolution_connector_includedir %{evolution_connector_prefix}/include
7%define evolution_connector_libdir %{evolution_connector_prefix}/%{_lib}
8%define __perl_requires %{SOURCE11}
9
10%define stable 1
11%if %{stable}
12%define date 20100719
13%endif
14
15Summary: The configuration files, libraries and documentation for OpenLDAP.
16Summary(ja): OpenLDAP の設定ファイル,ライブラリ,ドキュメント.
17Name: openldap
18Version: 2.4.23
19Release: 6%{?_dist_release}
20License: OpenLDAP
21Group: System Environment/Libraries
22URL: http://www.openldap.org/
23
24%if %{stable}
25Source0: ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-stable/openldap-stable-%{date}.tgz
26%else
27Source0: ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/openldap-%{version}.tgz
28%endif
29Source1: http://www.padl.com/download/MigrationTools-%{migtools_version}.tar.gz
30Source2: ldap.init
31Source3: migration-tools.txt
32Source4: autofs.schema
33Source5: rfc822-MailMember.schema
34Source6: README.upgrading
35Source7: http://www.OpenLDAP.org/doc/admin/guide.html
36Source8: README.evolution
37Source9: README.migration
38Source10: ldap.sysconfig
39Source11: filter-requires-openldap.sh
40
41# Patches for 2.4
42Patch0: openldap-2.4.11-config.patch
43Patch1: openldap-2.0.11-ldaprc.patch
44Patch2: openldap-2.4.16-setugid.patch
45Patch3: openldap-2.4.6-pie.patch
46Patch4: openldap-2.3.11-toollinks.patch
47Patch5: openldap-2.4.6-nosql.patch
48Patch6: openldap-2.3.19-gethostbyXXXX_r.patch
49Patch9: openldap-2.3.37-smbk5pwd.patch
50Patch10: openldap-2.4.6-multilib.patch
51
52# Patches for the evolution library
53Patch200: openldap-2.4.16-evolution-ntlm.patch
54
55# Patches for the MigrationTools package
56Patch300: MigrationTools-38-instdir.patch
57Patch301: MigrationTools-36-mktemp.patch
58Patch302: MigrationTools-27-simple.patch
59Patch303: MigrationTools-26-suffix.patch
60Patch304: MigrationTools-46-schema.patch
61Patch305: MigrationTools-45-noaliases.patch
62
63# Vine Patches
64Patch700: openldap-2.4.23-libdb.patch
65
66# security fixes
67## from CentOS 6.3; openldap 2.4.23-26.el6_3.2
68Patch1112: openldap-cve-ppolicy-forward-updates.patch
69Patch1113: openldap-cve-ndb-bind-rootdn.patch
70Patch1141: openldap-cve-relay-rwm-translucent.patch
71Patch1144: openldap-cve-nss-cipher-suite-ignored.patch
72## based CentOS 6.3; openldap 2.4.23-26.el6_3.2
73Patch1145: openldap-VineLinux-cve-nss-default-cipher-suite-always-selected.patch
74# CVE-2013-4449
75Patch1146: openldap-rwm-reference-counting.patch
76
77BuildRoot: %{_tmppath}/%{name}-%{version}-root
78BuildRequires: autoconf, automake, libtool >= 2.2.6a
79BuildRequires: cyrus-sasl-devel, gdbm-devel, openssl-devel, perl
80BuildRequires: libdb-devel, pam-devel, pkgconfig, tcp_wrappers
81BuildRequires: unixODBC-devel, bind-devel, libtool-ltdl-devel >= 2.2.6a
82BuildRequires: krb5-devel
83BuildRequires: groff
84#BuildConflicts: libicu-devel
85Requires: cyrus-sasl, mktemp, gdbm
86
87Vendor: Project Vine
88Distribution: Vine Linux
89
90%description
91OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
92Protocol) applications and development tools.  LDAP is a set of
93protocols for accessing directory services (usually phone book style
94information, but other information is possible) over the Internet,
95similar to the way DNS (Domain Name System) information is propagated
96over the Internet.  The openldap package contains configuration files,
97libraries and documentation for OpenLDAP.
98
99%description -l ja
100OpenLDAPはオープンソースなLDAP (Lightweight Directory Access Protocol)アプリケーションと開発ツール集です。LDAPはディレクトリサービス(電話帳の様な情報や他の情報)にInternelからアクセスするプロトコルであり、DNS(Domain Name System)情報に似た方式でInternetに伝えられます。opanldapパッケージはOpanLDAP用の設定ファイルやライブラリ、ドキュメントを含んでいます。
101
102%package devel
103Summary: OpenLDAP development libraries and header files.
104Summary(ja): OpenLDAP の開発用ライブラリおよびヘッダファイル.
105Group: Development/Libraries
106Requires: openldap = %{version}-%{release}, cyrus-sasl-devel >= 2.1
107Provides: openldap-evolution-devel = %{version}-%{release}
108
109%description devel
110The openldap-devel package includes the development libraries and
111header files needed for compiling applications that use LDAP
112(Lightweight Directory Access Protocol) internals.  LDAP is a set of
113protocols for enabling directory services over the Internet. Install
114this package only if you plan to develop or will need to compile
115customized LDAP clients.
116
117%description devel -l ja
118openldap-develパッケージはLDAP(Lightweight Directory Access Protocol)を使うためにコンパイルするアプリケーションに必要な開発用ライブラリやヘッダファイルを含んでいます。LDAPはInternet上にディレクトリサービスを可能にするプロトコルです。LDAPクライアントを開発したりカスタマイズする場合には、このパッケージをインストールしてください。
119
120%package servers
121Summary: OpenLDAP servers and related files.
122Summary(ja): OpenLDAP サーバおよび関連ファイル.
123Requires(post): fileutils, make, openldap = %{version}-%{release}, openssl, shadow-utils, chkconfig, coreutils
124Requires(pre): fileutils, make, openldap = %{version}-%{release}, openssl, shadow-utils, chkconfig, coreutils
125Group: System Environment/Daemons
126
127%description servers
128OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
129Protocol) applications and development tools.  LDAP is a set of
130protocols for accessing directory services (usually phone book style
131information, but other information is possible) over the Internet,
132similar to the way DNS (Domain Name System) information is propagated
133over the Internet. This package contains the slapd and slurpd servers,
134migration scripts and related files.
135
136%description servers -l ja
137OpenLDAPはオープンソースなLDAP (Lightweight Directory Access Protocol)アプリケーションと開発ツール集です。LDAPはディレクトリサービス(電話帳の様な情報や他の情報)にInternelからアクセスするプロトコルであり、DNS(Domain Name System)情報に似た\方式でInternetに伝えられます。このパッケージはslapdやslurpdサーバ、移行スクリプトや関連するファイルを含んでいます。
138
139
140%package servers-sql
141Summary: OpenLDAP server SQL support module.
142Summary(ja): SQLサポートモジュールを含んだOpenLDAPサーバ
143Requires(post): openldap-servers = %{version}-%{release}
144Group: System Environment/Daemons
145
146%description servers-sql
147OpenLDAP is an open-source suite of LDAP (Lightweight Directory Access
148Protocol) applications and development tools. LDAP is a set of
149protocols for accessing directory services (usually phone book style
150information, but other information is possible) over the Internet,
151similar to the way DNS (Domain Name System) information is propagated
152over the Internet. This package contains a loadable module which the
153slapd server can use to read data from an RDBMS.
154
155%description servers-sql -l ja
156OpenLDAPはオープンソースなLDAP (Lightweight Directory Access Protocol)アプリケー
157ションと開発ツール集です。LDAPはディレクトリサービス(電話帳の様な情報や他の情報
158)にInternelからアクセスするプロトコルであり、DNS(Domain Name System)情報に似た
159方式でInternetに伝えられます。
160このパッケージはslapdサーバがRDBMSからデータを読み込むためのモジュールを含んでいます。
161
162%package clients
163Summary: Client programs for OpenLDAP.
164Summary(ja): OpenLDAP のクライアントプログラム.
165Requires(post): openldap = %{version}-%{release}
166Group: Applications/Internet
167
168%description clients
169OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
170Protocol) applications and development tools.  LDAP is a set of
171protocols for accessing directory services (usually phone book style
172information, but other information is possible) over the Internet,
173similar to the way DNS (Domain Name System) information is propagated
174over the Internet.  The openldap-clients package contains the client
175programs needed for accessing and modifying OpenLDAP directories.
176
177%description clients -l ja
178OpenLDAPはオープンソースなLDAP (Lightweight Directory Access Protocol)アプリケーションと開発ツール集です。LDAPはディレクトリサービス(電話帳の様な情報や他の情報)にInternelからアクセスするプロトコルであり、DNS(Domain Name System)情報に似た\方式でInternetに伝えられます。openldap-clientsパッケージはOpenLDAPディレクトリにアクセスしたり、修正したりするためのクライアントプログラムを含んでいます。
179
180## to build compat32 for x86_64 architecture support
181%package -n compat32-%{name}
182Summary: libraries for OpenLDAP.
183Group: System Environment/Libraries
184
185%description -n compat32-%{name}
186OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
187Protocol) applications and development tools.  LDAP is a set of
188protocols for accessing directory services (usually phone book style
189information, but other information is possible) over the Internet,
190similar to the way DNS (Domain Name System) information is propagated
191over the Internet.  The openldap package contains configuration files,
192libraries and documentation for OpenLDAP.
193
194# %package -n compat32-%{name}-servers-sql
195# Summary: OpenLDAP server SQL support module.
196# Group: System Environment/Libraries
197
198# %description -n compat32-%{name}-servers-sql
199# OpenLDAP is an open-source suite of LDAP (Lightweight Directory Access
200# Protocol) applications and development tools. LDAP is a set of
201# protocols for accessing directory services (usually phone book style
202# information, but other information is possible) over the Internet,
203# similar to the way DNS (Domain Name System) information is propagated
204# over the Internet. This package contains a loadable module which the
205# slapd server can use to read data from an RDBMS.
206
207%package -n compat32-%{name}-devel
208Summary: OpenLDAP development libraries and header files.
209Group: Development/Libraries
210
211%description -n compat32-%{name}-devel
212The openldap-devel package includes the development libraries and
213header files needed for compiling applications that use LDAP
214(Lightweight Directory Access Protocol) internals.  LDAP is a set of
215protocols for enabling directory services over the Internet. Install
216this package only if you plan to develop or will need to compile
217customized LDAP clients.
218
219
220%prep
221%setup -q -c -a 1
222
223pushd openldap-%{version}
224libtoolize --force --copy
225popd
226
227pushd openldap-%{version}
228%patch0 -p1 -b .config
229%patch1 -p1 -b .ldaprc
230%patch2 -p1 -b .setugid
231%patch3 -p1 -b .pie
232%patch4 -p1 -b .toollinks
233%patch5 -p1 -b .nosql
234%patch6 -p1 -b .gethostbyname_r
235%patch9 -p1 -b .smbk5pwd
236%patch10 -p1 -b .multilib
237
238%patch700 -p1 -b .libdb
239
240# security
241%patch1112 -p1 -b .cve-ppolicy-forward-updates
242%patch1113 -p1 -b .cve-ndb-bind-rootdn
243%patch1141 -p1 -b .cve-relay-rwm-translucent
244%patch1144 -p1 -b .cve-nss-cipher-suite-ignored
245%patch1145 -p2 -b .cve-VineLinux-nss-default-cipher-suite-always-selected
246# CVE-2013-4449
247%patch1146 -p1 -b .rwm-reference-counting
248
249libtoolize --force --copy
250popd
251
252# Set up a build tree for a static version of libldap with the hooks for the
253# non-standard NTLM bind type which is needed to connect to Win2k GC servers
254# (Win2k3 supports SASL with DIGEST-MD5, so this shouldn't be needed for those
255# servers, though as of version 1.4 the connector doesn't try SASL first).
256if ! cp -al openldap-%{version} evo-openldap-%{version} ; then
257     rm -fr evo-openldap-%{version}
258     cp -a  openldap-%{version} evo-openldap-%{version}
259fi
260pushd evo-openldap-%{version}
261%patch200 -p1 -b .evolution-ntlm
262popd
263
264pushd MigrationTools-%{migtools_version}
265%patch300 -p1 -b .instdir
266%patch301 -p1 -b .mktemp
267%patch302 -p1 -b .simple
268%patch303 -p1 -b .suffix
269%patch304 -p1 -b .schema
270%patch305 -p1 -b .noaliases
271popd
272
273pushd openldap-%{version}
274        for subdir in build-servers build-clients ; do
275                mkdir $subdir
276                ln -s ../configure $subdir
277        done
278autoconf
279# build smbk5pwd with other overlays
280ln -s ../../../contrib/slapd-modules/smbk5pwd/smbk5pwd.c servers/slapd/overlays
281mv contrib/slapd-modules/smbk5pwd/README contrib/slapd-modules/smbk5pwd/README.smbk5pwd
282popd
283
284%build
285libtool='%{_bindir}/libtool'
286tagname=CC; export tagname
287
288%ifarch ia64
289RPM_OPT_FLAGS="$RPM_OPT_FLAGS -O0"
290%endif
291
292# Find OpenSSL's header and library dependencies.
293if pkg-config openssl ; then
294        OPENSSL_CPPFLAGS=`pkg-config --cflags-only-I openssl`
295        CPPFLAGS="$OPENSSL_CPPFLAGS" ; export CPPFLAGS
296        OPENSSL_LDFLAGS=`pkg-config --libs-only-L openssl`
297        LDFLAGS="$OPENSSL_LDFLAGS" ; export LDFLAGS
298fi
299CFLAGS="$CPPFLAGS $RPM_OPT_FLAGS -D_REENTRANT -fPIC"; export CFLAGS
300
301# Build 2.4.
302CFLAGS="$RPM_OPT_FLAGS -D_REENTRANT -fPIC"; export CFLAGS
303export CPPFLAGS="-I${dbdir}/include"
304export CFLAGS="$CPPFLAGS $RPM_OPT_FLAGS -D_REENTRANT -fPIC -D_GNU_SOURCE"
305export LDFLAGS="-L${dbdir}/%{_lib}"
306
307
308build() {
309%configure \
310        --with-threads=posix \
311        \
312        --enable-local --enable-rlookups \
313        \
314        --with-tls \
315        --with-cyrus-sasl \
316        --with-gssapi \
317        --with-odbc=unixodbc \
318        \
319        --enable-wrappers \
320        \
321        --enable-passwd \
322        \
323        --enable-cleartext \
324        --enable-crypt \
325        --enable-spasswd \
326        --enable-lmpasswd \
327        --enable-modules \
328        --disable-sql \
329        \
330        --libexecdir=%{_libdir} \
331        $@
332make %{_smp_mflags} LIBTOOL="$libtool"
333}
334
335# Build the servers with Kerberos support (for password checking, mainly).
336LIBS=-lpthread; export LIBS
337
338pushd openldap-%{version}/build-servers
339build \
340       --enable-plugins \
341       --enable-slapd \
342       --enable-slurpd \
343       --enable-bdb \
344       --enable-hdb \
345       --enable-ldap \
346       --enable-ldbm \
347       --enable-ldbm-api=%{ldbm_backend} \
348       --enable-meta \
349       --enable-monitor \
350       --enable-null \
351       --enable-shell \
352       --enable-sql=mod \
353       --disable-perl \
354       --disable-shared \
355       --disable-dynamic \
356       --enable-static
357unset LIBS
358popd
359
360# Build clients without Kerberos password-checking support, which is only
361# useful in the server anyway, to avoid stray dependencies.
362pushd openldap-%{version}/build-clients
363build \
364        --disable-slapd \
365        --disable-slurpd \
366        --enable-shared \
367        --enable-dynamic \
368        --enable-static \
369        --with-pic
370popd
371
372# Build evolution-specific clients just as we would normal clients, except with
373# a different installation directory in mind and no shared libraries.
374pushd evo-openldap-%{version}
375build \
376        --disable-slapd \
377        --disable-slurpd \
378        --disable-shared \
379        --disable-dynamic \
380        --enable-static \
381        --with-pic \
382        --includedir=%{evolution_connector_includedir} \
383        --libdir=%{evolution_connector_libdir}
384popd
385
386%install
387[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
388libtool='%{_bindir}/libtool'
389tagname=CC; export tagname
390
391mkdir -p $RPM_BUILD_ROOT/%{_libdir}/
392
393# Install servers.
394pushd openldap-%{version}/build-servers
395make install DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} LIBTOOL="$libtool"
396popd
397
398# Install clients and shared libraries.  Install the evo-specific versions
399# first so that any conflicting files are overwritten by generic versions.
400pushd evo-openldap-%{version}
401make install DESTDIR=$RPM_BUILD_ROOT \
402        includedir=%{evolution_connector_includedir} \
403        libdir=%{evolution_connector_libdir} \
404        LIBTOOL="$libtool"
405install -m644 \
406        $RPM_SOURCE_DIR/README.evolution \
407        $RPM_BUILD_ROOT/%{evolution_connector_prefix}/
408popd
409pushd openldap-%{version}/build-clients
410make install DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} LIBTOOL="$libtool"
411popd
412
413# Create this directory so that authconfig setting TLS_CACERT to
414# /etc/openldap/cacerts doesn't cause TLS startup of any kind to fail
415# when the directory doesn't exist.
416mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/openldap/cacerts
417# make sure the certs directory exists
418mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pki/tls/certs
419# Touch the dummy slapd.pem to make rpmbuild happy
420touch $RPM_BUILD_ROOT%{_sysconfdir}/pki/tls/certs/slapd.pem
421
422# Install the padl.com migration tools.
423mkdir -p $RPM_BUILD_ROOT%{_datadir}/openldap/migration
424install -m 755 MigrationTools-%{migtools_version}/migrate_* \
425        $RPM_BUILD_ROOT%{_datadir}/openldap/migration/
426install -m 644 MigrationTools-%{migtools_version}/README \
427        $RPM_SOURCE_DIR/migration-tools.txt \
428        $RPM_BUILD_ROOT%{_datadir}/openldap/migration/
429cp MigrationTools-%{migtools_version}/README README.migration
430cp $RPM_SOURCE_DIR/migration-tools.txt TOOLS.migration
431
432install -m 644 %SOURCE6 README.upgrading
433install -m 644 %SOURCE9 README.migration
434
435# Create the data directory.
436mkdir -p $RPM_BUILD_ROOT/var/lib/ldap
437# Create the new run directory
438mkdir -p $RPM_BUILD_ROOT/var/run/openldap
439
440# Hack the build root out of the default config files.
441perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT/%{_sysconfdir}/openldap/*.conf
442
443# Get the buildroot out of the man pages.
444perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT%{_mandir}/*/*.*
445
446# We don't need the default files -- RPM handles changes.
447rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/openldap/*.default
448rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/openldap/schema/*.default
449
450# Install an init script for the servers.
451mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
452install -m 755 $RPM_SOURCE_DIR/ldap.init $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/ldap
453
454# Install syconfig/ldap
455mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
456install -m 644 %SOURCE10 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ldap
457
458# Add some more schema for the sake of migration scripts.
459install -d -m755 $RPM_BUILD_ROOT%{_sysconfdir}/openldap/schema/vine
460install -m644 \
461        $RPM_SOURCE_DIR/autofs.schema \
462        $RPM_SOURCE_DIR/rfc822-MailMember.schema \
463        $RPM_BUILD_ROOT%{_sysconfdir}/openldap/schema/vine/
464
465# Move slapd and slurpd out of _libdir
466mv $RPM_BUILD_ROOT/%{_libdir}/slapd $RPM_BUILD_ROOT/%{_sbindir}/
467rm -f $RPM_BUILD_ROOT/%{_sbindir}/slap{acl,add,auth,cat,dn,index,passwd,test}
468rm -f $RPM_BUILD_ROOT/%{_libdir}/slap{acl,add,auth,cat,dn,index,passwd,test}
469for X in acl add auth cat dn index passwd test; do ln -s slapd $RPM_BUILD_ROOT/%{_sbindir}/slap$X ; done
470
471# Tweak permissions on the libraries to make sure they're correct.
472chmod 755 $RPM_BUILD_ROOT/%{_libdir}/lib*.so*
473chmod 644 $RPM_BUILD_ROOT/%{_libdir}/lib*.*a
474
475# Remove files which we don't want packaged.
476rm -f $RPM_BUILD_ROOT/%{_datadir}/openldap/migration/*.{instdir,simple,schema,mktemp,suffix,noaliases}
477#rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
478#rm -f $RPM_BUILD_ROOT/%{evolution_connector_libdir}/*.la
479#rm -f $RPM_BUILD_ROOT/%{evolution_connector_libdir}/*.so*
480#rm -f $RPM_BUILD_ROOT/%{_libdir}/openldap/*.a
481#rm -f $RPM_BUILD_ROOT/%{_libdir}/openldap/*.so
482
483rm -f $RPM_BUILD_ROOT/var/openldap-data/DB_CONFIG.example
484rmdir $RPM_BUILD_ROOT/var/openldap-data
485
486%clean
487rm -rf $RPM_BUILD_ROOT
488
489%post -p /sbin/ldconfig
490
491%postun -p /sbin/ldconfig
492
493
494%pre servers
495# Take care to only do ownership-changing if we're adding the user.
496if /usr/sbin/useradd -c "LDAP User" -u 55 \
497        -s /bin/false -r -d /var/lib/ldap ldap 2> /dev/null ; then
498        if [ -d /var/lib/ldap ] ; then
499                for dbfile in /var/lib/ldap/* ; do
500                        if [ -f $dbfile ] ; then
501                                chown ldap.ldap $dbfile
502                        fi
503                done
504        fi
505fi
506
507if [ "$1" = "2" ]; then
508    # guess, if database upgrade is necessary
509    OLD_SLAPD_VERSION=$( rpm -q --qf "%{VERSION}" openldap-servers | sed 's/\.[0-9]*$//' )
510    NEW_SLAPD_VERSION=$( echo %{version} | sed 's/\.[0-9]*$//' )
511
512    if [ "$OLD_SLAPD_VERSION" != "$NEW_SLAPD_VERSION" ]; then
513        # Minor version number has changed -> slapcat/slapadd of the BDB database
514        # is necessary. Save an ldif of the database where the "% post servers"
515        # scriptlet can restore it.  Also save the database files to a "rpmorig"
516        # directory - Just In Case (TM)
517
518        # stop the server
519        if /sbin/service ldap status &>/dev/null; then
520            touch /var/lib/ldap/need_start
521            /sbin/service ldap stop &>/dev/null
522        fi
523
524        files=$(echo /var/lib/ldap/{log.*,__db.*,[a]lock})
525        if [ "$files" != '/var/lib/ldap/log.* /var/lib/ldap/__db.* /var/lib/ldap/[a]lock' ] ; then
526            if /usr/sbin/slapcat -l /var/lib/ldap/upgrade.ldif > /dev/null 2>&1 ; then
527                if [ -f /var/lib/ldap/upgrade.ldif ] ; then
528                    /bin/rm -fr /var/lib/ldap/rpmorig > /dev/null 2>&1 || :
529                    mkdir /var/lib/ldap/rpmorig
530                    mv /var/lib/ldap/{alock,*.bdb,__db.*,log.*} /var/lib/ldap/rpmorig > /dev/null 2>&1 || :
531                    cp -f /var/lib/ldap/DB_CONFIG /var/lib/ldap/rpmorig > /dev/null 2>&1 || :
532                else
533                    /bin/rm -f /var/lib/ldap/upgrade.ldif
534                fi
535            fi
536        fi
537    fi
538fi
539exit 0
540
541
542%post servers
543/sbin/ldconfig
544/sbin/chkconfig --add ldap
545# If there's a /var/lib/ldap/upgrade.ldif file, slapadd it and delete it.
546# It was created by the % pre above.
547if [ -f /var/lib/ldap/upgrade.ldif ] ; then
548    /sbin/runuser -m -s /usr/sbin/slapadd -- "ldap" -l /var/lib/ldap/upgrade.ldif > /dev/null 2>&1
549    rm -f /var/lib/ldap/upgrade.ldif
550fi
551
552exec > /dev/null 2> /dev/null
553if [ ! -f %{_sysconfdir}/pki/tls/certs/slapd.pem ] ; then
554pushd %{_sysconfdir}/pki/tls/certs
555umask 077
556cat << EOF | make slapd.pem
557--
558SomeState
559SomeCity
560SomeOrganization
561SomeOrganizationalUnit
562localhost.localdomain
563root@localhost.localdomain
564EOF
565chown root:ldap slapd.pem
566chmod 640 slapd.pem
567popd
568fi
569
570if [ $1 -ge 1 ] ; then
571    /sbin/service ldap condrestart &>/dev/null
572    /sbin/service ldap status &>/dev/null
573    if [ "$?" != "0" -a -f /var/lib/ldap/need_start ]; then
574        /sbin/service ldap start &>/dev/null
575        rm -f /var/lib/ldap/need_start &>/dev/null
576    fi
577fi
578
579exit 0
580
581
582%preun servers
583if [ "$1" = "0" ] ; then
584        /sbin/service ldap stop > /dev/null 2>&1 || :
585        /sbin/chkconfig --del ldap
586# Openldap-servers are being removed from system.
587# Do not touch the database! Older versions of this
588# package attempted to store database in LDIF format, so
589# it can be restored later - but it's up to the administrator
590# to save the database, if he/she wants so.
591fi
592
593%postun servers
594/sbin/ldconfig
595if [ $1 -ge 1 ] ; then
596        /sbin/service ldap condrestart > /dev/null 2>&1 || :
597fi
598
599%post devel -p /sbin/ldconfig
600
601%postun devel -p /sbin/ldconfig
602
603%files
604%defattr(-,root,root)
605%doc openldap-%{version}/{ANNOUNCEMENT,CHANGES,COPYRIGHT,LICENSE,README,doc/rfc}
606%attr(0755,root,root) %dir %{_sysconfdir}/openldap
607%attr(0755,root,root) %dir %{_sysconfdir}/openldap/cacerts
608%attr(0644,root,root) %config %{_sysconfdir}/openldap/ldap*.conf
609%attr(0755,root,root) %{_libdir}/libl*-2.4*.so.*
610%attr(0644,root,root) %{_mandir}/man5/ldif.5*
611%attr(0644,root,root) %{_mandir}/man5/ldap.conf.5*
612
613%files servers
614%defattr(-,root,root)
615%doc README.migration TOOLS.migration
616%doc $RPM_SOURCE_DIR/README.upgrading $RPM_SOURCE_DIR/guide.html
617%doc README.upgrading
618%doc openldap-%{version}/contrib/slapd-modules/smbk5pwd/README.smbk5pwd
619%doc openldap-%{version}/doc/guide/admin/*.html
620%doc openldap-%{version}/doc/guide/admin/*.png
621%ghost %config %{_sysconfdir}/pki/tls/certs/slapd.pem
622%attr(0755,root,root) %config %{_sysconfdir}/rc.d/init.d/ldap
623%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/openldap/ldap*.conf
624%attr(0640,root,ldap) %config(noreplace) %{_sysconfdir}/openldap/slapd.conf
625%attr(0640,root,ldap) %{_sysconfdir}/openldap/DB_CONFIG.example
626%attr(0755,root,root) %dir %{_sysconfdir}/openldap/schema
627%attr(0644,root,root) %{_sysconfdir}/openldap/schema/README*
628%attr(0644,root,root) %config %{_sysconfdir}/sysconfig/ldap
629%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/openldap/schema/*.schema*
630%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/openldap/schema/*.ldif
631%attr(0755,root,root) %dir %{_sysconfdir}/openldap/schema/vine
632%attr(0644,root,root) %config %{_sysconfdir}/openldap/schema/vine/*.schema*
633%attr(0755,root,root) %{_sbindir}/sl*
634%attr(0644,root,root) %{_mandir}/man8/*
635%attr(0644,root,root) %{_mandir}/man5/slapd*.5*
636%attr(0644,root,root) %{_mandir}/man5/slapo-*.5*
637%attr(0755,root,root) %dir %{_datadir}/openldap
638%attr(0755,root,root) %dir %{_datadir}/openldap/migration
639%attr(0644,root,root) %{_datadir}/openldap/migration/README
640%attr(0644,root,root) %config(noreplace) %{_datadir}/openldap/migration/*.ph
641%attr(0755,root,root) %{_datadir}/openldap/migration/*.pl
642%attr(0755,root,root) %{_datadir}/openldap/migration/*.sh
643%attr(0644,root,root) %{_datadir}/openldap/migration/*.txt
644%attr(0700,ldap,ldap) %dir /var/lib/ldap
645%attr(0755,ldap,ldap) %dir /var/run/openldap
646%attr(0755,root,root) %dir %{_libdir}/openldap
647%attr(0755,root,root) %{_libdir}/openldap/[^b]*
648
649%files servers-sql
650%defattr(-,root,root)
651%doc openldap-%{version}/servers/slapd/back-sql/docs/*
652%doc openldap-%{version}/servers/slapd/back-sql/rdbms_depend
653%attr(0755,root,root) %{_libdir}/openldap/back_sql.la
654%attr(0755,root,root) %{_libdir}/openldap/back_sql*.so.*
655
656%files clients
657%defattr(-,root,root)
658%attr(0755,root,root) %{_bindir}/*
659%attr(0644,root,root) %{_mandir}/man1/*
660
661%files devel
662%defattr(-,root,root)
663%doc openldap-%{version}/doc/drafts openldap-%{version}/doc/rfc
664%attr(0755,root,root) %{_libdir}/libl*.so
665%attr(0644,root,root) %{_libdir}/libl*.a
666%attr(0644,root,root) %{_includedir}/*
667%attr(0644,root,root) %{_mandir}/man3/*
668%attr(0755,root,root) %dir %{evolution_connector_prefix}
669%attr(0644,root,root)      %{evolution_connector_prefix}/README*
670%attr(0755,root,root) %dir %{evolution_connector_includedir}
671%attr(0644,root,root)      %{evolution_connector_includedir}/*.h
672%attr(0755,root,root) %dir %{evolution_connector_libdir}
673%attr(0644,root,root)      %{evolution_connector_libdir}/*.a
674
675%exclude %{_libdir}/*.la
676#%exclude %{_libdir}/openldap/*.a
677%exclude %{_libdir}/openldap/*.so
678%exclude %{evolution_connector_libdir}/*.la
679%exclude %{evolution_connector_libdir}/*.so*
680
681
682## to build compat32 for x86_64 architecture support
683%if %{build_compat32}
684%files -n compat32-%{name}
685%defattr(-,root,root)
686%attr(0755,root,root) %{_libdir}/libl*-2.4*.so.*
687
688# %files -n compat32-%{name}-servers-sql
689# %defattr(-,root,root)
690# %attr(0755,root,root) %{_libdir}/openldap/back_sql.la
691# %attr(0755,root,root) %{_libdir}/openldap/back_sql*.so.*
692
693%files -n compat32-%{name}-devel
694%defattr(-,root,root)
695%attr(0755,root,root) %{_libdir}/libl*.so
696%attr(0644,root,root) %{_libdir}/libl*.a
697%attr(0644,root,root) %{_includedir}/*
698%attr(0755,root,root) %dir %{evolution_connector_prefix}
699%attr(0644,root,root)      %{evolution_connector_prefix}/README*
700%attr(0755,root,root) %dir %{evolution_connector_includedir}
701%attr(0644,root,root)      %{evolution_connector_includedir}/*.h
702%attr(0755,root,root) %dir %{evolution_connector_libdir}
703%attr(0644,root,root)      %{evolution_connector_libdir}/*.a
704
705%exclude %{_libdir}/*.la
706#%exclude %{_libdir}/openldap/*.a
707%exclude %{_libdir}/openldap/*.so
708%exclude %{evolution_connector_libdir}/*.la
709%exclude %{evolution_connector_libdir}/*.so*
710%endif
711
712
713%changelog
714* Fri Feb 27 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.4.23-6
715- add patch1146 for fix CVE-2013-4449
716
717* Tue Dec 16 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.4.23-5
718- added Patch700 to build with libdb 5.3.28
719
720* Thu Jan  9 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 2.4.23-4
721- build with cyrus-sasl 2.1.26
722
723* Sun Dec  9 2012 IWAI, Masaharu <iwai@alib.jp> 2.4.23-3
724- SECURITY FIX, #2501
725 - patches from CentOS 6.3; openldap 2.4.23-26.el6_3.2
726  - CVE-2011-1024: add openldap-cve-ppolicy-forward-updates.patch (Patch1112)
727  - CVE-2011-1025: add openldap-cve-ndb-bind-rootdn.patch (Patch1113)
728  - CVE-2012-1164: add openldap-cve-relay-rwm-translucent.patch (Patch1141)
729  - CVE-2012-2668: add openldap-cve-nss-cipher-suite-ignored.patch (Patch1144)
730 - patch based CentOS 6.3; openldap 2.4.23-26.el6_3.2
731  - CVE-2012-2668: add openldap-cve-nss-default-cipher-suite-always-selected.patch (Patch1145)
732- fix document file path for servers sub package
733
734* Sat Apr  9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.23-2
735- added --with-odbc=unixodbc to configure
736
737* Wed Apr  6 2011 IWAI, Masaharu <iwai@alib.jp> 2.4.23-1
738- new upstream release
739- update MigrationTools 47
740
741* Wed Jan 12 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.4.21-5
742- change %%define __perl_requires instead of __find_requires
743
744* Tue Jan 11 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.4.21-4
745- rebuild with openssl-1.0.0c
746
747* Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.21-3
748- rebuilt with gcc-4.4.3-3 on ppc
749
750* Fri Feb  5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.21-2
751- rebuilt with rpm-4.8.0-3 (on ppc)
752
753* Tue Feb 02 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.21-1
754- new upstream release
755- rebuild with db4-4.8.0
756- use Requires(post/pre) instead of Prereq
757
758* Sun Dec 20 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.16-4
759- rebuild
760
761* Tue Nov  3 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.16-3
762- add BuildConflicts: libicu-devel
763
764* Mon Nov  2 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.16-2
765- add Patch1000 for fix CVE-2009-3767 (openssl null char)
766- add --with-gssapi into configure
767- drop --without-kerberos (it is old configure option)
768
769* Wed Aug 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.16-1
770- new upstream release
771
772* Sun Jul 05 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.11-6
773- dropped compat32-%%{name}-servers-sql
774
775* Sat Jul 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.11-5
776- added compat32 subpackages
777
778* Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.11-4
779- rebuild with libtool-2.2.6a
780
781* Sat Apr 04 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.11-3
782- use filter-requires-openldap.sh instead of find-requires
783
784* Wed Apr 01 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.11-2
785- reverted a scriptlet that dropped in 2.3.24-0vl4
786
787* Sun Mar 01 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.11-1
788- new upstream release
789- applied patches from fedora's package (openldap-2.4.12-1)
790
791* Sun Mar 30 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.41-1vl5
792- updated to 2.3.41 (Patch10 and 11 were merged into upstream)
793
794* Fri May 18 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.27-0vl5
795- rebuild with new openssl
796
797* Sat May 12 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.27-0vl4
798- rebuilt with new toolchain/bdb 4.3
799
800* Tue Dec 26 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.27-0vl3
801- rebuilt for VineSeed
802
803* Thu Dec 21 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.3.27-0vl2.3
804- add Vendor/Distribution tag
805
806* Wed Dec 13 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.3.27-0vl2.2
807- add patch11 for fix krbv4_ldap_auth issue
808
809* Fri Nov 24 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.3.27-0vl2.1
810- add patch10 for fix CVE-2006-5779
811
812* Sun Sep 03 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.3.27-0vl2
813- use filter-requires-openldap.sh instead of find-requires
814
815* Sun Aug 27 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.3.27-0vl1
816- new upstream release
817
818* Sat Aug 26 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.3.24-0vl4
819- restored rfc822-MailMember.schema
820- update config.patch
821- removed a scriptlet that save and restore the database
822
823* Sat Aug 19 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.3.24-0vl3
824- removed internal bdb
825- removed autoconf-2.13.1 and automake-1.4a
826
827* Wed Jul 11 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.3.24-0vl2
828- removed compat-openldap subpackage
829
830* Sun Jul 02 2006 Satoshi MACHINO <machino@vinelinux.org> 2.3.24-0vl1
831- New upstream release
832- merged to fedora's package(openldap-2.3.24-2)
833        -- build sql backend as a loadable module
834        -- move ucdata to the -servers subpackage where it belongs
835        -- add compat-openldap subpackage
836        -- update administrator guide
837        -- build a separate, static set of libraries for openldap-devel with the
838           non-standard ntlm bind patch applied, for use by
839           the evolution-connector package (#125579), and installing them under
840           %%{evolution_connector_prefix} (%{evolution_connector_prefix})
841        -- add libtool-ltdl-devel buildprereqs
842        -- Upgrade internal bdb to db-4.4.20.  For a clean upgrade, this will
843           require that users slapcat their databases into a temp file, move
844           /var/lib/ldap someplace safe, upgrade the openldap rpms, then
845           slapadd the temp file.
846        -- fix ldap.init
847        -- add two upstream patches for db-4.4.20
848
849* Wed Nov  2 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.30-0vl2
850- rebuild for VineSeed Plus
851- added Japanese summary
852
853* Sat Apr 17 2004 Satoshi MACHINO <machino@vinelinux.org> 2.1.30-0vl1
854- new upstream version (openldap-2.1.30)
855        -- Fixed slapd userdb checkpass bub (ITS#3048)
856        -- Fixed back-ldbm IDL delete bug (ITS#3048)
857        -- Fixed libldap schema parsing bug (ITS#2920, ITS#3065)
858        -- Fixed liblutil NS MTA MD5 passwd len bug (ITS#2899)
859        -- Removed lint (ITS#3086)
860        -- Documentation updated slapd.conf(5) manpage (ITS#2525)
861
862* Thu Apr 08 2004 Satoshi MACHINO <machino@vinelinux.org> 2.1.29-0vl2
863- fixed ldap.ini
864
865* Sun Mar 28 2004 Satoshi MACHINO <machino@vinelinux.org> 2.1.29-0vl1
866- new upstream version (openldap-2.1.29)
867
868* Wed Mar 24 2004 Satoshi MACHINO <machino@vinelinux.org> 2.1.28-0vl1
869- new upstream version (openldap-2.1.28)
870
871* Mon Mar 22 2004 Satoshi MACHINO <machino@vinelinux.org> 2.1.27-0vl1
872- new upstream version (openldap-2.1.27)
873
874* Sat Jan 24 2004 Satoshi MACHINO <machino@vinelinux.org> 2.1.26-0vl1
875- new upstream version (openldap-2.1.26)
876- don't use libtool in make
877
878* Sun Oct 26 2003 Satoshi MACHINO <machino@vinelinux.org> 2.1.23-0vl1
879- new upstream version (openldap-2.1.23)
880- updated migration tools to version 45
881- used libtool
882
883* Sun Jul 20 2003 Satoshi MACHINO <machino@vinelinux.org> 2.1.22-0vl2
884- for VineSeedPlus
885- fixed BuildPreReq
886
887* Sat Jul 19 2003 Satoshi MACHINO <machino@vinelinux.org> 2.1.22-0vl1
888- for VinePlus
889- new upstream version (openldap-2.1.22)
890
891* Fri May 29 2003 Satoshi MACHINO <machino@vinelinux.org> 2.1.21-0vl1
892- new upstream version (openldap-2.1.21)
893
894* Tue May 20 2003 Satoshi MACHINO <machino@vinelinux.org> 2.1.20-0vl1
895- new upstream version
896
897* Thu May 15 2003 Satoshi MACHINO <machino@vinelinux.org> 2.1.19-1vl1
898- new upstream version
899- merged spec file to 2.1.19-1
900        -- switch to db with crypto
901        -- install the db utils for the bundled libdb as %%{_sbindir}/slapd_db_*
902        -- install slapcat/slapadd from 2.0.x for migration purposes
903
904* Mon Jan 27 2003 Satoshi MACHINO <machino@vinelinux.org> 2.1.12-0vl1
905- updated to openldap-2.1.12
906        -- dropped ldapfriendly
907
908* Fri Sep 06 2002 Satoshi MACHINO <machino@vinelinux.org> 2.1.4-0vl1
909- updated to openldap-2.1.4
910- updated guide.html
911
912* Fri Sep 06 2002 Satoshi MACHINO <machino@vinelinux.org> 2.1.3-4vl1
913- updated to openldap-2.1.3
914- added db-4.0.14
915- updated migration tools to version 44
916- merged openldap-2.1.3-4
917        -- updated patch0, patch1, patch3 and patch6
918        -- dropped patch7 and patch10
919        -- enable the ldbm/berkeley backend as well
920        -- use an ldbm/berkeley database as the default
921        -- don't install slapadd-gdbm
922        -- allow ldapv2 binds by default
923        -- set TLS_CACERTFILE in the default ldap.conf file
924
925* Tue Jun 11 2002 Satoshi MACHINO <machino@vinelinux.org> 2.0.25-0vl1
926- updated to openldap-2.0.25
927
928* Mon Jun 10 2002 Satoshi MACHINO <machino@vinelinux.org> 2.0.24-0vl1
929- updated to openldap-2.0.24
930- updated migration tools to version 40
931- dropped autoconf source
932- dropped some patches
933
934* Sat Feb 16 2002 Satoshi MACHINO <machino@vinelinux.org> 2.0.23-0vl1
935- updated openldap-2.0.23
936
937* Wed Feb 06 2002 Satoshi MACHINO <machino@vinelinux.org> 2.0.22-0vl1
938- updated openldap-2.0.22
939
940* Tue Jan 21 2002 Satoshi MACHINO <machino@vinelinux.org> 2.0.21-0vl1
941- updated openldap-2.0.21
942
943* Wed Nov 07 2001 Satoshi MACHINO <machino@vinelinux.org> 2.0.18-0vl1
944- updated openldap-2.0.18
945
946* Sun Oct 14 2001 Satoshi MACHINO <machino@vinelinux.org> 2.0.17-0vl1
947- updated openldap-2.0.17
948- updated MigrationTools-38-instdir.patch
949- updated openldap-2.0.17-config.patch
950- removed openldap-2.0.3-krb5-1.1.patch
951
952* Sat Sep 22 2001 Satoshi MACHINO <machino@vinelinux.org> 2.0.14-1vl1
953- update to migration tools 39
954- removed patch libtool.patch and linkage.patch
955 
956* Wed Sep 19 2001 Satoshi MACHINO <machino@vinelinux.org> 2.0.14-0vl0
957- updated openldap-2.0.14
958
959* Mon Jul 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
960- 2.0.11-0vl2
961- rebuilt with openssl-0.9.6b
962
963* Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 2.0.11-0vl1
964- updated
965
966* Thu Apr 12 2001 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.7-14vl3
967- Fixed resolve libraries path.
968
969* Wed Apr 11 2001 Satoshi MACHINO <machino@vinelinux.org> 2.0.7-14vl2
970- added openldap-2.0.7-config-vine.patch
971- removed openldap-2.0.7-config.patch
972
973* Tue Apr 10 2001 Satoshi MACHINO <machino@vinelinux.org> 2.0.7-14vl1
974- merged Rawhide's OpenLDAP Package
975    back out pidfile patches, which interact weirdly with Linux threads
976    mark non-standard schema as such by moving them to a different directory
977    update to MigrationTools 36, adds netgroup support
978    fix thinko in that last patch
979    try to work around some buffering problems
980    gettextize the init script
981    move the RFCs to the base package (#21701)
982    add support for additional OPTIONS, SLAPD_OPTIONS, and SLURPD_OPTIONS in
983    a /etc/sysconfig/ldap file (#23549)
984    change automount object OID from 1.3.6.1.1.1.2.9 to 1.3.6.1.1.1.2.13,
985    per mail from the ldap-nis mailing list
986    force -fPIC so that shared libraries don't fall over
987    add Norbert Klasen's patch (via Del) to fix searches using ldaps URLs
988     (OpenLDAP ITS #889)
989    add "-h ldaps:///" to server init when TLS is enabled, in order to support
990    ldaps in addition to the regular STARTTLS (suggested by Del)
991    correct mismatched-dn-cn bug in migrate_automount.pl
992    update to the correct OIDs for automount and automountInformation
993    add notes on upgrading
994   
995* Sat Nov 25 2000 Satoshi MACHINO <machino@vinelinux.org> 2.0.7-1vl2
996- fixed VersionedDependencies to used _noVersionedDependencies 1 in .rpmmacros
997
998* Sat Nov 18 2000 MACHINO, satoshi <machino@vinelinux.org> 2.0.7-1vl1
999- build for Vine Linux
1000- removed kerberos
1001- fixed config dir
1002- fixed _sysconfdir
1003
1004* Tue Nov  7 2000 Nalin Dahyabhai <nalin@redhat.com>
1005- update to 2.0.7
1006- drop chdir patch (went mainstream)
1007
1008* Thu Nov  2 2000 Nalin Dahyabhai <nalin@redhat.com>
1009- change automount object classes from auxiliary to structural
1010
1011* Tue Oct 31 2000 Nalin Dahyabhai <nalin@redhat.com>
1012- update to Migration Tools 27
1013- change the sense of the last simple patch
1014
1015* Wed Oct 25 2000 Nalin Dahyabhai <nalin@redhat.com>
1016- reorganize the patch list to separate MigrationTools and OpenLDAP patches
1017- switch to Luke Howard's rfc822MailMember schema instead of the aliases.schema
1018- configure slapd to run as the non-root user "ldap" (#19370)
1019- chdir() before chroot() (we don't use chroot, though) (#19369)
1020- disable saving of the pid file because the parent thread which saves it and
1021  the child thread which listens have different pids
1022
1023* Wed Oct 11 2000 Nalin Dahyabhai <nalin@redhat.com>
1024- add missing required attributes to conversion scripts to comply with schema
1025- add schema for mail aliases, autofs, and kerberosSecurityObject rooted in
1026  our own OID tree to define attributes and classes migration scripts expect
1027- tweak automounter migration script
1028
1029* Mon Oct  9 2000 Nalin Dahyabhai <nalin@redhat.com>
1030- try adding the suffix first when doing online migrations
1031- force ldapadd to use simple authentication in migration scripts
1032- add indexing of a few attributes to the default configuration
1033- add commented-out section on using TLS to default configuration
1034
1035* Thu Oct  5 2000 Nalin Dahyabhai <nalin@redhat.com>
1036- update to 2.0.6
1037- add buildprereq on cyrus-sasl-devel, krb5-devel, openssl-devel
1038- take the -s flag off of slapadd invocations in migration tools
1039- add the cosine.schema to the default server config, needed by inetorgperson
1040
1041* Wed Oct  4 2000 Nalin Dahyabhai <nalin@redhat.com>
1042- add the nis.schema and inetorgperson.schema to the default server config
1043- make ldapadd a hard link to ldapmodify because they're identical binaries
1044
1045* Fri Sep 22 2000 Nalin Dahyabhai <nalin@redhat.com>
1046- update to 2.0.4
1047
1048* Fri Sep 15 2000 Nalin Dahyabhai <nalin@redhat.com>
1049- remove prereq on /etc/init.d (#17531)
1050- update to 2.0.3
1051- add saucer to the included clients
1052
1053* Wed Sep  6 2000 Nalin Dahyabhai <nalin@redhat.com>
1054- update to 2.0.1
1055
1056* Fri Sep  1 2000 Nalin Dahyabhai <nalin@redhat.com>
1057- update to 2.0.0
1058- patch to build against MIT Kerberos 1.1 and later instead of 1.0.x
1059
1060* Tue Aug 22 2000 Nalin Dahyabhai <nalin@redhat.com>
1061- remove that pesky default password
1062- change "Copyright:" to "License:"
1063
1064* Sun Aug 13 2000 Nalin Dahyabhai <nalin@redhat.com>
1065- adjust permissions in files lists
1066- move libexecdir from %%{_prefix}/sbin to %%{_sbindir}
1067
1068* Fri Aug 11 2000 Nalin Dahyabhai <nalin@redhat.com>
1069- add migrate_automount.pl to the migration scripts set
1070
1071* Tue Aug  8 2000 Nalin Dahyabhai <nalin@redhat.com>
1072- build a semistatic slurpd with threads, everything else without
1073- disable reverse lookups, per email on OpenLDAP mailing lists
1074- make sure the execute bits are set on the shared libraries
1075
1076* Mon Jul 31 2000 Nalin Dahyabhai <nalin@redhat.com>
1077- change logging facility used from local4 to daemon (#11047)
1078
1079* Thu Jul 27 2000 Nalin Dahyabhai <nalin@redhat.com>
1080- split off clients and servers to shrink down the package and remove the
1081  base package's dependency on Perl
1082- make certain that the binaries have sane permissions
1083
1084* Mon Jul 17 2000 Nalin Dahyabhai <nalin@redhat.com>
1085- move the init script back
1086
1087* Thu Jul 13 2000 Nalin Dahyabhai <nalin@redhat.com>
1088- tweak the init script to only source /etc/sysconfig/network if it's found
1089
1090* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
1091- automatic rebuild
1092
1093* Mon Jul 10 2000 Nalin Dahyabhai <nalin@redhat.com>
1094- switch to gdbm; I'm getting off the db merry-go-round
1095- tweak the init script some more
1096- add instdir to @INC in migration scripts
1097
1098* Thu Jul  6 2000 Nalin Dahyabhai <nalin@redhat.com>
1099- tweak init script to return error codes properly
1100- change initscripts dependency to one on /etc/init.d
1101
1102* Tue Jul  4 2000 Nalin Dahyabhai <nalin@redhat.com>
1103- prereq initscripts
1104- make migration scripts use mktemp
1105
1106* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
1107- do condrestart in post and stop in preun
1108- move init script to /etc/init.d
1109
1110* Fri Jun 16 2000 Nalin Dahyabhai <nalin@redhat.com>
1111- update to 1.2.11
1112- add condrestart logic to init script
1113- munge migration scripts so that you don't have to be
1114  /usr/share/openldap/migration to run them
1115- add code to create pid files in /var/run
1116
1117* Mon Jun  5 2000 Nalin Dahyabhai <nalin@redhat.com>
1118- FHS tweaks
1119- fix for compiling with libdb2
1120
1121* Thu May  4 2000 Bill Nottingham <notting@redhat.com>
1122- minor tweak so it builds on ia64
1123
1124* Wed May  3 2000 Nalin Dahyabhai <nalin@redhat.com>
1125- more minimalistic fix for bug #11111 after consultation with OpenLDAP team
1126- backport replacement for the ldapuser patch
1127
1128* Tue May  2 2000 Nalin Dahyabhai <nalin@redhat.com>
1129- fix segfaults from queries with commas in them in in.xfingerd (bug #11111)
1130
1131* Tue Apr 25 2000 Nalin Dahyabhai <nalin@redhat.com>
1132- update to 1.2.10
1133- add revamped version of patch from kos@bastard.net to allow execution as
1134  any non-root user
1135- remove test suite from %%build because of weirdness in the build system
1136
1137* Wed Apr 12 2000 Nalin Dahyabhai <nalin@redhat.com>
1138- move the defaults for databases and whatnot to /var/lib/ldap (bug #10714)
1139- fix some possible string-handling problems
1140
1141* Mon Feb 14 2000 Bill Nottingham <notting@redhat.com>
1142- start earlier, stop later.
1143
1144* Thu Feb  3 2000 Nalin Dahyabhai <nalin@redhat.com>
1145- auto rebuild in new environment (release 4)
1146
1147* Tue Feb  1 2000 Nalin Dahyabhai <nalin@redhat.com>
1148- add -D_REENTRANT to make threaded stuff more stable, even though it looks
1149  like the sources define it, too
1150- mark *.ph files in migration tools as config files
1151
1152* Fri Jan 21 2000 Nalin Dahyabhai <nalin@redhat.com>
1153- update to 1.2.9
1154
1155* Mon Sep 13 1999 Bill Nottingham <notting@redhat.com>
1156- strip files
1157
1158* Sat Sep 11 1999 Bill Nottingham <notting@redhat.com>
1159- update to 1.2.7
1160- fix some bugs from bugzilla (#4885, #4887, #4888, #4967)
1161- take include files out of base package
1162
1163* Fri Aug 27 1999 Jeff Johnson <jbj@redhat.com>
1164- missing ;; in init script reload) (#4734).
1165
1166* Tue Aug 24 1999 Cristian Gafton <gafton@redhat.com>
1167- move stuff from /usr/libexec to /usr/sbin
1168- relocate config dirs to /etc/openldap
1169
1170* Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
1171- initscript munging
1172
1173* Wed Aug 11 1999 Cristian Gafton <gafton@redhat.com>
1174- add the migration tools to the package
1175
1176* Fri Aug 06 1999 Cristian Gafton <gafton@redhat.com>
1177- upgrade to 1.2.6
1178- add rc.d script
1179- split -devel package
1180
1181* Sun Feb 07 1999 Preston Brown <pbrown@redhat.com>
1182- upgrade to latest stable (1.1.4), it now uses configure macro.
1183
1184* Fri Jan 15 1999 Bill Nottingham <notting@redhat.com>
1185- build on arm, glibc2.1
1186
1187* Wed Oct 28 1998 Preston Brown <pbrown@redhat.com>
1188- initial cut.
1189- patches for signal handling on the alpha
Note: See TracBrowser for help on using the repository browser.