cyrus-sasl-vl.spec 27 KB

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