cyrus-sasl-vl.spec 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877
  1. %bcond_with systemd
  2. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  3. %define _plugindir2 %{_libdir}/sasl2
  4. Summary: The Cyrus SASL library.
  5. Summary(ja): Cyrus SASL ライブラリ
  6. Name: cyrus-sasl
  7. Version: 2.1.27
  8. Release: 3%{?_dist_release}%{?with_systemd:.systemd}
  9. Group: system
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. License: BSD with advertising
  13. URL: http://cyrusimap.org/
  14. Source0: https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-%{version}/cyrus-sasl-%{version}.tar.gz
  15. Source4: saslauthd.init
  16. Source5: README.RPM
  17. Source9: saslauthd.sysconfig
  18. Source10: saslauthd.service
  19. #
  20. Patch11: cyrus-sasl-2.1.25-no_rpath.patch
  21. Patch15: cyrus-sasl-2.1.20-saslauthd.conf-path.patch
  22. Patch24: cyrus-sasl-2.1.21-sizes.patch
  23. # The 64 bit *INT8 type is not used anywhere and other types match
  24. Patch49: cyrus-sasl-2.1.26-md5global.patch
  25. Patch60: cyrus-sasl-pr559-RC4-openssl.patch
  26. Patch100: cyrus-sasl-cve-2019-19906.patch
  27. Patch101: cyrus-sasl-2.1.27-Add-basic-test-infrastructure.patch
  28. Patch102: cyrus-sasl-2.1.27-Add-Channel-Binding-support-for-GSSAPI-GSS-SPNEGO.patch
  29. Patch103: cyrus-sasl-2.1.27-Add-support-for-setting-max-ssf-0-to-GSS-SPNEGO.patch
  30. Patch104: cyrus-sasl-2.1.27-Emit-debug-log-only-in-case-of-errors.patch
  31. Patch105: cyrus-sasl-2.1.27-fix-for-autoconf270.patch
  32. #https://github.com/simo5/cyrus-sasl/commit/ebd2387f06c84c7f9aac3167ec041bb01e5c6e48
  33. Patch106: cyrus-sasl-2.1.27-nostrncpy.patch
  34. # Upstream PR: https://github.com/cyrusimap/cyrus-sasl/pull/635
  35. Patch107: cyrus-sasl-2.1.27-Add-basic-test-plain-auth.patch
  36. #Migration tool should be removed from Fedora 36
  37. Patch108: cyrus-sasl-2.1.27-Migration-from-BerkeleyDB.patch
  38. Patch500: cyrus-sasl-2.1.27-coverity.patch
  39. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  40. BuildRequires: autoconf, automake, libtool
  41. # Note: berkeley db for sasl2, gdbm for sasl1.
  42. BuildRequires: libdb-devel
  43. BuildRequires: openssl-devel
  44. BuildRequires: pam-devel
  45. BuildRequires: libmariadb-devel
  46. BuildRequires: libpq-devel
  47. BuildRequires: openldap-devel
  48. BuildRequires: zlib-devel
  49. BuildRequires: pkgconfig
  50. BuildRequires: krb5-devel
  51. BuildRequires: groff
  52. BuildRequires: libxcrypt-devel
  53. %if %{with systemd}
  54. %{?systemd_requires}
  55. %else
  56. Requires(post): chkconfig
  57. Requires(postun): chkconfig
  58. %endif
  59. %description
  60. The %{name} package contains the Cyrus implementation of SASL.
  61. SASL is the Simple Authentication and Security Layer, a method for
  62. adding authentication support to connection-based protocols.
  63. %package devel
  64. Summary: Files needed for developing applications with Cyrus SASL.
  65. Summary(ja): Cyrus SASL を用いるアプリケーションの開発に必要なファイル
  66. Group: programming
  67. Requires: %{name} = %{version}-%{release}
  68. %description devel
  69. The %{name}-devel package contains files needed for developing and
  70. compiling applications which use the Cyrus SASL library.
  71. %package gssapi
  72. Summary: GSSAPI support for Cyrus SASL.
  73. Summary(ja): Cyrus SASL の GSSAPI 認証サポート
  74. Group: system
  75. Requires: %{name} = %{version}-%{release}
  76. %description gssapi
  77. The %{name}-gssapi package contains the Cyrus SASL plugins which
  78. support GSSAPI authentication. GSSAPI is commonly used for Kerberos
  79. authentication.
  80. %package plain
  81. Summary: PLAIN and LOGIN support for Cyrus SASL.
  82. Summary(ja): Cyrus SASL の PLAIN, LOGIN 認証サポート
  83. Group: system
  84. Requires: %{name} = %{version}-%{release}
  85. %description plain
  86. The %{name}-plain package contains the Cyrus SASL plugins which support
  87. PLAIN and LOGIN authentication schemes.
  88. %package md5
  89. Summary: CRAM-MD5 and DIGEST-MD5 support for Cyrus SASL.
  90. Summary(ja): Cyrus SASL の CRAM-MD5, DIGEST-MD5 認証サポート
  91. Group: system
  92. Requires: %{name} = %{version}-%{release}
  93. %description md5
  94. The %{name}-md5 package contains the Cyrus SASL plugins which support
  95. CRAM-MD5 and DIGEST-MD5 authentication schemes.
  96. %package ntlm
  97. Summary: NTLM support for Cyrus SASL.
  98. Summary(ja): Cyrus SASL の NTLM 認証サポート
  99. Group: system
  100. Requires: %{name} = %{version}-%{release}
  101. %description ntlm
  102. The %{name}-ntlm package contains the Cyrus SASL plugin which supports
  103. the NTLM authentication schemes.
  104. # This would more appropriately be named cyrus-sasl-auxprop-sql.
  105. %package sql
  106. Summary: SQL auxprop support for Cyrus SASL
  107. Summary(ja): Cyrus SASL の SQL auxprop サポート
  108. Group: system
  109. Requires: %{name} = %{version}-%{release}
  110. %description sql
  111. The %{name}-sql package contains the Cyrus SASL plugin which supports
  112. using a RDBMS for storing shared secrets.
  113. # This was *almost* named cyrus-sasl-auxprop-ldapdb, but that's a lot of typing.
  114. %package ldap
  115. Summary: LDAP auxprop support for Cyrus SASL
  116. Summary(ja): Cyrus SASL の LDAP auxprop サポート
  117. Group: system
  118. Requires: %{name} = %{version}-%{release}
  119. %description ldap
  120. The %{name}-ldap package contains the Cyrus SASL plugin which supports using
  121. a directory server, accessed using LDAP, for storing shared secrets.
  122. %package scram
  123. Summary: SCRAM auxprop support for Cyrus SASL
  124. Summary(ja): Cyrus SASL の SCRAM auxprop サポート
  125. Group: system
  126. Requires: %{name} = %{version}-%{release}
  127. %description scram
  128. The %{name}-scram package contains the Cyrus SASL plugin which supports
  129. the SCRAM authentication scheme.
  130. %package gs2
  131. Summary: GS2 support for Cyrus SASL
  132. Summary(ja): Cyrus SASL の GS2 認証サポート
  133. Group: system
  134. Requires: %{name} = %{version}-%{release}
  135. %description gs2
  136. The %{name}-gs2 package contains the Cyrus SASL plugin which supports
  137. the GS2 authentication scheme.
  138. ## to build compat32 for x86_64 architecture support
  139. %package -n compat32-%{name}
  140. Summary: The Cyrus SASL library.
  141. Summary(ja): Cyrus SASL ライブラリ
  142. Group: system,legacy
  143. %description -n compat32-%{name}
  144. The %{name} package contains the Cyrus implementation of SASL.
  145. SASL is the Simple Authentication and Security Layer, a method for
  146. adding authentication support to connection-based protocols.
  147. %package -n compat32-%{name}-devel
  148. Summary: Files needed for developing applications with Cyrus SASL.
  149. Summary(ja): Cyrus SASL を用いるアプリケーションの開発に必要なファイル
  150. Group: programming,legacy
  151. Requires: compat32-%{name} = %{version}-%{release}
  152. %description -n compat32-%{name}-devel
  153. The %{name}-devel package contains files needed for developing and
  154. compiling applications which use the Cyrus SASL library.
  155. %package -n compat32-%{name}-gssapi
  156. Summary: GSSAPI support for Cyrus SASL.
  157. Summary(ja): Cyrus SASL の GSSAPI 認証サポート
  158. Group: system,legacy
  159. Requires: compat32-%{name} = %{version}-%{release}
  160. %description -n compat32-%{name}-gssapi
  161. The %{name}-gssapi package contains the Cyrus SASL plugins which
  162. support GSSAPI authentication. GSSAPI is commonly used for Kerberos
  163. authentication.
  164. %package -n compat32-%{name}-plain
  165. Summary: PLAIN and LOGIN support for Cyrus SASL.
  166. Summary(ja): Cyrus SASL の PLAIN, LOGIN 認証サポート
  167. Group: system,legacy
  168. Requires: compat32-%{name} = %{version}-%{release}
  169. %description -n compat32-%{name}-plain
  170. The %{name}-plain package contains the Cyrus SASL plugins which support
  171. PLAIN and LOGIN authentication schemes.
  172. %package -n compat32-%{name}-md5
  173. Summary: CRAM-MD5 and DIGEST-MD5 support for Cyrus SASL.
  174. Summary(ja): Cyrus SASL の CRAM-MD5, DIGEST-MD5 認証サポート
  175. Group: system,legacy
  176. Requires: compat32-%{name} = %{version}-%{release}
  177. %description -n compat32-%{name}-md5
  178. The %{name}-md5 package contains the Cyrus SASL plugins which support
  179. CRAM-MD5 and DIGEST-MD5 authentication schemes.
  180. %package -n compat32-%{name}-ntlm
  181. Summary: NTLM support for Cyrus SASL.
  182. Summary(ja): Cyrus SASL の NTLM 認証サポート
  183. Group: system,legacy
  184. Requires: compat32-%{name} = %{version}-%{release}
  185. %description -n compat32-%{name}-ntlm
  186. The %{name}-ntlm package contains the Cyrus SASL plugin which supports
  187. the NTLM authentication schemes.
  188. # %package -n compat32-%{name}-sql
  189. # Group: System Environment/Libraries
  190. # Summary: SQL auxprop support for Cyrus SASL
  191. # %description -n compat32-%{name}-sql
  192. # The %{name}-sql package contains the Cyrus SASL plugin which supports
  193. # using a RDBMS for storing shared secrets.
  194. %package -n compat32-%{name}-ldap
  195. Summary: LDAP auxprop support for Cyrus SASL
  196. Summary(ja): Cyrus SASL の LDAP auxprop サポート
  197. Group: system,legacy
  198. Requires: compat32-%{name} = %{version}-%{release}
  199. %description -n compat32-%{name}-ldap
  200. The %{name}-ldap package contains the Cyrus SASL plugin which supports using
  201. a directory server, accessed using LDAP, for storing shared secrets.
  202. %package -n compat32-%{name}-scram
  203. Summary: SCRAM auxprop support for Cyrus SASL
  204. Summary(ja): Cyrus SASL の SCRAM auxprop サポート
  205. Group: system,legacy
  206. Requires: compat32-%{name} = %{version}-%{release}
  207. %description -n compat32-%{name}-scram
  208. The %{name}-scram package contains the Cyrus SASL plugin which supports
  209. the SCRAM authentication scheme.
  210. %package -n compat32-%{name}-gs2
  211. Summary: GS2 support for Cyrus SASL
  212. Summary(ja): Cyrus SASL の GS2 認証サポート
  213. Group: system,legacy
  214. Requires: compat32-%{name} = %{version}-%{release}
  215. %description -n compat32-%{name}-gs2
  216. The %{name}-gs2 package contains the Cyrus SASL plugin which supports
  217. the GS2 authentication scheme.
  218. %debug_package
  219. %prep
  220. %setup -q
  221. chmod -x doc/legacy/*.html
  222. chmod -x include/*.h
  223. %patch11 -p1 -b .no_rpath
  224. %if %{with systemd}
  225. %patch15 -p1 -b .path
  226. %else
  227. sed -i -e 's|/usr/local/etc|/etc|g' saslauthd/saslauthd.mdoc
  228. %endif
  229. %patch24 -p1 -b .sizes
  230. %patch49 -p1 -b .md5global.h
  231. %patch60 -p1 -b .openssl_rc4
  232. %patch100 -p1 -b .cve_2019_19906
  233. %patch101 -p1 -b .tests
  234. %patch102 -p1 -b .gssapi_cbs
  235. %patch103 -p1 -b .maxssf0
  236. %patch104 -p1 -b .nolog
  237. %patch105 -p1 -b .autoconf270
  238. %patch106 -p1 -b .nostrncpy
  239. %patch107 -p1 -b .plaintests
  240. %patch108 -p1 -b .frombdb
  241. %patch500 -p1 -b .coverity
  242. %build
  243. # FIXME - we remove these files directly so that we can avoid using the -f
  244. # flag, which has a nasty habit of overwriting files like COPYING.
  245. rm -f config/config.guess config/config.sub
  246. rm -f config/ltconfig config/ltmain.sh config/libtool.m4
  247. rm -fr autom4te.cache
  248. autoreconf -vif
  249. # Find Kerberos.
  250. krb5_prefix=`krb5-config --prefix`
  251. if test x$krb5_prefix = x%{_prefix} ; then
  252. krb5_prefix=
  253. else
  254. CPPFLAGS="-I${krb5_prefix}/include $CPPFLAGS"; export CPPFLAGS
  255. LDFLAGS="-L${krb5_prefix}/%{_lib} $LDFLAGS"; export LDFLAGS
  256. fi
  257. # Find OpenSSL.
  258. LIBS="-lcrypt"; export LIBS
  259. if pkg-config openssl ; then
  260. CPPFLAGS="`pkg-config --cflags-only-I openssl` $CPPFLAGS"; export CPPFLAGS
  261. LDFLAGS="`pkg-config --libs-only-L openssl` $LDFLAGS"; export LDFLAGS
  262. fi
  263. # Find the MySQL libraries used needed by the SQL auxprop plugin.
  264. INC_DIR="`mysql_config --include`"
  265. if test x"$INC_DIR" != "x-I%{_includedir}"; then
  266. CPPFLAGS="$INC_DIR $CPPFLAGS"; export CPPFLAGS
  267. fi
  268. LIB_DIR="`mysql_config --libs | sed -e 's,-[^L][^ ]*,,g' -e 's,^ *,,' -e 's, *$,,' -e 's, *, ,g'`"
  269. if test x"$LIB_DIR" != "x-L%{_libdir}"; then
  270. LDFLAGS="$LIB_DIR $LDFLAGS"; export LDFLAGS
  271. fi
  272. # Find the PostgreSQL libraries used needed by the SQL auxprop plugin.
  273. INC_DIR="-I`pg_config --includedir`"
  274. if test x"$INC_DIR" != "x-I%{_includedir}"; then
  275. CPPFLAGS="$INC_DIR $CPPFLAGS"; export CPPFLAGS
  276. fi
  277. LIB_DIR="-L`pg_config --libdir`"
  278. if test x"$LIB_DIR" != "x-L%{_libdir}"; then
  279. LDFLAGS="$LIB_DIR $LDFLAGS"; export LDFLAGS
  280. fi
  281. CFLAGS="$RPM_OPT_FLAGS $CFLAGS $CPPFLAGS -fPIC -pie -Wl,-z,relro -Wl,-z,now"; export CFLAGS
  282. echo "$CFLAGS"
  283. echo "$CPPFLAGS"
  284. echo "$LDFLAGS"
  285. %configure \
  286. --disable-static --enable-shared --disable-java \
  287. --with-plugindir=%{_plugindir2} \
  288. --with-configdir=%{_plugindir2}:%{_sysconfdir}/sasl2 \
  289. --disable-krb4 \
  290. --with-rc4 \
  291. --with-dblib=berkeley \
  292. --with-bdb=db \
  293. %if %{with systemd}
  294. --with-saslauthd=/run/saslauthd --without-pwcheck \
  295. %else
  296. --with-saslauthd=/var/run/saslauthd --without-pwcheck \
  297. %endif
  298. --with-ldap \
  299. --with-devrandom=/dev/urandom \
  300. --enable-anon \
  301. --enable-cram \
  302. --enable-digest \
  303. --enable-ntlm \
  304. --enable-plain \
  305. --enable-login \
  306. --disable-otp \
  307. --enable-ldapdb \
  308. --enable-sql --with-mysql=%{_prefix} --with-pgsql=%{_prefix} \
  309. --without-sqlite \
  310. "$@"
  311. # --enable-auth-sasldb -- EXPERIMENTAL
  312. make %{?_smp_mflags} sasldir=%{_plugindir2}
  313. make %{?_smp_mflags} -C saslauthd testsaslauthd
  314. make -C sample
  315. %install
  316. test "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
  317. make install DESTDIR=$RPM_BUILD_ROOT sasldir=%{_plugindir2}
  318. make install DESTDIR=$RPM_BUILD_ROOT sasldir=%{_plugindir2} -C plugins
  319. install -m755 -d $RPM_BUILD_ROOT%{_bindir}
  320. ./libtool --tag=CC --mode=install \
  321. install -m755 sample/client $RPM_BUILD_ROOT%{_bindir}/sasl2-sample-client
  322. ./libtool --tag=CC --mode=install \
  323. install -m755 sample/server $RPM_BUILD_ROOT%{_bindir}/sasl2-sample-server
  324. ./libtool --tag=CC --mode=install \
  325. install -m755 saslauthd/testsaslauthd $RPM_BUILD_ROOT%{_sbindir}/testsaslauthd
  326. ./libtool --tag=CC --mode=install \
  327. install -m755 utils/dbconverter-2 $RPM_BUILD_ROOT%{_sbindir}/dbconverter-2
  328. # Install the saslauthd mdoc page in the expected location. Sure, it's not
  329. # really a man page, but groff seems to be able to cope with it.
  330. install -m755 -d $RPM_BUILD_ROOT%{_mandir}/man8/
  331. install -m644 saslauthd/saslauthd.mdoc $RPM_BUILD_ROOT%{_mandir}/man8/saslauthd.8
  332. install -Dpm644 %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
  333. %if %{with systemd}
  334. install -Dpm644 %{SOURCE10} $RPM_BUILD_ROOT/%{_unitdir}/saslauthd.service
  335. sed -i -e 's|/var/run|/run|g' $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
  336. %else
  337. # Install the init script for saslauthd
  338. install -m755 -d $RPM_BUILD_ROOT/etc/rc.d/init.d
  339. install -m755 -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
  340. # Create the saslauthd listening directory.
  341. install -m755 -d $RPM_BUILD_ROOT/var/run/saslauthd
  342. %endif
  343. # Install the config dirs if they're not already there.
  344. install -m755 -d $RPM_BUILD_ROOT/%{_sysconfdir}/sasl2
  345. install -m755 -d $RPM_BUILD_ROOT/%{_plugindir2}
  346. # Remove unpackaged files from the buildroot.
  347. rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/libotp.*
  348. rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.a
  349. rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.la
  350. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  351. rm -f $RPM_BUILD_ROOT%{_mandir}/cat8/saslauthd.8
  352. %clean
  353. test "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
  354. %if %{with systemd}
  355. %pre
  356. getent group %{username} >/dev/null || groupadd -g 76 -r saslauth
  357. getent passwd %{username} >/dev/null || useradd -r -g saslauth -d /run/saslauthd -s /sbin/nologin -c "Saslauthd user" saslauth
  358. %endif
  359. %post
  360. %if %{with systemd}
  361. if [ -e %{_initdir}/saslauthd ]; then
  362. /bin/systemctl --no-reload preset saslauthd.service || :
  363. fi
  364. %systemd_post saslauthd.service
  365. %else
  366. /sbin/chkconfig --add saslauthd
  367. %endif
  368. %preun
  369. %if %{with systemd}
  370. %systemd_preun saslauthd.service
  371. %else
  372. if [ $1 = 0 -o -x /bin/systemctl ] ; then
  373. /sbin/service saslauthd stop 2>&1 > /dev/null ||:
  374. /sbin/chkconfig --del saslauthd
  375. fi
  376. exit 0
  377. %endif
  378. %postun
  379. %if %{with systemd}
  380. %systemd_postun_with_restart saslauthd.service
  381. %else
  382. if [ $1 != 0 ] ; then
  383. /sbin/service saslauthd condrestart 2>&1 > /dev/null ||:
  384. fi
  385. exit 0
  386. %endif
  387. %files
  388. %defattr(-,root,root)
  389. %license COPYING
  390. %doc AUTHORS README doc/legacy/*.html
  391. %doc $RPM_SOURCE_DIR/README.RPM
  392. %dir %{_sysconfdir}/sasl2
  393. %{_libdir}/libsasl*.so.*
  394. %dir %{_plugindir2}/
  395. %{_plugindir2}/*anonymous*.so*
  396. %{_plugindir2}/*sasldb*.so*
  397. %{_mandir}/man8/*
  398. %{_sbindir}/cyrusbdb2current
  399. %{_sbindir}/dbconverter-2
  400. %{_sbindir}/saslpasswd2
  401. %{_sbindir}/sasldblistusers2
  402. %{_sbindir}/pluginviewer
  403. %{_sbindir}/saslauthd
  404. %{_sbindir}/testsaslauthd
  405. %config(noreplace) /etc/sysconfig/saslauthd
  406. %if %{with systemd}
  407. %{_unitdir}/saslauthd.service
  408. %ghost /run/saslauthd
  409. %else
  410. %config /etc/rc.d/init.d/saslauthd
  411. /var/run/saslauthd
  412. %endif
  413. %files gssapi
  414. %defattr(-,root,root)
  415. %{_plugindir2}/*gssapi*.so*
  416. %files plain
  417. %defattr(-,root,root)
  418. %{_plugindir2}/*plain*.so*
  419. %{_plugindir2}/*login*.so*
  420. %files md5
  421. %defattr(-,root,root)
  422. %{_plugindir2}/*crammd5*.so*
  423. %{_plugindir2}/*digestmd5*.so*
  424. %files ntlm
  425. %defattr(-,root,root)
  426. %{_plugindir2}/*ntlm*.so*
  427. %files sql
  428. %defattr(-,root,root)
  429. %{_plugindir2}/*sql*.so*
  430. %files ldap
  431. %defattr(-,root,root)
  432. %{_plugindir2}/*ldapdb*.so*
  433. %files scram
  434. %defattr(-,root,root)
  435. %{_plugindir2}/libscram.so*
  436. %files gs2
  437. %defattr(-,root,root)
  438. %{_plugindir2}/libgs2.so*
  439. %files devel
  440. %defattr(-,root,root)
  441. %{_bindir}/sasl2-sample-client
  442. %{_bindir}/sasl2-sample-server
  443. %{_includedir}/*
  444. %{_libdir}/libsasl*.so
  445. %{_libdir}/pkgconfig/*.pc
  446. %{_mandir}/man3/*
  447. ## to build compat32 for x86_64 architecture support
  448. %if %{build_compat32}
  449. %files -n compat32-%{name}
  450. %defattr(-,root,root)
  451. %{_libdir}/libsasl*.so.*
  452. %dir %{_plugindir2}/
  453. %{_plugindir2}/*anonymous*.so*
  454. %{_plugindir2}/*sasldb*.so*
  455. %files -n compat32-%{name}-gssapi
  456. %defattr(-,root,root)
  457. %{_plugindir2}/*gssapi*.so*
  458. %files -n compat32-%{name}-plain
  459. %defattr(-,root,root)
  460. %{_plugindir2}/*plain*.so*
  461. %{_plugindir2}/*login*.so*
  462. %files -n compat32-%{name}-md5
  463. %defattr(-,root,root)
  464. %{_plugindir2}/*crammd5*.so*
  465. %{_plugindir2}/*digestmd5*.so*
  466. %files -n compat32-%{name}-ntlm
  467. %defattr(-,root,root)
  468. %{_plugindir2}/*ntlm*.so*
  469. # %files -n compat32-%{name}-sql
  470. # %defattr(-,root,root)
  471. # %{_plugindir2}/*sql*.so*
  472. %files -n compat32-%{name}-ldap
  473. %defattr(-,root,root)
  474. %{_plugindir2}/*ldapdb*.so*
  475. %files -n compat32-%{name}-scram
  476. %defattr(-,root,root)
  477. %{_plugindir2}/libscram.so*
  478. %files -n compat32-%{name}-gs2
  479. %defattr(-,root,root)
  480. %{_plugindir2}/libgs2.so*
  481. %files -n compat32-%{name}-devel
  482. %defattr(-,root,root)
  483. %{_libdir}/libsasl*.so
  484. %endif
  485. %changelog
  486. * Tue Oct 05 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.27-3
  487. - rebuilt with openssl-3.0.0.
  488. - dropped ldconfig scriptlets.
  489. - dropped Patch102 and 1000.
  490. - imported Patch60-500 from rawhide.
  491. * Wed May 27 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.27-2
  492. - added systemd support (disables as default).
  493. * Mon May 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.27-1
  494. - new upstream release.
  495. - updated Patch11, 15, 21, 49 and 102.
  496. - dropped Patch44-48, 50-60 and 200.
  497. - added BR:libxcrypt-devel.
  498. * Tue Nov 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.26-7
  499. - rebuilt with openssl-1.1.1.
  500. - added Patch54-60.
  501. * Wed Nov 02 2016 Toshiaki Ara <ara_t@384.jp> 2.1.26-6
  502. - fix [BTS:0003006]
  503. - correct saslauthd.sysconfig
  504. * Mon Mar 21 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.26-5
  505. - rebuilt with openssl-1.0.2g.
  506. * Sun Dec 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.1.26-4
  507. - built with libdb 5.3.28
  508. - dropt Patch10
  509. - added Patch44, 45, 49, 50, 52 and 53
  510. - fixed typo of Require of compat32-cyrus-sasl-{scram, gs2}
  511. - fixed %%doc of cyrus-sasl and cyrus-sasl-devel
  512. - added Japanese summary
  513. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.26-3
  514. - rebuild with VineSeed environment
  515. - change BuildRequires: libmysqlclient-devel instead of MySQL-devel
  516. - change BuildRequires: libpq-devel instead of postgresql-devel
  517. * Sat Feb 08 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.26-2
  518. - add Patch46 (cyrus-sasl-2.1.26-size_t.patch) from fedora
  519. * Thu Jan 9 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 2.1.26-1
  520. - update to 2.1.26
  521. - drop sig file (Source1): upstream isn't release.
  522. - add cyrus-sasl-scram and cyrus-sasl-gs2 packages
  523. - add pkgconfig file in cyrus-sasl-devel package
  524. - fix License
  525. - update URL
  526. - update %%doc
  527. - drop SASLv1
  528. - drop Source2,3
  529. - drop Patch0-5 for SASLv1 patches
  530. - update patch from RHEL7 beta cyrus-sasl-2.1.26-12.1.el7
  531. - no rpath patch (Patch11)
  532. - keytab patch (Patch28)
  533. - db4 patch (Patch100)
  534. - gcc44 patch (Patch101)
  535. - update CVE-2013-4122 patch (Patch200) from Gentoo Linux
  536. - update configure patch (Patch102)
  537. - drop unnecessary patch
  538. - automake 1.10 patch (Patch27)
  539. - upstream fixed
  540. - typo patch (Patch25)
  541. - digest commas patch (Patch26)
  542. * Mon Sep 16 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.1.23-11
  543. - add patch200 for fix CVE-2013-4122 (NULL ptr. dereference)
  544. * Mon Aug 22 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.1.23-10
  545. - add Vendor/Distri Tags
  546. * Mon Aug 22 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.23-9
  547. - fixed pam support.
  548. - fixed MySQL support.
  549. * Tue Apr 12 2011 Shu KONNO <owa@bg.wakwak.com> 2.1.23-8
  550. - rebuilt with postgresql-9.0.3
  551. * Tue Mar 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.23-7
  552. - rebuild with krb5-libs-1.8.2 and openssl-1.0.0d
  553. * Tue Jan 11 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.23-6
  554. - rebuild with openssl-1.0.0c
  555. - add BuildRequires: groff
  556. * Thu Feb 11 2010 NAKAMURA Kenta <kenta@vinelinux.org> 2.1.23-5
  557. - rebuilt with db4-4.8
  558. - updated Patch100: cyrus-sasl-2.1.22-db4.patch
  559. - added Patch101: cyrus-sasl-2.1.23-gcc44.patch
  560. * Sun Jul 05 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.1.23-4
  561. - dropped compat32-%%{name}-sql
  562. * Sat Jul 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.1.23-3
  563. - added compat32 subpackages
  564. * Fri May 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.23-2
  565. - rebuilt with MySQL-5.1.34.
  566. * Mon May 18 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.1.23-1
  567. - new upstream release with security fix (CVE-2009-0688)
  568. - add patch5 to fix CVE-2009-0688 issue in 1.5.28 side
  569. (No effect in Current VineSeed package)
  570. * Sun Jan 04 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.1.22-5
  571. - rebuilt with openldap-2.4.11
  572. * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 2.1.22-4
  573. - s/%%{name}-lib/%%{name}/ at requires of sql, ldap sub-packages
  574. * Sun Oct 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1.22-3
  575. - added gssapi subpackage
  576. * Fri Jun 20 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.1.22-2
  577. - rebuilt against db-4.6.21 with Patch100
  578. - import Patch27 from Fedora
  579. * Sat Apr 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.22-1vl5
  580. - updated to 2.1.22
  581. - added Patches from Fedora
  582. * Tue Jun 20 2006 Nalin Dahyabhai <nalin@redhat.com> 2.1.22-2
  583. - fix a typo in sasl_client_start(3) (#196066)
  584. * Thu Apr 27 2006 Nalin Dahyabhai <nalin@redhat.com> 2.1.21-11
  585. - add unapplied patch which makes the DIGEST-MD5 plugin omit the realm
  586. argument when the environment has $CYRUS_SASL_DIGEST_MD5_OMIT_REALM set
  587. to a non-zero value, for testing purposes
  588. - added subpackages for the ldapdb auxprop support
  589. - added --disable-static option to %%configure
  590. * Tue May 22 2007 NAKAMURA Kenta <kenta@vinelinux.org> 2.1.18-0vl8
  591. - added Patch17: cyrus-sasl-2.1.18-openssl-098.patch
  592. - rebuilt with openssl-0.9.8
  593. * Thu May 10 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.1.18-0vl7
  594. - disable version 1 now (no VineSeed package require version 1)
  595. - enable ntlm subpackage now
  596. - rebuilt with new toolchain and db4-4.3.x
  597. * Sat Jul 1 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.18-0vl6
  598. - rebuilt for VineSeed
  599. * Fri Apr 28 2006 IWAI, Masaharu <iwai@alib.jp> 2.1.18-0vl5
  600. - SECURITY FIX for Vine 3.2: CVE-2006-1721
  601. - add 23_CVE-2006-1721.diff ( Patch16 )
  602. from Debian Sarge cyrus-sasl2_2.1.19-1.5sarge1.diff.gz
  603. * Mon Dec 26 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.18-0vl4
  604. - rebuild for VineSeed
  605. * Sat Nov 27 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 2.1.18-0vl3
  606. - added security patch cyrus-sasl-CAN-2004-0884.patch for CAN-2004-0884
  607. from Mandrakelinux.
  608. * Mon Oct 11 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.1.18-0vl2
  609. - rebuilt with db4-4.2.52
  610. * Thu Aug 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.18-0vl1
  611. - new upstream release
  612. - rebuild with openssl-0.9.7d
  613. - import some patch from fedora package
  614. * Sun Nov 23 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.15-6vl1
  615. - new upstream release
  616. - remove prereq initscripts
  617. - merged with fedora package
  618. * Thu Oct 23 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.15-6
  619. - use /dev/urandom instead of /dev/random for SASL2 (docs indicate that this is
  620. safe if you aren't using OTP or SRP, and we build neither); SASL1 appears to
  621. use it to seed the libc RNG only (#103378)
  622. * Mon Oct 20 2003 Nalin Dahyabhai <nalin@redhat.com>
  623. - obey RPM_OPT_FLAGS again when krb5_prefix != %%{_prefix}
  624. * Fri Oct 17 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.15-5
  625. - install saslauthd's mdoc page instead of the pre-formatted man page, which
  626. would get formatted again
  627. * Mon Sep 15 2003 Nalin Dahyabhai <nalin@redhat.com>
  628. - include testsaslauthd
  629. - note in the README that the saslauthd protocol is different for v1 and v2,
  630. so v1's clients can't talk to the v2 server
  631. * Thu Aug 21 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.15-3
  632. - add logic to build with gssapi libs in either /usr or /usr/kerberos
  633. * Tue Jul 15 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.15-1
  634. - update to 2.1.15
  635. * Mon Jul 14 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.14-1
  636. - update to 2.1.14
  637. * Wed May 14 2003 Satoshi MACHINO <machino@vinelinux.org> 2.1.13-3vl1
  638. - new upstream version
  639. - merged with rawhide version
  640. -- * Fri May 9 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.13-3
  641. -- - change -m argument to saslauthd to be a directory instead of a path
  642. -- * Thu May 8 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.13-2
  643. -- - link libsasl2 with -lpthread to ensure that the sasldb plug-in
  644. can always be loaded
  645. -- * Tue Apr 29 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.13-1
  646. -- - update to 2.1.13
  647. - disable gssapi because Vine Linux don't support Kerberos
  648. * Sun Dec 9 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.5.27-17vl1
  649. - upstream release
  650. - obsoleted cyrus-sasl-1.5.21-des.patch ( upstream merged )
  651. - obsoleted cyrus-sasl-1.5.24-external.patch ( upstream merged )
  652. - added BuildPrereq: gdbm-devel, pam-devel
  653. * Mon Jul 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  654. - 1.5.24-17vl2
  655. - rebuilt with openssl-0.9.6b
  656. * Wed Apr 11 2001 Satoshi MACHINO <machino@vinelinux.org> 1.5.24-17vl1
  657. - merged Rawhide Package
  658. * Sat Nov 18 2000 MACHINO, Satoshi <machino@vinelinux.org> 1.5.24-14vl1
  659. - build for Vine Linux
  660. - build with gcc-2.95.3
  661. - removed kerberos and gssapi
  662. * Fri Oct 27 2000 Nalin Dahyabhai <nalin@redhat.com>
  663. - enable static libraries, but always build with -fPIC
  664. * Wed Oct 25 2000 Nalin Dahyabhai <nalin@redhat.com>
  665. - make sure the version of 1.5.24 in the package matches the masters (#18968)
  666. * Mon Oct 9 2000 Nalin Dahyabhai <nalin@redhat.com>
  667. - re-add the libsasl.so symlink to the -devel package (oops)
  668. * Fri Oct 6 2000 Nalin Dahyabhai <nalin@redhat.com>
  669. - move .so files for modules to their respective packages -- they're not -devel
  670. links meant for use by ld anyway
  671. * Thu Oct 5 2000 Nalin Dahyabhai <nalin@redhat.com>
  672. - split off -devel subpackage
  673. - add a -gssapi subpackage for the gssapi plugins
  674. * Wed Aug 16 2000 Nalin Dahyabhai <nalin@redhat.com>
  675. - fix the summary text
  676. * Sun Aug 13 2000 Nalin Dahyabhai <nalin@redhat.com>
  677. - re-enable arcfour and CRAM
  678. * Fri Aug 4 2000 Nalin Dahyabhai <nalin@redhat.com>
  679. - force use of gdbm for database files to avoid DB migration weirdness
  680. - enable login mechanism
  681. - disable gssapi until it can coexist peacefully with non-gssapi setups
  682. - actually do a make in the build section (#15410)
  683. * Fri Jul 21 2000 Nalin Dahyabhai <nalin@redhat.com>
  684. - update to 1.5.24
  685. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  686. - automatic rebuild
  687. * Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
  688. - rebuild in new environment (release 3)
  689. * Mon Jun 19 2000 Nalin Dahyabhai <nalin@redhat.com>
  690. - don't muck with syslogd in post
  691. - remove patch for db-3.0 wackiness, no longer needed
  692. * Thu Jun 8 2000 Nalin Dahyabhai <nalin@redhat.com>
  693. - FHS cleanup
  694. - don't strip anything by default
  695. * Fri Feb 11 2000 Tim Powers <timp@redhat.com>
  696. - fixed man pages not being gzipped
  697. * Tue Nov 16 1999 Tim Powers <timp@redhat.com>
  698. - incorporated changes from Mads Kiilerich
  699. - release number is 1, not mk1
  700. * Wed Nov 10 1999 Mads Kiilerich <mads@kiilerich.com>
  701. - updated to sasl 1.5.11
  702. - configure --disable-krb4 --without-rc4 --disable-cram
  703. because of missing libraries and pine having cram as default...
  704. - handle changing libsasl.so versions
  705. * Mon Aug 30 1999 Tim Powers <timp@redhat.com>
  706. - changed group
  707. * Fri Aug 13 1999 Tim Powers <timp@redhat.com>
  708. - first build for Powertools