]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - pkgs/openssl/openssl.nm
Change file layout of the makefiles.
[people/amarx/ipfire-3.x.git] / pkgs / openssl / openssl.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = openssl
7 version = 1.0.0d
8 release = 3
9
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.
15
16 description
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.
20 end
21
22 source_dl =
23
24 build
25 requires
26 bc
27 gnutls-devel
28 perl
29 zlib-devel
30 end
31
32 prepare_cmds
33 find crypto/ -name Makefile -exec \
34 sed 's/^ASFLAGS=/&-Wa,--noexecstack /' -i {} \;
35
36 # # Modify the various perl scripts to reference perl in the right location.
37 perl util/perlpath.pl /usr/bin
38
39 # Generate a table with the compile settings for my perusal.
40 touch Makefile
41 make TABLE PERL=/usr/bin/perl
42 end
43
44 if "%{DISTRO_ARCH}" == "i686"
45 SSL_ARCH = no-asm 386 # 386 implies no-sse2
46 end
47
48 build
49 ./Configure \
50 --prefix=/usr \
51 --openssldir=/etc/pki/tls \
52 --enginesdir=/usr/lib/openssl/engines \
53 linux-elf \
54 shared \
55 zlib-dynamic \
56 enable-camellia \
57 enable-md2 \
58 enable-seed \
59 enable-tlsext \
60 enable-rfc3779 \
61 no-idea \
62 no-mdc2 \
63 no-rc5 \
64 -DSSL_FORBID_ENULL \
65 %{SSL_ARCH}
66
67 # Build.
68 make depend all build-shared RPM_OPT_FLAGS="%{CFLAGS}" #%{PARALLELISMFLAGS}
69
70 # Generate hashes for the included certs.
71 make rehash build-shared
72 end
73
74 test
75 make test
76 end
77
78 install
79 make install build-shared INSTALL_PREFIX=%{BUILDROOT}
80
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
85
86 # Install manpages do right place
87 mkdir -pv %{BUILDROOT}/usr/share
88 mv -v %{BUILDROOT}/etc/pki/tls/man %{BUILDROOT}/usr/share/
89
90 mkdir -pv %{BUILDROOT}/usr/lib/openssl
91 mv -v %{BUILDROOT}/usr/lib/engines %{BUILDROOT}/usr/lib/openssl
92
93 mkdir -pv %{BUILDROOT}/etc/pki/CA/private
94 chmod -v 700 -R %{BUILDROOT}/etc/pki/CA
95
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
101
102 packages
103 package %{name}
104
105 package %{name}-devel
106 template DEVEL
107 end
108 end