cyrus-sasl-vl.spec 27 KB

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