summaryrefslogtreecommitdiff
blob: c0276f5c6e74060a41e06bc34f8cf905c2b940b8 (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
# 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>
# /home/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.6-r1.ebuild,v 1.1 2001/03/09 10:26:59 achim Exp

A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1"
SRC_URI="http://www.openssl.org/source/${A}"
HOMEPAGE="http://www.opensl.org/"

DEPEND="virtual/glibc >=sys-devel/perl-5"


RDEPEND="virtual/glibc "
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
   try make all
}

src_install() {
    dodir /usr/ssl
    try make INSTALL_PREFIX=${D} install

    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
}