Magellan Linux

Annotation of /trunk/core/openssl/openssl-0.9.8k-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1118 - (hide annotations) (download)
Wed Apr 22 19:34:50 2009 UTC (15 years ago) by niro
File size: 1975 byte(s)
-fixed patches
1 niro 1117 # $Id$
2    
3     PNAME="openssl"
4     PVER="0.9.8k"
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     SRC_URI=(
25     http://www.openssl.org/source/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27 niro 1118 mirror://${PNAME}/${PNAME}-0.9.8k-libdir.patch
28 niro 1117 mirror://${PNAME}/${PNAME}-0.9.8e-magellan-2.patch
29     mirror://${PNAME}/${PNAME}-0.9.8e-fix-manpages.patch
30     )
31    
32     UP2DATE="updatecmd http://www.openssl.org/source | grep ${PNAME}-[0-9] | sed '/beta/d' | firsttarball gz"
33    
34     # pkgs to rebuild: openssh, openvpn, proftpd, dovecot
35    
36     src_prepare()
37     {
38     munpack ${SRCFILE} || die
39    
40     # allow variable libdir
41 niro 1118 mpatch ${PNAME}-0.9.8k-libdir.patch || die
42 niro 1117
43     # fix CFLAGS and allow x86_64 multlib builds
44     mpatch ${PNAME}-0.9.8e-magellan-2.patch || die
45    
46     # fixes conflicts with perl, shadow and some broken pod files
47     mpatch ${PNAME}-0.9.8e-fix-manpages.patch || die
48     }
49    
50     src_compile()
51     {
52     for abi in ${MULTILIB_ABIS}
53     do
54     cd ${SRCDIR}-${abi}
55    
56     local myopts="linux-${ARCH}-${abi}"
57     [[ ${ARCH} = i*86 ]] && myopts="linux-elf"
58    
59     ./Configure \
60     --openssldir=/etc/ssl \
61     --prefix=/usr \
62     shared ${myopts} || die
63    
64     # do not install libfips
65     sed -i 's%SHLIBDIRS= fips crypto ssl%SHLIBDIRS= crypto ssl%g' Makefile || die
66    
67     make depend || die
68     done
69    
70     mmake -j1 MANDIR=/usr/share/man 'LIBDIR=$(mlibdir)' || die
71     }
72    
73     src_install()
74     {
75     cd ${SRCDIR}
76    
77     # needed directories
78     minstalldir /etc/ssl || die
79    
80     mmake -j1 INSTALL_PREFIX=${BINDIR} MANDIR=/usr/share/man 'LIBDIR=$(mlibdir)' install || die
81    
82     # fix permissions
83     mchmod 0755 /usr/$(mlibdir)/pkgconfig || die
84    
85     # install certs, make install left them out
86     cp -r certs ${BINDIR}/etc/ssl || die
87    
88     # install docs
89     minstalldocs CHANGES* FAQ LICENSE NEWS README doc/*.txt || die
90     }

Properties

Name Value
svn:keywords Id