cyrus-sasl-vl.spec 28 KB

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