openldap-vl.spec 44 KB

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