Magellan Linux

Annotation of /branches/magellan-next/core/openssl/openssl-1.0.0a-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5999 - (hide annotations) (download)
Tue Aug 17 22:28:38 2010 UTC (13 years, 9 months ago) by niro
File size: 2181 byte(s)
auto added: ver bump to 1.0.0a-r1
1 niro 5998 # $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-binutils-32bit-asm.patch
31     mirror://${PNAME}/${PNAME}-${PVER}-fix-double-free.patch
32     )
33    
34     UP2DATE="updatecmd http://www.openssl.org/source | grep ${PNAME}-[0-9] | sed '/beta/d' | firsttarball gz"
35    
36     # pkgs to rebuild: openssh, openvpn, proftpd, dovecot
37    
38     src_prepare()
39     {
40     munpack ${SRCFILE} || die
41    
42     # fixes 32bit issues in md4-x86_64 asm code with newer binutils
43     mpatch ${PNAME}-0.9.8k-binutils-32bit-asm.patch || die
44    
45     # security fix - CVE-2010-2939
46     mpatch ${PNAME}-${PVER}-fix-double-free.patch || die
47     }
48    
49     src_compile()
50     {
51     for abi in ${MULTILIB_ABIS}
52     do
53     cd ${SRCDIR}-${abi}
54    
55     ./Configure \
56     --openssldir=/etc/ssl \
57     --prefix=/usr \
58 niro 5999 shared thread ${myopts} || die
59 niro 5998
60     make depend || die
61     done
62    
63     mmake -j1 MANDIR=/usr/share/man 'LIBDIR=$(mlibdir)' || die
64     }
65    
66     src_install()
67     {
68     cd ${SRCDIR}
69    
70     # needed directories
71     minstalldir /etc/ssl || die
72    
73     mmake -j1 INSTALL_PREFIX=${BINDIR} MANDIR=/usr/share/man 'LIBDIR=$(mlibdir)' install || die
74    
75     # fix permissions
76     mchmod 0755 /usr/$(mlibdir)/pkgconfig || die
77    
78     # install certs, make install left them out
79     cp -r certs ${BINDIR}/etc/ssl || die
80     rm -r ${BINDIR}/etc/ssl/certs/{demo,expired} || die
81    
82     # keep these directories
83     mkeepdir /etc/ssl/certs || die
84     mkeepdir /etc/ssl/private || die
85     mchmod 0700 /etc/ssl/private || die
86    
87     # install our simple certificate creation script
88     minstalldir /usr/sbin || die
89     minstallexec -s openssl-make-certs.sh-${MKCERTS_CVS_REV} /usr/sbin/openssl-make-certs || die
90    
91     # install docs
92     minstalldocs CHANGES* FAQ LICENSE NEWS README doc/*.txt || die
93     }