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

Contents of /dev-libs/openssl/openssl-0.9.7b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (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.4: +3 -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.7b.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 #amd64 needs this version or later.
17 KEYWORDS="amd64"
18
19 warning() {
20 ewarn "BIG FAT WARNING!!!"
21 ewarn "You must re-emerge every package that links to openssl after you have merged ${P}"
22 ewarn "This is becuse packages that links against ${PN} links against the full version"
23 ewarn "Also, if you don't have the sources for the packages you need to re-emerge you"
24 ewarn "should download them with emerge -f prior to the installation of ${P}."
25 ewarn "This is becuse wget may be linked against ${PN}."
26 ewarn "To generate a list of packages that links against ${PN} you can download"
27 ewarn "and run the script from http://cvs.gentoo.org/~aliz/openssl_update.sh"
28 ewarn "If you are using binary packages you need to rebuild those against the"
29 ewarn "new version of ${PN}"
30 sleep 10
31 }
32
33 src_unpack() {
34 warning
35 unpack ${A} ; cd ${S}
36
37 epatch ${FILESDIR}/${PN}-0.9.7a-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 if [ "${ARCH}" = "alpha" -a "${CC}" != "ccc" ]; then
47 # ccc compiled openssl will break things linked against
48 # a gcc compiled openssl, the configure will automatically detect
49 # ccc and use it, so stop that if user hasnt asked for it.
50 sed -e \
51 's!CC=ccc!CC=gcc!' config > config.orig
52 cp config.orig config
53 fi
54
55 sed -e "s/-O3/$CFLAGS/" -e "s/-m486//" Configure.orig > Configure
56 }
57
58 src_compile() {
59 ./config --prefix=/usr --openssldir=/etc/ssl shared threads || die
60 # i think parallel make has problems
61 make all || die
62 }
63
64 src_install() {
65 make INSTALL_PREFIX=${D} MANDIR=/usr/share/man install || die
66 dodoc CHANGES* FAQ LICENSE NEWS README
67 dodoc doc/*.txt
68 dohtml doc/*
69 insinto /usr/share/emacs/site-lisp
70 doins doc/c-indentation.el
71
72 # The man pages rand.3 and passwd.1 conflict with other packages
73 # Rename them to ssl-* and also make a symlink from openssl-* to ssl-*
74 cd ${D}/usr/share/man/man1
75 mv passwd.1 ssl-passwd.1
76 ln -sf ssl-passwd.1 openssl-passwd.1
77 cd ${D}/usr/share/man/man3
78 mv rand.3 ssl-rand.3
79 ln -sf ssl-rand.3 openssl-rand.3
80
81 # create the certs directory. Previous openssl builds
82 # would need to create /usr/lib/ssl/certs but this looks
83 # to be the more FHS compliant setup... -raker
84 dodir /etc/ssl/certs
85
86 }
87

  ViewVC Help
Powered by ViewVC 1.1.20