Contents of /trunk/core/openssl/openssl-1.0.1a-r1.smage2
Parent Directory | Revision Log
Revision 12034 -
(show annotations)
(download)
Wed May 2 12:31:26 2012 UTC (12 years, 4 months ago) by niro
File size: 2346 byte(s)
Wed May 2 12:31:26 2012 UTC (12 years, 4 months ago) by niro
File size: 2346 byte(s)
-added nxclient to rebuild list
1 | # $Id$ |
2 | |
3 | PNAME="openssl" |
4 | PVER="1.0.1a" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="dev-libs" |
8 | |
9 | DESCRIPTION="Provides libraries for SSL v2/3 and TLS v1." |
10 | HOMEPAGE="http://www.openssl.org/" |
11 | |
12 | DEPEND=">= virtual/glibc |
13 | >= dev-libs/openssl-compat-0.9.7" |
14 | |
15 | SDEPEND=">= dev-lang/perl-5 |
16 | >= sys-apps/sed-4" |
17 | |
18 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
20 | |
21 | sminclude multilib mtools |
22 | msetfeature "!check" |
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}-1.0.1a-magellan.patch |
31 | mirror://${PNAME}/${PNAME}-1.0.0a-fix-manpages.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, subversion, neon, nxclient |
37 | |
38 | src_prepare() |
39 | { |
40 | munpack ${SRCFILE} || die |
41 | |
42 | # fix CFLAGS and allow x86_64 multlib builds |
43 | mpatch ${PNAME}-1.0.1a-magellan.patch || die |
44 | |
45 | # fixes conflicts with perl, shadow and some broken pod files |
46 | mpatch ${PNAME}-1.0.0a-fix-manpages.patch || die |
47 | } |
48 | |
49 | src_compile() |
50 | { |
51 | local abi |
52 | local libdir |
53 | local myopts |
54 | |
55 | for abi in ${MULTILIB_ABIS} |
56 | do |
57 | cd ${SRCDIR}-${abi} |
58 | |
59 | case ${abi} in |
60 | m32) libdir="lib" ;; |
61 | m64) libdir="lib64" ;; |
62 | esac |
63 | |
64 | myopts="linux-${ARCH}-${abi}" |
65 | [[ ${ARCH} = i*86 ]] && myopts="linux-elf" |
66 | |
67 | echo "Compiler: ${myopts}" |
68 | |
69 | ./Configure \ |
70 | --openssldir=/etc/ssl \ |
71 | --prefix=/usr \ |
72 | --libdir=${libdir} \ |
73 | shared threads zlib ${myopts} || die |
74 | |
75 | make depend || die |
76 | done |
77 | |
78 | mmake -j1 MANDIR=/usr/share/man || die |
79 | } |
80 | |
81 | src_install() |
82 | { |
83 | cd ${SRCDIR} |
84 | |
85 | # needed directories |
86 | minstalldir /etc/ssl || die |
87 | |
88 | mmake -j1 INSTALL_PREFIX=${BINDIR} MANDIR=/usr/share/man install || die |
89 | |
90 | # fix permissions |
91 | mchmod 0755 /usr/$(mlibdir)/pkgconfig || die |
92 | |
93 | # install certs, make install left them out |
94 | cp -r certs ${BINDIR}/etc/ssl || die |
95 | rm -r ${BINDIR}/etc/ssl/certs/{demo,expired} || die |
96 | |
97 | # keep these directories |
98 | mkeepdir /etc/ssl/certs || die |
99 | mkeepdir /etc/ssl/private || die |
100 | mchmod 0700 /etc/ssl/private || die |
101 | |
102 | # install our simple certificate creation script |
103 | minstalldir /usr/sbin || die |
104 | minstallexec -s openssl-make-certs.sh-${MKCERTS_CVS_REV} /usr/sbin/openssl-make-certs || die |
105 | |
106 | # install docs |
107 | minstalldocs CHANGES* FAQ LICENSE NEWS README doc/*.txt || die |
108 | } |