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

Contents of /dev-libs/openssl/openssl-0.9.6j.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Jul 12 09:22:22 2003 UTC (15 years, 9 months ago) by aliz
Branch: MAIN
Branch point for: RELEASE-1_4
Changes since 1.3: +2 -2 lines
unmasks and changelog fixes

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.6j.ebuild,v 1.3 2003/07/01 17:10:21 todd 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}/${PN}-0.9.6i-gentoo.diff
32
33 if [ "${ARCH}" = "mips" ]
34 then
35 cd ${S}
36 epatch ${FILESDIR}/openssl-0.9.6-mips.diff
37 fi
38
39 if [ "${ARCH}" = "arm" ]; then
40 # patch linker to add -ldl or things linking aginst libcrypto fail
41 sed -e \
42 's!^"linux-elf-arm"\(.*\)::BN\(.*\)!"linux-elf-arm"\1:-ldl:BN\2!' \
43 Configure > Configure.orig
44 elif [ "${ARCH}" = "hppa" ]; then
45 sed -e \
46 's!^"linux-parisc"\(.*\)::BN\(.*\)::!"linux-parisc"\1:-ldl:BN\2::::::::::dlfcn:linux-shared:-fPIC::.so.\\$(SHLIB_MAJOR).\\$(SHLIB_MINOR)!' \
47 Configure > Configure.orig
48 elif [ "${ARCH}" = "alpha" ]; then
49 if [ "${CC}" != "ccc" ]; then
50 # ccc compiled openssl will break things linked against
51 # a gcc compiled openssl, the configure will automatically detect
52 # ccc and use it, so stop that if user hasnt asked for it.
53 #
54 sed -e \
55 's!CC=ccc!CC=gcc!' config > config.orig
56 cp config.orig config
57 fi
58 cp Configure Configure.orig
59 else
60 cp Configure Configure.orig
61 fi
62 sed -e "s/-O3/$CFLAGS/" -e "s/-m486//" Configure.orig > Configure
63 }
64
65 src_compile() {
66 if [ ${SSH_TARGET} ]; then
67 einfo "Forcing ${SSH_TARGET} compile"
68 ./Configure ${SSH_TARGET} --prefix=/usr \
69 --openssldir=/etc/ssl shared threads || die
70 else
71 ./config --prefix=/usr --openssldir=/etc/ssl shared threads || die
72 fi
73 # i think parallel make has problems
74 make all || die
75
76 }
77
78 src_install() {
79 make INSTALL_PREFIX=${D} MANDIR=/usr/share/man install || die
80 dodoc CHANGES* FAQ LICENSE NEWS README
81 dodoc doc/*.txt
82 dohtml doc/*
83 insinto /usr/share/emacs/site-lisp
84 doins doc/c-indentation.el
85
86 # The man pages rand.3 and passwd.1 conflict with other packages
87 # Rename them to ssl-* and also make a symlink from openssl-* to ssl-*
88 cd ${D}/usr/share/man/man1
89 mv passwd.1 ssl-passwd.1
90 ln -sf ssl-passwd.1 openssl-passwd.1
91 cd ${D}/usr/share/man/man3
92 mv rand.3 ssl-rand.3
93 ln -sf ssl-rand.3 openssl-rand.3
94
95 # create the certs directory. Previous openssl builds
96 # would need to create /usr/lib/ssl/certs but this looks
97 # to be the more FHS compliant setup... -raker
98 dodir /etc/ssl/certs
99
100 }
101

  ViewVC Help
Powered by ViewVC 1.1.20