]>
Commit | Line | Data |
---|---|---|
93c1e71e | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
93c1e71e MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = openssl |
7 | version = 1.0.0d | |
8 | release = 3 | |
93c1e71e | 9 | |
802ea3af MT |
10 | maintainer = Michael Tremer <michael.tremer@ipfire.org> |
11 | groups = System/Libraries | |
12 | url = http://www.openssl.org/ | |
13 | license = OpenSSL | |
14 | summary = A general purpose cryptography library with TLS implementation. | |
93c1e71e | 15 | |
802ea3af MT |
16 | description |
17 | The OpenSSL toolkit provides support for secure communications between | |
18 | machines. OpenSSL includes a certificate management tool and shared | |
93c1e71e | 19 | libraries which provide various cryptographic algorithms and protocols. |
802ea3af | 20 | end |
93c1e71e | 21 | |
802ea3af | 22 | source_dl = |
93c1e71e | 23 | |
802ea3af MT |
24 | build |
25 | requires | |
26 | bc | |
27 | gnutls-devel | |
28 | perl | |
29 | zlib-devel | |
30 | end | |
036fcb12 | 31 | |
802ea3af MT |
32 | prepare_cmds |
33 | find crypto/ -name Makefile -exec \ | |
34 | sed 's/^ASFLAGS=/&-Wa,--noexecstack /' -i {} \; | |
93c1e71e | 35 | |
802ea3af MT |
36 | # # Modify the various perl scripts to reference perl in the right location. |
37 | perl util/perlpath.pl /usr/bin | |
68d15d21 | 38 | |
802ea3af MT |
39 | # Generate a table with the compile settings for my perusal. |
40 | touch Makefile | |
41 | make TABLE PERL=/usr/bin/perl | |
42 | end | |
68d15d21 | 43 | |
802ea3af MT |
44 | if "%{DISTRO_ARCH}" == "i686" |
45 | SSL_ARCH = no-asm 386 # 386 implies no-sse2 | |
46 | end | |
93c1e71e | 47 | |
802ea3af | 48 | build |
93c1e71e MT |
49 | ./Configure \ |
50 | --prefix=/usr \ | |
51 | --openssldir=/etc/pki/tls \ | |
52 | --enginesdir=/usr/lib/openssl/engines \ | |
802ea3af | 53 | linux-elf \ |
93c1e71e MT |
54 | shared \ |
55 | zlib-dynamic \ | |
56 | enable-camellia \ | |
9ceab1e7 | 57 | enable-md2 \ |
93c1e71e MT |
58 | enable-seed \ |
59 | enable-tlsext \ | |
60 | enable-rfc3779 \ | |
61 | no-idea \ | |
62 | no-mdc2 \ | |
63 | no-rc5 \ | |
802ea3af MT |
64 | -DSSL_FORBID_ENULL \ |
65 | %{SSL_ARCH} | |
66 | ||
67 | # Build. | |
68 | make depend all build-shared RPM_OPT_FLAGS="%{CFLAGS}" #%{PARALLELISMFLAGS} | |
93c1e71e | 69 | |
802ea3af MT |
70 | # Generate hashes for the included certs. |
71 | make rehash build-shared | |
72 | end | |
93c1e71e | 73 | |
802ea3af MT |
74 | test |
75 | make test | |
76 | end | |
93c1e71e | 77 | |
802ea3af MT |
78 | install |
79 | make install build-shared INSTALL_PREFIX=%{BUILDROOT} | |
80032003 | 80 | |
802ea3af MT |
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 | |
93c1e71e | 85 | |
802ea3af MT |
86 | # Install manpages do right place |
87 | mkdir -pv %{BUILDROOT}/usr/share | |
88 | mv -v %{BUILDROOT}/etc/pki/tls/man %{BUILDROOT}/usr/share/ | |
55495f4d | 89 | |
802ea3af MT |
90 | mkdir -pv %{BUILDROOT}/usr/lib/openssl |
91 | mv -v %{BUILDROOT}/usr/lib/engines %{BUILDROOT}/usr/lib/openssl | |
68d15d21 | 92 | |
802ea3af MT |
93 | mkdir -pv %{BUILDROOT}/etc/pki/CA/private |
94 | chmod -v 700 -R %{BUILDROOT}/etc/pki/CA | |
93c1e71e | 95 | |
802ea3af MT |
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 | |
99 | end | |
100 | end | |
93c1e71e | 101 | |
802ea3af MT |
102 | packages |
103 | package %{name} | |
93c1e71e | 104 | |
802ea3af MT |
105 | package %{name}-devel |
106 | template DEVEL | |
107 | end | |
108 | end |