1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 maintainer = Michael Tremer <michael.tremer@ipfire.org>
11 groups = System/Libraries
12 url = http://www.openssl.org/
14 summary = A general purpose cryptography library with TLS implementation.
17 The OpenSSL toolkit provides support for secure communications between
18 machines. OpenSSL includes a certificate management tool and shared
19 libraries which provide various cryptographic algorithms and protocols.
22 source_dl = http://openssl.org/source/
33 find crypto/ -name Makefile -exec \
34 sed 's/^ASFLAGS=/&-Wa,--noexecstack /' -i {} \;
36 # # Modify the various perl scripts to reference perl in the right location.
37 perl util/perlpath.pl /usr/bin
39 # Generate a table with the compile settings for my perusal.
41 make TABLE PERL=/usr/bin/perl
44 if "%{DISTRO_ARCH}" == "i686"
45 SSL_ARCH = no-asm 386 # 386 implies no-sse2
51 --openssldir=/etc/pki/tls \
52 --enginesdir=/usr/lib/openssl/engines \
68 make depend all build-shared RPM_OPT_FLAGS="%{CFLAGS}" #%{PARALLELISMFLAGS}
70 # Generate hashes for the included certs.
71 make rehash build-shared
79 make install build-shared INSTALL_PREFIX=%{BUILDROOT}
81 mkdir -pv %{BUILDROOT}/lib
82 mv -vf %{BUILDROOT}/usr/lib/lib{crypto,ssl}.so.* %{BUILDROOT}/lib
83 ln -svf ../../lib/libcrypto.so.10 %{BUILDROOT}/usr/lib/libcrypto.so
84 ln -svf ../../lib/libssl.so.10 %{BUILDROOT}/usr/lib/libssl.so
86 # Install manpages do right place
87 mkdir -pv %{BUILDROOT}/usr/share
88 mv -v %{BUILDROOT}/etc/pki/tls/man %{BUILDROOT}/usr/share/
90 mkdir -pv %{BUILDROOT}/usr/lib/openssl
91 mv -v %{BUILDROOT}/usr/lib/engines %{BUILDROOT}/usr/lib/openssl
93 mkdir -pv %{BUILDROOT}/etc/pki/CA/private
94 chmod -v 700 -R %{BUILDROOT}/etc/pki/CA
96 mkdir -pv %{BUILDROOT}/etc/pki/tls
97 install -m 0644 %{DIR_SOURCE}/openssl.cnf %{BUILDROOT}/etc/pki/tls
98 cp -v -r certs %{BUILDROOT}/etc/pki/tls
105 package %{name}-devel