Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6010 - (show annotations) (download)
Tue Aug 17 23:38:38 2010 UTC (13 years, 8 months ago) by niro
File size: 2424 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}-${PVER}-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}-${PVER}-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 local abi
56 local libdir
57
58 for abi in ${MULTILIB_ABIS}
59 do
60 cd ${SRCDIR}-${abi}
61
62 case ${abi} in
63 m32) libdir="lib" ;;
64 m64) libdir="lib64" ;;
65 esac
66
67 ./config \
68 --openssldir=/etc/ssl \
69 --prefix=/usr \
70 --libdir=${libdir} \
71 shared threads || die
72
73 make depend || die
74 done
75
76 mmake -j1 MANDIR=/usr/share/man || die
77 }
78
79 src_install()
80 {
81 cd ${SRCDIR}
82
83 # needed directories
84 minstalldir /etc/ssl || die
85
86 mmake -j1 INSTALL_PREFIX=${BINDIR} MANDIR=/usr/share/man install || die
87
88 # fix permissions
89 mchmod 0755 /usr/$(mlibdir)/pkgconfig || die
90
91 # install certs, make install left them out
92 cp -r certs ${BINDIR}/etc/ssl || die
93 rm -r ${BINDIR}/etc/ssl/certs/{demo,expired} || die
94
95 # keep these directories
96 mkeepdir /etc/ssl/certs || die
97 mkeepdir /etc/ssl/private || die
98 mchmod 0700 /etc/ssl/private || die
99
100 # install our simple certificate creation script
101 minstalldir /usr/sbin || die
102 minstallexec -s openssl-make-certs.sh-${MKCERTS_CVS_REV} /usr/sbin/openssl-make-certs || die
103
104 # install docs
105 minstalldocs CHANGES* FAQ LICENSE NEWS README doc/*.txt || die
106 }