Selaa lähdekoodia

cyrus-sasl-2.1.28-1

Tomohiro "Tomo-p" KATO 2 vuotta sitten
vanhempi
commit
2f0d90cf3a
1 muutettua tiedostoa jossa 34 lisäystä ja 29 poistoa
  1. 34 29
      c/cyrus-sasl/cyrus-sasl-vl.spec

+ 34 - 29
c/cyrus-sasl/cyrus-sasl-vl.spec

@@ -2,6 +2,13 @@
 
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
 
+%global username    saslauth
+%if %{with systemd}
+%global homedir     /run/saslauthd
+%else
+%global homedir     /var/run/saslauthd
+%endif
+
 %define _plugindir2 %{_libdir}/sasl2
 
 Summary: The Cyrus SASL library.
@@ -20,26 +27,29 @@ Source4: saslauthd.init
 Source5: README.RPM
 Source9: saslauthd.sysconfig
 Source10: saslauthd.service
-#
+## From upstream git, required for reconfigure after applying patches to configure.ac
+# https://raw.githubusercontent.com/cyrusimap/cyrus-sasl/master/autogen.sh
+Source11: autogen.sh
+
 Patch11: cyrus-sasl-2.1.25-no_rpath.patch
 Patch15: cyrus-sasl-2.1.20-saslauthd.conf-path.patch
+Patch23: cyrus-sasl-2.1.23-man.patch
 Patch24: cyrus-sasl-2.1.21-sizes.patch
 # The 64 bit *INT8 type is not used anywhere and other types match
 Patch49: cyrus-sasl-2.1.26-md5global.patch
-Patch60: cyrus-sasl-pr559-RC4-openssl.patch
-Patch100: cyrus-sasl-cve-2019-19906.patch
+
 Patch101: cyrus-sasl-2.1.27-Add-basic-test-infrastructure.patch
 Patch102: cyrus-sasl-2.1.27-Add-Channel-Binding-support-for-GSSAPI-GSS-SPNEGO.patch
-Patch103: cyrus-sasl-2.1.27-Add-support-for-setting-max-ssf-0-to-GSS-SPNEGO.patch
-Patch104: cyrus-sasl-2.1.27-Emit-debug-log-only-in-case-of-errors.patch
-Patch105: cyrus-sasl-2.1.27-fix-for-autoconf270.patch
 #https://github.com/simo5/cyrus-sasl/commit/ebd2387f06c84c7f9aac3167ec041bb01e5c6e48
 Patch106: cyrus-sasl-2.1.27-nostrncpy.patch
 # Upstream PR: https://github.com/cyrusimap/cyrus-sasl/pull/635
-Patch107: cyrus-sasl-2.1.27-Add-basic-test-plain-auth.patch
+Patch107: cyrus-sasl-2.1.27-more-tests.patch
+Patch108: cyrus-sasl-2.1.27-Add-support-for-setting-max-ssf-0-to-GSS-SPNEGO.patch
 #Migration tool should be removed from Fedora 36
-Patch108: cyrus-sasl-2.1.27-Migration-from-BerkeleyDB.patch
+Patch109: cyrus-sasl-2.1.27-Migration-from-BerkeleyDB.patch
 Patch500: cyrus-sasl-2.1.27-coverity.patch
+Patch501: cyrus-sasl-2.1.27-cumulative-digestmd5.patch
+Patch502: cyrus-sasl-2.1.27-cumulative-ossl3.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: autoconf, automake, libtool
@@ -293,28 +303,26 @@ chmod -x include/*.h
 %else
 sed -i -e 's|/usr/local/etc|/etc|g' saslauthd/saslauthd.mdoc
 %endif
+%patch23 -p1 -b .man
 %patch24 -p1 -b .sizes
 %patch49 -p1 -b .md5global.h
-%patch60 -p1 -b .openssl_rc4
-%patch100 -p1 -b .cve_2019_19906
 %patch101 -p1 -b .tests
 %patch102 -p1 -b .gssapi_cbs
-%patch103 -p1 -b .maxssf0
-%patch104 -p1 -b .nolog
-%patch105 -p1 -b .autoconf270
 %patch106 -p1 -b .nostrncpy
-%patch107 -p1 -b .plaintests
-%patch108 -p1 -b .frombdb
+%patch107 -p1 -b .moretests
+%patch108 -p1 -b .maxssf0
+%patch109 -p1 -b .frombdb
 %patch500 -p1 -b .coverity
+%patch501 -p1 -b .digestmd5
+%patch502 -p1 -b .ossl3
 
 
 %build
-# FIXME - we remove these files directly so that we can avoid using the -f
-# flag, which has a nasty habit of overwriting files like COPYING.
-rm -f config/config.guess config/config.sub 
-rm -f config/ltconfig config/ltmain.sh config/libtool.m4
-rm -fr autom4te.cache
-autoreconf -vif
+# reconfigure
+cp %{SOURCE11} ./
+rm configure aclocal.m4 config/ltmain.sh Makefile.in
+export NOCONFIGURE=yes
+sh autogen.sh
 
 # Find Kerberos.
 krb5_prefix=`krb5-config --prefix`
@@ -366,11 +374,7 @@ echo "$LDFLAGS"
 	--with-rc4 \
 	--with-dblib=berkeley \
         --with-bdb=db \
-%if %{with systemd}
-	--with-saslauthd=/run/saslauthd --without-pwcheck \
-%else
-	--with-saslauthd=/var/run/saslauthd --without-pwcheck \
-%endif
+	--with-saslauthd=%{homedir} --without-pwcheck \
 	--with-ldap \
 	--with-devrandom=/dev/urandom \
 	--enable-anon \
@@ -439,8 +443,8 @@ test "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
 
 %if %{with systemd}
 %pre
-getent group %{username} >/dev/null || groupadd -g 76 -r saslauth
-getent passwd %{username} >/dev/null || useradd -r -g saslauth -d /run/saslauthd -s /sbin/nologin -c "Saslauthd user" saslauth
+getent group %{username} >/dev/null || groupadd -g 76 -r %{username}
+getent passwd %{username} >/dev/null || useradd -r -g %{username} -d %{homedir} -s /sbin/nologin -c "Saslauthd user" %{username}
 %endif
 
 %post
@@ -595,8 +599,9 @@ exit 0
 
 
 %changelog
-* Wed Feb 23 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.28-1
+* Tue Mar 01 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.28-1
 - new upstream release.
+- re-imported patches from rawhide.
 
 * Tue Oct 05 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.27-3
 - rebuilt with openssl-3.0.0.