Magellan Linux

Contents of /trunk/core/openssl/openssl-0.9.8k-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id