Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6000 - (show annotations) (download)
Tue Aug 17 22:32:57 2010 UTC (13 years, 9 months ago) by niro
File size: 2333 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.8e-fix-manpages.patch
31 mirror://${PNAME}/${PNAME}-0.9.8k-binutils-32bit-asm.patch
32 mirror://${PNAME}/${PNAME}-${PVER}-fix-double-free.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 # fixes conflicts with perl, shadow and some broken pod files
44 mpatch ${PNAME}-0.9.8e-fix-manpages.patch || die
45
46 # fixes 32bit issues in md4-x86_64 asm code with newer binutils
47 mpatch ${PNAME}-0.9.8k-binutils-32bit-asm.patch || die
48
49 # security fix - CVE-2010-2939
50 mpatch ${PNAME}-${PVER}-fix-double-free.patch || die
51 }
52
53 src_compile()
54 {
55 for abi in ${MULTILIB_ABIS}
56 do
57 cd ${SRCDIR}-${abi}
58
59 ./config \
60 --openssldir=/etc/ssl \
61 --prefix=/usr \
62 --libdir='$(libdir)' \
63 shared threads ${myopts} || die
64
65 make depend || die
66 done
67
68 mmake -j1 MANDIR=/usr/share/man || die
69 }
70
71 src_install()
72 {
73 cd ${SRCDIR}
74
75 # needed directories
76 minstalldir /etc/ssl || die
77
78 mmake -j1 INSTALL_PREFIX=${BINDIR} MANDIR=/usr/share/man install || die
79
80 # fix permissions
81 mchmod 0755 /usr/$(mlibdir)/pkgconfig || die
82
83 # install certs, make install left them out
84 cp -r certs ${BINDIR}/etc/ssl || die
85 rm -r ${BINDIR}/etc/ssl/certs/{demo,expired} || die
86
87 # keep these directories
88 mkeepdir /etc/ssl/certs || die
89 mkeepdir /etc/ssl/private || die
90 mchmod 0700 /etc/ssl/private || die
91
92 # install our simple certificate creation script
93 minstalldir /usr/sbin || die
94 minstallexec -s openssl-make-certs.sh-${MKCERTS_CVS_REV} /usr/sbin/openssl-make-certs || die
95
96 # install docs
97 minstalldocs CHANGES* FAQ LICENSE NEWS README doc/*.txt || die
98 }