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