]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blobdiff - compat-openssl/compat-openssl.nm
compat-openssl: Update to 1.1.1s
[people/pmueller/ipfire-3.x.git] / compat-openssl / compat-openssl.nm
index c45089dfcb6c3734262d57eed8d88793aa47f06b..eeb266c5742cf93ab22ccfa56bd1d4c8f6206830 100644 (file)
@@ -4,13 +4,13 @@
 ###############################################################################
 
 name       = compat-openssl
-version    = 1.0.2n
+version    = 1.1.1s
 release    = 1
 thisapp    = openssl-%{version}
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = System/Libraries
-url        = http://www.openssl.org/
+url        = https://www.openssl.org/
 license    = OpenSSL
 summary    = A general purpose cryptography library with TLS implementation.
 
@@ -20,13 +20,14 @@ description
        libraries which provide various cryptographic algorithms and protocols.
 end
 
-source_dl  = http://openssl.org/source/
+source_dl  = https://openssl.org/source/
 
 build
        requires
                bc
                gnutls-devel
                perl
+               perl(Test::Harness)
                util-linux
                zlib-devel
        end
@@ -36,43 +37,24 @@ build
 
        prepare_cmds
                sed -e 's/SHLIB_VERSION_NUMBER "1.0.0"/SHLIB_VERSION_NUMBER "%{version}"/' \
-                       -i crypto/opensslv.h
+                       -i include/openssl/opensslv.h
 
                find crypto/ -name Makefile -exec \
                        sed 's/^ASFLAGS=/&-Wa,--noexecstack /' -i {} \;
-
-               # Generate a table with the compile settings for my perusal.
-               touch Makefile
-               make TABLE PERL=/usr/bin/perl
        end
 
        # Set default ssl_arch.
        ssl_arch = linux-%{DISTRO_ARCH}
 
-       if "%{DISTRO_ARCH}" == "i686"
-               # 386 implies no-sse2
-               ssl_arch = linux-elf no-asm 386
-       end
-
-       if "%{DISTRO_ARCH}" == "armv5tel"
-               ssl_arch = linux-armv4
-       end
-
-       if "%{DISTRO_ARCH}" == "armv7hl"
-               ssl_arch = linux-armv4
-       end
-
        build
                ./Configure \
                        --prefix=/usr \
                        --openssldir=/etc/pki/tls \
-                       --enginesdir=%{libdir}/openssl/engines \
                        shared \
                        zlib-dynamic \
                        enable-camellia \
                        enable-md2 \
                        enable-seed \
-                       enable-tlsext \
                        enable-rfc3779 \
                        no-idea \
                        no-mdc2 \
@@ -85,17 +67,12 @@ build
                # Build.
                make depend
                make all
-
-               # Generate hashes for the included certs.
-               make rehash
        end
 
-       test
-               # Revert ca-dir patch. Otherwise the tests will fail.
-               patch -Np1 -R < %{DIR_PATCHES}/openssl-1.0.0-beta4-ca-dir.patch
-
-               make test
-       end
+       #test
+       #
+       #       #make test
+       #end
 
        install
                make install INSTALL_PREFIX=%{BUILDROOT}