/[gentoo-x86]/dev-libs/openssl/openssl-0.9.6i-r2.ebuild
Gentoo

Contents of /dev-libs/openssl/openssl-0.9.6i-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Jun 14 03:21:14 2003 UTC (15 years, 10 months ago) by gmsoft
Branch: MAIN
Branch point for: RELEASE-1_4
Changes since 1.4: +6 -1 lines
Added a build fix for people running a 64bit kernel.

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.6i-r2.ebuild,v 1.4 2003/05/20 19:16:23 taviso Exp $
4
5 inherit eutils
6
7 S=${WORKDIR}/${P}
8 DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1"
9 SRC_URI="http://www.openssl.org/source/${P}.tar.gz"
10 HOMEPAGE="http://www.openssl.org/"
11
12 RDEPEND="virtual/glibc"
13 DEPEND="${RDEPEND} >=dev-lang/perl-5"
14 LICENSE="as-is"
15 SLOT="0"
16 KEYWORDS="x86 ppc alpha sparc mips hppa arm"
17 IUSE=""
18
19 if [ "$PROFILE_ARCH" = "sparc" -a "`uname -m`" = "sparc64" ]; then
20 SSH_TARGET="linux-sparcv8"
21 fi
22
23 if [ "`uname -m`" = "parisc64" ]; then
24 SSH_TARGET="linux-parisc"
25 fi
26
27
28 src_unpack() {
29 unpack ${A} ; cd ${S}
30
31 epatch ${FILESDIR}/${P}-klima_pokorny_rosa_attack.patch
32 epatch ${FILESDIR}/${P}-blinding.patch
33 epatch ${FILESDIR}/${P}-gentoo.diff
34
35 if [ "${ARCH}" = "mips" ]
36 then
37 cd ${S}
38 epatch ${FILESDIR}/openssl-0.9.6-mips.diff
39 fi
40
41 if [ "${ARCH}" = "arm" ]; then
42 # patch linker to add -ldl or things linking aginst libcrypto fail
43 sed -e \
44 's!^"linux-elf-arm"\(.*\)::BN\(.*\)!"linux-elf-arm"\1:-ldl:BN\2!' \
45 Configure > Configure.orig
46 elif [ "${ARCH}" = "hppa" ]; then
47 sed -e \
48 's!^"linux-parisc"\(.*\)::BN\(.*\)::!"linux-parisc"\1:-ldl:BN\2::::::::::dlfcn:linux-shared:-fPIC::.so.\\$(SHLIB_MAJOR).\\$(SHLIB_MINOR)!' \
49 Configure > Configure.orig
50 elif [ "${ARCH}" = "alpha" ]; then
51 if [ "${CC}" != "ccc" ]; then
52 # ccc compiled openssl will break things linked against
53 # a gcc compiled openssl, the configure will automatically detect
54 # ccc and use it, so stop that if user hasnt asked for it.
55 #
56 sed -e \
57 's!CC=ccc!CC=gcc!' config > config.orig
58 cp config.orig config
59 fi
60 cp Configure Configure.orig
61 else
62 cp Configure Configure.orig
63 fi
64 sed -e "s/-O3/$CFLAGS/" -e "s/-m486//" Configure.orig > Configure
65 }
66
67 src_compile() {
68 if [ ${SSH_TARGET} ]; then
69 einfo "Forcing ${SSH_TARGET} compile"
70 ./Configure ${SSH_TARGET} --prefix=/usr \
71 --openssldir=/etc/ssl shared threads || die
72 else
73 ./config --prefix=/usr --openssldir=/etc/ssl shared threads || die
74 fi
75 # i think parallel make has problems
76 make all || die
77
78 }
79
80 src_install() {
81 make INSTALL_PREFIX=${D} MANDIR=/usr/share/man install || die
82 dodoc CHANGES* FAQ LICENSE NEWS README
83 dodoc doc/*.txt
84 dohtml doc/*
85 insinto /usr/share/emacs/site-lisp
86 doins doc/c-indentation.el
87
88 # The man pages rand.3 and passwd.1 conflict with other packages
89 # Rename them to ssl-* and also make a symlink from openssl-* to ssl-*
90 cd ${D}/usr/share/man/man1
91 mv passwd.1 ssl-passwd.1
92 ln -sf ssl-passwd.1 openssl-passwd.1
93 cd ${D}/usr/share/man/man3
94 mv rand.3 ssl-rand.3
95 ln -sf ssl-rand.3 openssl-rand.3
96
97 # create the certs directory. Previous openssl builds
98 # would need to create /usr/lib/ssl/certs but this looks
99 # to be the more FHS compliant setup... -raker
100 dodir /etc/ssl/certs
101
102 }
103

  ViewVC Help
Powered by ViewVC 1.1.20