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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20