summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstevejenkins <steve@stevejenkins.com>2016-12-20 19:21:55 -0800
committerstevejenkins <steve@stevejenkins.com>2016-12-20 19:21:55 -0800
commit0599b112037e3fc8dd873e5cf7092906b745911b (patch)
tree64217c241d363afb5d7cf3a0e429dfdd2cdf2d2f
parentf9d6a6a87cc0e7f047d0bb4d4dea62f16fe665fb (diff)
downloadopendkim_EL6-0599b112037e3fc8dd873e5cf7092906b745911b.tar.gz
Update to 2.11.0-0.1
-rw-r--r--.gitignore1
-rw-r--r--opendkim.spec28
-rw-r--r--opendkim.ticket35+37.patch173
-rw-r--r--sources3
4 files changed, 188 insertions, 17 deletions
diff --git a/.gitignore b/.gitignore
index db82e49..a8b620b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,3 +24,4 @@
/opendkim-2.10.2.tar.gz
/opendkim-2.10.3.tar.gz
/opendkim.ticket226.patch
+/opendkim-2.11.0.Alpha0.tar.gz
diff --git a/opendkim.spec b/opendkim.spec
index b77dc4e..e8a40c1 100644
--- a/opendkim.spec
+++ b/opendkim.spec
@@ -4,15 +4,17 @@
Summary: A DomainKeys Identified Mail (DKIM) milter to sign and/or verify mail
Name: opendkim
-Version: 2.10.3
-Release: 9%{?dist}
+Version: 2.11.0
+Release: 0.1%{?dist}
Group: System Environment/Daemons
License: BSD and Sendmail
URL: http://%{name}.org/
-Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.Alpha0.tar.gz
-# https://sourceforge.net/p/opendkim/bugs/226/
-Patch0: %{name}.ticket226.patch
+# https://sourceforge.net/p/opendkim/patches/35/
+# https://sourceforge.net/p/opendkim/patches/37/
+# Patches rediffed and combined (both modify configure)
+Patch0: %{name}.ticket35+37.patch
# Required for all versions
Requires: lib%{name}%{?_isa} = %{version}-%{release}
@@ -72,16 +74,7 @@ This package contains the static libraries, headers, and other support files
required for developing applications against libopendkim.
%prep
-%setup -q
-# Apply Global patches
-%patch0 -p1
-%if %systemd
-# Apply systemd patches
-#%patch0 -p1
-%else
-# Apply SysV patches
-#%patch0 -p1
-%endif
+%autosetup -p1
%build
# Always use system libtool instead of pacakge-provided one to
@@ -535,6 +528,11 @@ rm -rf %{buildroot}
%{_libdir}/pkgconfig/*.pc
%changelog
+* Tue Dec 20 2016 Steve Jenkins <steve@stevejenkins.com> - 2.11.0-0.1
+- Updated to 2.11.0.Alpha0 upstream source
+- Rediffed, combined, and applied patch for SF #35 + #37
+- Modernized spec slightly (thanks to EPEL 5 getting a bit more modern)
+
* Mon Aug 01 2016 Steve Jenkins <steve@stevejenkins.com> - 2.10.3-9
- Changed sendmail-milter-devel BuildRequires to > F25
diff --git a/opendkim.ticket35+37.patch b/opendkim.ticket35+37.patch
new file mode 100644
index 0000000..68115a1
--- /dev/null
+++ b/opendkim.ticket35+37.patch
@@ -0,0 +1,173 @@
+diff -Naur -x opendkim-2.11.0.orig/configure opendkim-2.11.0/configure
+--- opendkim-2.11.0.orig/configure 2015-10-07 16:17:48.000000000 -0700
++++ opendkim-2.11.0/configure 2016-12-20 18:47:51.662158143 -0800
+@@ -14700,13 +14700,13 @@
+
+ for d in $strldirs
+ do
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strl.h in $d/strl" >&5
+-$as_echo_n "checking for strl.h in $d/strl... " >&6; }
+- if test -f $d/strl/strl.h
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strl.h in $d" >&5
++$as_echo_n "checking for strl.h in $d... " >&6; }
++ if test -f $d/strl.h
+ then
+ unset ac_cv_header_strl_h
+ saved_CPPFLAGS="$CPPFLAGS"
+- CPPFLAGS="$CPPFLAGS -I$d/strl"
++ CPPFLAGS="$CPPFLAGS -I$d"
+ for ac_header in strl.h
+ do :
+ ac_fn_c_check_header_mongrel "$LINENO" "strl.h" "ac_cv_header_strl_h" "$ac_includes_default"
+@@ -14724,7 +14724,7 @@
+
+ if test x"$strl_h_found" = x"yes"
+ then
+- CPPFLAGS="$CPPFLAGS -I$d/strl"
++ CPPFLAGS="$CPPFLAGS -I$d"
+ break
+ fi
+ done
+@@ -16795,77 +16795,39 @@
+ fi
+
+
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
+-$as_echo_n "checking for library containing SSL_library_init... " >&6; }
+-if ${ac_cv_search_SSL_library_init+:} false; then :
+- $as_echo_n "(cached) " >&6
+-else
+- ac_func_search_save_LIBS=$LIBS
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+
+-/* Override any GCC internal prototype to avoid an error.
+- Use char because int might match the return type of a GCC
+- builtin and then its argument prototype would still apply. */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-char SSL_library_init ();
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include <openssl/ssl.h>
+ int
+ main ()
+ {
+-return SSL_library_init ();
++SSL_library_init();
+ ;
+ return 0;
+ }
+ _ACEOF
+-for ac_lib in '' ssl; do
+- if test -z "$ac_lib"; then
+- ac_res="none required"
+- else
+- ac_res=-l$ac_lib
+- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+- fi
+- if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_search_SSL_library_init=$ac_res
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext
+- if ${ac_cv_search_SSL_library_init+:} false; then :
+- break
+-fi
+-done
+-if ${ac_cv_search_SSL_library_init+:} false; then :
+-
++if ac_fn_c_try_link "$LINENO"; then :
++ od_have_ossl="yes";
+ else
+- ac_cv_search_SSL_library_init=no
++ od_have_ossl="no";
+ fi
+-rm conftest.$ac_ext
+-LIBS=$ac_func_search_save_LIBS
+-fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
+-$as_echo "$ac_cv_search_SSL_library_init" >&6; }
+-ac_res=$ac_cv_search_SSL_library_init
+-if test "$ac_res" != no; then :
+- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+-
+-else
+-
+- if test x"$enable_shared" = x"yes"
+- then
+- as_fn_error $? "Cannot build shared opendkim
+- against static openssl libraries.
+- Configure with --disable-shared
+- to get this working or obtain a
+- shared libssl library for
+- opendkim to use." "$LINENO" 5
+- fi
++rm -f core conftest.err conftest.$ac_objext \
++ conftest$ac_exeext conftest.$ac_ext
++ if test x"$od_have_ossl" = x"no"
++ then
++ if test x"$enable_shared" = x"yes"
++ then
++ as_fn_error $? "Cannot build shared opendkim
++ against static openssl libraries.
++ Configure with --disable-shared
++ to get this working or obtain a
++ shared libssl library for
++ opendkim to use." "$LINENO" 5
++ fi
+
+- # avoid caching issue - last result of SSL_library_init
+- # shouldn't be cached for this next check
+- unset ac_cv_search_SSL_library_init
+- LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS -ldl"
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
++ LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS -ldl"
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
+ $as_echo_n "checking for library containing SSL_library_init... " >&6; }
+ if ${ac_cv_search_SSL_library_init+:} false; then :
+ $as_echo_n "(cached) " >&6
+@@ -16923,10 +16885,7 @@
+ as_fn_error $? "libssl not found" "$LINENO" 5
+ fi
+
+-
+-
+-fi
+-
++ fi
+
+ ac_fn_c_check_decl "$LINENO" "SHA256_DIGEST_LENGTH" "ac_cv_have_decl_SHA256_DIGEST_LENGTH" "
+ #include <sys/types.h>
+diff -Naur -x opendkim-2.11.0.orig/opendkim/opendkim-crypto.c opendkim-2.11.0/opendkim/opendkim-crypto.c
+--- opendkim-2.11.0.orig/opendkim/opendkim-crypto.c 2013-02-25 13:02:41.000000000 -0800
++++ opendkim-2.11.0/opendkim/opendkim-crypto.c 2016-12-20 18:47:03.477027225 -0800
+@@ -222,7 +222,11 @@
+ {
+ assert(pthread_setspecific(id_key, ptr) == 0);
+
++#if OPENSSL_VERSION_NUMBER >= 0x10100000
++ OPENSSL_thread_stop();
++#else
+ ERR_remove_state(0);
++#endif
+
+ free(ptr);
+
+@@ -392,11 +396,15 @@
+ {
+ if (crypto_init_done)
+ {
++#if OPENSSL_VERSION_NUMBER >= 0x10100000
++ OPENSSL_thread_stop();
++#else
+ CRYPTO_cleanup_all_ex_data();
+ CONF_modules_free();
+ EVP_cleanup();
+ ERR_free_strings();
+ ERR_remove_state(0);
++#endif
+
+ if (nmutexes > 0)
+ {
diff --git a/sources b/sources
index 2bce61d..58e6a1b 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-916e691cdd16cfabd1cd6efe745323f9 opendkim-2.10.3.tar.gz
-3339be93c707e1406391afeeaf190327 opendkim.ticket226.patch
+SHA512 (opendkim-2.11.0.Alpha0.tar.gz) = d370fa0ab5f335338f86ce5afb0b8c13cce80c4ac5da18d0f6af6e5227e909adacd0d0e7766c0cb6ecc30803a27cd469a9e22a8b7b37f4dee47d632dbce5f832