blob: f2d862f584e90893454e2075c4f438d84a5d1d48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.6b.ebuild,v 1.7 2001/11/10 12:05:20 hallski Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1"
SRC_URI="http://www.openssl.org/source/${P}.tar.gz"
HOMEPAGE="http://www.opensl.org/"
RDEPEND="virtual/glibc"
DEPEND="${RDEPEND}
>=sys-devel/perl-5"
src_unpack() {
unpack ${A}
cd ${S}
try patch -p0 < ${FILESDIR}/${P}-Makefile.org-gentoo.diff
cp Configure Configure.orig
sed -e "s/-O3/$CFLAGS/" -e "s/-m486//" \
Configure.orig > Configure
# Makefile borkage. The MANDIR is set to ${OPENSSLDIR}/man
# which is lame
sed -e 's:MANDIR=$(OPENSSLDIR)/man:MANDIR=/usr/share/man:g' \
Makefile | cat > Makefile
}
src_compile() {
./config --prefix=/usr \
--openssldir=/usr/ssl \
shared threads || die
make all || die
}
src_install() {
dodir /usr/ssl
make INSTALL_PREFIX=${D} install || die
dodoc CHANGES* FAQ LICENSE NEWS README
dodoc doc/*.txt
docinto html
dodoc doc/*.gif doc/*.html
insinto /usr/share/emacs/site-lisp
doins doc/c-indentation.el
}
|