Contents of /branches/branch-xorg18/core/openssl/openssl-0.9.8k-r5.smage2
Parent Directory | Revision Log
Revision 5192 -
(show annotations)
(download)
Tue Apr 6 21:54:10 2010 UTC (14 years, 5 months ago) by niro
File size: 2598 byte(s)
Tue Apr 6 21:54:10 2010 UTC (14 years, 5 months ago) by niro
File size: 2598 byte(s)
created branch 'branch-xorg18'
1 | # $Id$ |
2 | |
3 | PNAME="openssl" |
4 | PVER="0.9.8k" |
5 | PBUILD="r5" |
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}-${PVER}-binutils-32bit-asm.patch |
34 | ) |
35 | |
36 | UP2DATE="updatecmd http://www.openssl.org/source | grep ${PNAME}-[0-9] | sed '/beta/d' | firsttarball gz" |
37 | |
38 | # pkgs to rebuild: openssh, openvpn, proftpd, dovecot |
39 | |
40 | src_prepare() |
41 | { |
42 | munpack ${SRCFILE} || die |
43 | |
44 | # allow variable libdir |
45 | mpatch ${PNAME}-0.9.8k-libdir.patch || die |
46 | |
47 | # fix CFLAGS and allow x86_64 multlib builds |
48 | mpatch ${PNAME}-0.9.8e-magellan-2.patch || die |
49 | |
50 | # fixes conflicts with perl, shadow and some broken pod files |
51 | mpatch ${PNAME}-0.9.8e-fix-manpages.patch || die |
52 | |
53 | # fixes 32bit issues in md4-x86_64 asm code with newer binutils |
54 | mpatch ${PNAME}-${PVER}-binutils-32bit-asm.patch || die |
55 | } |
56 | |
57 | src_compile() |
58 | { |
59 | for abi in ${MULTILIB_ABIS} |
60 | do |
61 | cd ${SRCDIR}-${abi} |
62 | |
63 | local myopts="linux-${ARCH}-${abi}" |
64 | [[ ${ARCH} = i*86 ]] && myopts="linux-elf" |
65 | |
66 | ./Configure \ |
67 | --openssldir=/etc/ssl \ |
68 | --prefix=/usr \ |
69 | shared ${myopts} || die |
70 | |
71 | # do not install libfips |
72 | sed -i 's%SHLIBDIRS= fips crypto ssl%SHLIBDIRS= crypto ssl%g' Makefile || die |
73 | |
74 | make depend || die |
75 | done |
76 | |
77 | mmake -j1 MANDIR=/usr/share/man 'LIBDIR=$(mlibdir)' || die |
78 | } |
79 | |
80 | src_install() |
81 | { |
82 | cd ${SRCDIR} |
83 | |
84 | # needed directories |
85 | minstalldir /etc/ssl || die |
86 | |
87 | mmake -j1 INSTALL_PREFIX=${BINDIR} MANDIR=/usr/share/man 'LIBDIR=$(mlibdir)' install || die |
88 | |
89 | # fix permissions |
90 | mchmod 0755 /usr/$(mlibdir)/pkgconfig || die |
91 | |
92 | # install certs, make install left them out |
93 | cp -r certs ${BINDIR}/etc/ssl || die |
94 | rm -r ${BINDIR}/etc/ssl/certs/{demo,expired} || die |
95 | |
96 | # keep these directories |
97 | mkeepdir /etc/ssl/certs || die |
98 | mkeepdir /etc/ssl/private || die |
99 | mchmod 0700 /etc/ssl/private || die |
100 | |
101 | # install our simple certificate creation script |
102 | minstalldir /usr/sbin || die |
103 | minstallexec -s openssl-make-certs.sh-${MKCERTS_CVS_REV} /usr/sbin/openssl-make-certs || die |
104 | |
105 | # install docs |
106 | minstalldocs CHANGES* FAQ LICENSE NEWS README doc/*.txt || die |
107 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |