cyrus-sasl-vl.spec 27 KB

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