openldap-vl.spec 42 KB

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