/[gentoo-x86]/dev-libs/openssl/openssl-0.9.7a-r1.ebuild
Gentoo

Contents of /dev-libs/openssl/openssl-0.9.7a-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jun 22 08:04:03 2003 UTC (15 years, 10 months ago) by drobbins
Branch: MAIN
Branch point for: RELEASE-1_4
Changes since 1.1: +2 -2 lines
amd64, minus all other arches

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.7a-r1.ebuild,v 1.1 2003/03/19 09:26:09 aliz 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="-*"
17
18 warning() {
19 ewarn "BIG FAT WARNING!!!"
20 ewarn "You must re-emerge every package that links to openssl after you have merged ${P}"
21 ewarn "This is becuse packages that links against ${PN} links against the full version"
22 ewarn "Also, if you don't have the sources for the packages you need to re-emerge you"
23 ewarn "should download them with emerge -f prior to the installation of ${P}."
24 ewarn "This is becuse wget may be linked against ${PN}."
25 ewarn "To generate a list of packages that links against ${PN} you can download"
26 ewarn "and run the script from http://cvs.gentoo.org/~aliz/openssl_update.sh"
27 ewarn "If you are using binary packages you need to rebuild those against the"
28 ewarn "new version of ${PN}"
29 sleep 10
30 }
31
32 src_unpack() {
33 warning
34 unpack ${A} ; cd ${S}
35
36 epatch ${FILESDIR}/${P}-blinding.patch
37 epatch ${FILESDIR}/${P}-gentoo.diff
38
39 if [ "${ARCH}" = "hppa" ]; then
40 sed -e \
41 's!^"linux-parisc"\(.*\)::BN\(.*\)::!"linux-parisc"\1:-ldl:BN\2::::::::::dlfcn:linux-shared:-fPIC::.so.\\$(SHLIB_MAJOR).\\$(SHLIB_MINOR)!' \
42 Configure > Configure.orig
43 else
44 cp Configure Configure.orig
45 fi
46 sed -e "s/-O3/$CFLAGS/" -e "s/-m486//" Configure.orig > Configure
47 }
48
49 src_compile() {
50 ./config --prefix=/usr --openssldir=/etc/ssl shared threads || die
51 # i think parallel make has problems
52 make all || die
53 }
54
55 src_install() {
56 make INSTALL_PREFIX=${D} MANDIR=/usr/share/man install || die
57 dodoc CHANGES* FAQ LICENSE NEWS README
58 dodoc doc/*.txt
59 dohtml doc/*
60 insinto /usr/share/emacs/site-lisp
61 doins doc/c-indentation.el
62
63 # The man pages rand.3 and passwd.1 conflict with other packages
64 # Rename them to ssl-* and also make a symlink from openssl-* to ssl-*
65 cd ${D}/usr/share/man/man1
66 mv passwd.1 ssl-passwd.1
67 ln -sf ssl-passwd.1 openssl-passwd.1
68 cd ${D}/usr/share/man/man3
69 mv rand.3 ssl-rand.3
70 ln -sf ssl-rand.3 openssl-rand.3
71
72 # create the certs directory. Previous openssl builds
73 # would need to create /usr/lib/ssl/certs but this looks
74 # to be the more FHS compliant setup... -raker
75 dodir /etc/ssl/certs
76
77 }
78

  ViewVC Help
Powered by ViewVC 1.1.20