Contents of /branches/magellan-next/core/openssl/openssl-1.0.0a-r1.smage2
Parent Directory | Revision Log
Revision 5998 -
(show annotations)
(download)
Tue Aug 17 22:17:57 2010 UTC (13 years, 9 months ago) by niro
File size: 2799 byte(s)
Tue Aug 17 22:17:57 2010 UTC (13 years, 9 months ago) by niro
File size: 2799 byte(s)
auto added: ver bump to 1.0.0a-r1
1 | # $Id: openssl-0.9.8k-r5.smage2 5088 2010-03-04 15:51:42Z niro $ |
2 | |
3 | PNAME="openssl" |
4 | PVER="1.0.0a" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Provides libraries for SSL v2/3 and TLS v1." |
11 | HOMEPAGE="http://www.openssl.org/" |
12 | |
13 | DEPEND=">= virtual/glibc |
14 | >= dev-libs/openssl-compat-0.9.7" |
15 | |
16 | SDEPEND=">= dev-lang/perl-5 |
17 | >= sys-apps/sed-4" |
18 | |
19 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 | |
22 | sminclude multilib mtools |
23 | |
24 | MKCERTS_CVS_REV=1.3 |
25 | |
26 | SRC_URI=( |
27 | http://www.openssl.org/source/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/openssl-make-certs.sh-${MKCERTS_CVS_REV} |
30 | mirror://${PNAME}/${PNAME}-0.9.8k-libdir.patch |
31 | mirror://${PNAME}/${PNAME}-0.9.8e-magellan-2.patch |
32 | mirror://${PNAME}/${PNAME}-0.9.8e-fix-manpages.patch |
33 | mirror://${PNAME}/${PNAME}-0.9.8k-binutils-32bit-asm.patch |
34 | mirror://${PNAME}/${PNAME}-${PVER}-fix-double-free.patch |
35 | ) |
36 | |
37 | UP2DATE="updatecmd http://www.openssl.org/source | grep ${PNAME}-[0-9] | sed '/beta/d' | firsttarball gz" |
38 | |
39 | # pkgs to rebuild: openssh, openvpn, proftpd, dovecot |
40 | |
41 | src_prepare() |
42 | { |
43 | munpack ${SRCFILE} || die |
44 | |
45 | # allow variable libdir |
46 | mpatch ${PNAME}-0.9.8k-libdir.patch || die |
47 | |
48 | # fix CFLAGS and allow x86_64 multlib builds |
49 | mpatch ${PNAME}-0.9.8e-magellan-2.patch || die |
50 | |
51 | # fixes conflicts with perl, shadow and some broken pod files |
52 | mpatch ${PNAME}-0.9.8e-fix-manpages.patch || die |
53 | |
54 | # fixes 32bit issues in md4-x86_64 asm code with newer binutils |
55 | mpatch ${PNAME}-0.9.8k-binutils-32bit-asm.patch || die |
56 | |
57 | # security fix - CVE-2010-2939 |
58 | mpatch ${PNAME}-${PVER}-fix-double-free.patch || die |
59 | } |
60 | |
61 | src_compile() |
62 | { |
63 | for abi in ${MULTILIB_ABIS} |
64 | do |
65 | cd ${SRCDIR}-${abi} |
66 | |
67 | local myopts="linux-${ARCH}-${abi}" |
68 | [[ ${ARCH} = i*86 ]] && myopts="linux-elf" |
69 | |
70 | ./Configure \ |
71 | --openssldir=/etc/ssl \ |
72 | --prefix=/usr \ |
73 | shared ${myopts} || die |
74 | |
75 | # do not install libfips |
76 | sed -i 's%SHLIBDIRS= fips crypto ssl%SHLIBDIRS= crypto ssl%g' Makefile || die |
77 | |
78 | make depend || die |
79 | done |
80 | |
81 | mmake -j1 MANDIR=/usr/share/man 'LIBDIR=$(mlibdir)' || die |
82 | } |
83 | |
84 | src_install() |
85 | { |
86 | cd ${SRCDIR} |
87 | |
88 | # needed directories |
89 | minstalldir /etc/ssl || die |
90 | |
91 | mmake -j1 INSTALL_PREFIX=${BINDIR} MANDIR=/usr/share/man 'LIBDIR=$(mlibdir)' install || die |
92 | |
93 | # fix permissions |
94 | mchmod 0755 /usr/$(mlibdir)/pkgconfig || die |
95 | |
96 | # install certs, make install left them out |
97 | cp -r certs ${BINDIR}/etc/ssl || die |
98 | rm -r ${BINDIR}/etc/ssl/certs/{demo,expired} || die |
99 | |
100 | # keep these directories |
101 | mkeepdir /etc/ssl/certs || die |
102 | mkeepdir /etc/ssl/private || die |
103 | mchmod 0700 /etc/ssl/private || die |
104 | |
105 | # install our simple certificate creation script |
106 | minstalldir /usr/sbin || die |
107 | minstallexec -s openssl-make-certs.sh-${MKCERTS_CVS_REV} /usr/sbin/openssl-make-certs || die |
108 | |
109 | # install docs |
110 | minstalldocs CHANGES* FAQ LICENSE NEWS README doc/*.txt || die |
111 | } |