]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - openssl/openssl.nm
Add a -debuginfo for every package that is not noarch.
[people/amarx/ipfire-3.x.git] / openssl / openssl.nm
CommitLineData
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 6name = openssl
5416a00f 7version = 1.0.0e
2fe46911 8release = 3
93c1e71e 9
802ea3af
MT
10maintainer = Michael Tremer <michael.tremer@ipfire.org>
11groups = System/Libraries
12url = http://www.openssl.org/
13license = OpenSSL
14summary = A general purpose cryptography library with TLS implementation.
93c1e71e 15
802ea3af
MT
16description
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 20end
93c1e71e 21
5416a00f 22source_dl = http://openssl.org/source/
93c1e71e 23
802ea3af
MT
24build
25 requires
26 bc
27 gnutls-devel
28 perl
76e1849a 29 util-linux
802ea3af
MT
30 zlib-devel
31 end
036fcb12 32
802ea3af
MT
33 prepare_cmds
34 find crypto/ -name Makefile -exec \
35 sed 's/^ASFLAGS=/&-Wa,--noexecstack /' -i {} \;
93c1e71e 36
802ea3af
MT
37 # # Modify the various perl scripts to reference perl in the right location.
38 perl util/perlpath.pl /usr/bin
68d15d21 39
802ea3af
MT
40 # Generate a table with the compile settings for my perusal.
41 touch Makefile
42 make TABLE PERL=/usr/bin/perl
43 end
68d15d21 44
802ea3af 45 if "%{DISTRO_ARCH}" == "i686"
2fe46911
MT
46 # 386 implies no-sse2
47 ssl_arch = linux-elf no-asm 386
48 end
49
50 if "%{DISTRO_ARCH}" == "armv5tel"
51 ssl_arch = linux-generic32
802ea3af 52 end
93c1e71e 53
802ea3af 54 build
93c1e71e
MT
55 ./Configure \
56 --prefix=/usr \
57 --openssldir=/etc/pki/tls \
58 --enginesdir=/usr/lib/openssl/engines \
93c1e71e
MT
59 shared \
60 zlib-dynamic \
61 enable-camellia \
9ceab1e7 62 enable-md2 \
93c1e71e
MT
63 enable-seed \
64 enable-tlsext \
65 enable-rfc3779 \
66 no-idea \
67 no-mdc2 \
68 no-rc5 \
2fe46911 69 no-ec no-ecdh no-ecdsa \
802ea3af 70 -DSSL_FORBID_ENULL \
2fe46911 71 %{ssl_arch}
802ea3af
MT
72
73 # Build.
74 make depend all build-shared RPM_OPT_FLAGS="%{CFLAGS}" #%{PARALLELISMFLAGS}
93c1e71e 75
802ea3af
MT
76 # Generate hashes for the included certs.
77 make rehash build-shared
78 end
93c1e71e 79
802ea3af
MT
80 test
81 make test
82 end
93c1e71e 83
802ea3af
MT
84 install
85 make install build-shared INSTALL_PREFIX=%{BUILDROOT}
80032003 86
802ea3af
MT
87 mkdir -pv %{BUILDROOT}/lib
88 mv -vf %{BUILDROOT}/usr/lib/lib{crypto,ssl}.so.* %{BUILDROOT}/lib
89 ln -svf ../../lib/libcrypto.so.10 %{BUILDROOT}/usr/lib/libcrypto.so
90 ln -svf ../../lib/libssl.so.10 %{BUILDROOT}/usr/lib/libssl.so
93c1e71e 91
802ea3af
MT
92 # Install manpages do right place
93 mkdir -pv %{BUILDROOT}/usr/share
94 mv -v %{BUILDROOT}/etc/pki/tls/man %{BUILDROOT}/usr/share/
55495f4d 95
802ea3af
MT
96 mkdir -pv %{BUILDROOT}/usr/lib/openssl
97 mv -v %{BUILDROOT}/usr/lib/engines %{BUILDROOT}/usr/lib/openssl
68d15d21 98
802ea3af
MT
99 mkdir -pv %{BUILDROOT}/etc/pki/CA/private
100 chmod -v 700 -R %{BUILDROOT}/etc/pki/CA
93c1e71e 101
802ea3af
MT
102 mkdir -pv %{BUILDROOT}/etc/pki/tls
103 install -m 0644 %{DIR_SOURCE}/openssl.cnf %{BUILDROOT}/etc/pki/tls
104 cp -v -r certs %{BUILDROOT}/etc/pki/tls
76e1849a
MT
105
106 # Rename man pages so that they don't conflict with other system man pages.
107 pushd ${BUILDROOT}/usr/share/man
108 for manpage in man*/*; do
109 if [ -L ${manpage} ]; then
110 TARGET=`ls -l ${manpage} | awk '{ print $NF }'`
111 ln -snf ${TARGET}ssl ${manpage}ssl
112 rm -f ${manpage}
113 else
114 mv ${manpage} ${manpage}ssl
115 fi
116 done
117
118 mv -v %{BUILDROOT}/usr/share/man/man1/{,ssl}passwd.1
119 mv -v %{BUILDROOT}/usr/share/man/man1/{,ssl}rand.1
120 popd
802ea3af
MT
121 end
122end
93c1e71e 123
802ea3af
MT
124packages
125 package %{name}
93c1e71e 126
802ea3af
MT
127 package %{name}-devel
128 template DEVEL
129 end
1f9bc2f0
MT
130
131 package %{name}-debuginfo
132 template DEBUGINFO
133 end
802ea3af 134end