Annotation of /branches/magellan-next/core/openssl/openssl-1.0.0d-r1.smage2
Parent Directory | Revision Log
Revision 7500 -
(hide annotations)
(download)
Tue Mar 15 22:38:45 2011 UTC (13 years, 2 months ago) by niro
File size: 2560 byte(s)
Tue Mar 15 22:38:45 2011 UTC (13 years, 2 months ago) by niro
File size: 2560 byte(s)
auto added: ver bump to 1.0.0d-r1
1 | niro | 7500 | # $Id: openssl-0.9.8k-r5.smage2 5088 2010-03-04 15:51:42Z niro $ |
2 | |||
3 | PNAME="openssl" | ||
4 | PVER="1.0.0d" | ||
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}-1.0.0a-magellan.patch | ||
31 | mirror://${PNAME}/${PNAME}-1.0.0a-fix-manpages.patch | ||
32 | mirror://${PNAME}/${PNAME}-0.9.8k-binutils-32bit-asm.patch | ||
33 | ) | ||
34 | |||
35 | UP2DATE="updatecmd http://www.openssl.org/source | grep ${PNAME}-[0-9] | sed '/beta/d' | firsttarball gz" | ||
36 | |||
37 | # pkgs to rebuild: openssh, openvpn, proftpd, dovecot | ||
38 | |||
39 | src_prepare() | ||
40 | { | ||
41 | munpack ${SRCFILE} || die | ||
42 | |||
43 | # fix CFLAGS and allow x86_64 multlib builds | ||
44 | mpatch ${PNAME}-1.0.0a-magellan.patch || die | ||
45 | |||
46 | # fixes conflicts with perl, shadow and some broken pod files | ||
47 | mpatch ${PNAME}-1.0.0a-fix-manpages.patch || die | ||
48 | |||
49 | # fixes 32bit issues in md4-x86_64 asm code with newer binutils | ||
50 | mpatch ${PNAME}-0.9.8k-binutils-32bit-asm.patch || die | ||
51 | } | ||
52 | |||
53 | src_compile() | ||
54 | { | ||
55 | local abi | ||
56 | local libdir | ||
57 | local myopts | ||
58 | |||
59 | for abi in ${MULTILIB_ABIS} | ||
60 | do | ||
61 | cd ${SRCDIR}-${abi} | ||
62 | |||
63 | case ${abi} in | ||
64 | m32) libdir="lib" ;; | ||
65 | m64) libdir="lib64" ;; | ||
66 | esac | ||
67 | |||
68 | myopts="linux-${ARCH}-${abi}" | ||
69 | [[ ${ARCH} = i*86 ]] && myopts="linux-elf" | ||
70 | |||
71 | echo "Compiler: ${myopts}" | ||
72 | |||
73 | ./Configure \ | ||
74 | --openssldir=/etc/ssl \ | ||
75 | --prefix=/usr \ | ||
76 | --libdir=${libdir} \ | ||
77 | shared threads zlib ${myopts} || die | ||
78 | |||
79 | make depend || die | ||
80 | done | ||
81 | |||
82 | mmake -j1 MANDIR=/usr/share/man || die | ||
83 | } | ||
84 | |||
85 | src_install() | ||
86 | { | ||
87 | cd ${SRCDIR} | ||
88 | |||
89 | # needed directories | ||
90 | minstalldir /etc/ssl || die | ||
91 | |||
92 | mmake -j1 INSTALL_PREFIX=${BINDIR} MANDIR=/usr/share/man install || die | ||
93 | |||
94 | # fix permissions | ||
95 | mchmod 0755 /usr/$(mlibdir)/pkgconfig || die | ||
96 | |||
97 | # install certs, make install left them out | ||
98 | cp -r certs ${BINDIR}/etc/ssl || die | ||
99 | rm -r ${BINDIR}/etc/ssl/certs/{demo,expired} || die | ||
100 | |||
101 | # keep these directories | ||
102 | mkeepdir /etc/ssl/certs || die | ||
103 | mkeepdir /etc/ssl/private || die | ||
104 | mchmod 0700 /etc/ssl/private || die | ||
105 | |||
106 | # install our simple certificate creation script | ||
107 | minstalldir /usr/sbin || die | ||
108 | minstallexec -s openssl-make-certs.sh-${MKCERTS_CVS_REV} /usr/sbin/openssl-make-certs || die | ||
109 | |||
110 | # install docs | ||
111 | minstalldocs CHANGES* FAQ LICENSE NEWS README doc/*.txt || die | ||
112 | } |