openldap-vl.spec 44 KB

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