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