Contents of /smage/branches/branch_0.9.0/openssl/openssl-0.9.8g-r1.smage2
Parent Directory | Revision Log
Revision 4 -
(show annotations)
(download)
Sun Jan 11 00:50:17 2009 UTC (15 years, 8 months ago) by niro
File size: 1949 byte(s)
Sun Jan 11 00:50:17 2009 UTC (15 years, 8 months ago) by niro
File size: 1949 byte(s)
"copied"
1 | # $Header: /alx-cvs/smage-eglibc/openssl/openssl-0.9.8g-r1.smage2,v 1.2 2008/08/27 22:49:00 niro Exp $ |
2 | |
3 | PNAME="openssl" |
4 | PVER="0.9.8g" |
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 | |
18 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
20 | |
21 | sminclude multilib mtools alx |
22 | |
23 | SRC_URI=( |
24 | http://www.openssl.org/source/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | mirror://${PNAME}/${PNAME}-0.9.8e-libdir.patch |
27 | mirror://${PNAME}/${PNAME}-0.9.8e-magellan-2.patch |
28 | mirror://${PNAME}/${PNAME}-0.9.8e-fix-manpages.patch |
29 | ) |
30 | |
31 | # pkgs to rebuild: openssh, openvpn, proftpd, dovecot |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | |
37 | # allow variable libdir |
38 | mpatch ${PNAME}-0.9.8e-libdir.patch || die |
39 | |
40 | # fix CFLAGS and allow x86_64 multlib builds |
41 | mpatch ${PNAME}-0.9.8e-magellan-2.patch || 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 | |
47 | src_compile() |
48 | { |
49 | for abi in ${MULTILIB_ABIS} |
50 | do |
51 | cd ${SRCDIR}-${abi} |
52 | |
53 | local myopts="linux-${ARCH}-${abi}" |
54 | [[ ${ARCH} = i*86 ]] && myopts="linux-elf" |
55 | |
56 | ./Configure \ |
57 | --openssldir=/etc/ssl \ |
58 | --prefix=/usr \ |
59 | shared ${myopts} || die |
60 | |
61 | # do not install libfips |
62 | sed -i 's%SHLIBDIRS= fips crypto ssl%SHLIBDIRS= crypto ssl%g' Makefile || die |
63 | |
64 | make depend || die |
65 | done |
66 | |
67 | mmake -j1 MANDIR=/usr/share/man 'LIBDIR=$(mlibdir)' || die |
68 | } |
69 | |
70 | src_install() |
71 | { |
72 | cd ${SRCDIR} |
73 | |
74 | # needed directories |
75 | minstalldir /etc/ssl || die |
76 | |
77 | mmake -j1 INSTALL_PREFIX=${BINDIR} MANDIR=/usr/share/man 'LIBDIR=$(mlibdir)' install || die |
78 | |
79 | # fix permissions |
80 | mchmod 0755 /usr/$(mlibdir)/pkgconfig || die |
81 | |
82 | # install certs, make install left them out |
83 | cp -r certs ${BINDIR}/etc/ssl || die |
84 | |
85 | # install docs |
86 | minstalldocs CHANGES* FAQ LICENSE NEWS README doc/*.txt || die |
87 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |