cyrus-sasl-vl.spec 27 KB

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