diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2003-02-20 16:25:22 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2003-02-20 16:25:22 +0000 |
commit | 0f3a1087ad5001051efc664e5e3a20d71980a556 (patch) | |
tree | df997faf993ec2cf12ac08f346edb84e345e2d72 /dev-libs/openssl | |
parent | Security update (diff) | |
download | gentoo-2-0f3a1087ad5001051efc664e5e3a20d71980a556.tar.gz gentoo-2-0f3a1087ad5001051efc664e5e3a20d71980a556.tar.bz2 gentoo-2-0f3a1087ad5001051efc664e5e3a20d71980a556.zip |
doh, forgot ebuilds
Diffstat (limited to 'dev-libs/openssl')
-rw-r--r-- | dev-libs/openssl/openssl-0.9.6i.ebuild | 61 | ||||
-rw-r--r-- | dev-libs/openssl/openssl-0.9.7a.ebuild | 76 |
2 files changed, 137 insertions, 0 deletions
diff --git a/dev-libs/openssl/openssl-0.9.6i.ebuild b/dev-libs/openssl/openssl-0.9.6i.ebuild new file mode 100644 index 000000000000..c175e22f93f6 --- /dev/null +++ b/dev-libs/openssl/openssl-0.9.6i.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.6i.ebuild,v 1.1 2003/02/20 16:25:22 aliz Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1" +SRC_URI="http://www.openssl.org/source/${P}.tar.gz" +HOMEPAGE="http://www.openssl.org/" + +RDEPEND="virtual/glibc" +DEPEND="${RDEPEND} >=sys-devel/perl-5" +LICENSE="as-is" +SLOT="0" +KEYWORDS="x86 ppc alpha sparc mips hppa" + +src_unpack() { + unpack ${A} ; cd ${S} + + patch -p1 < ${FILESDIR}/${PF}-gentoo.diff + + # many apps linking to openssl needs -fPIC + if [ "${ARCH}" = "hppa" ] + then + CFLAGS="${CFLAGS} -fPIC" + fi + + + cp Configure Configure.orig + sed -e "s/-O3/$CFLAGS/" -e "s/-m486//" Configure.orig > Configure +} + +src_compile() { + ./config --prefix=/usr --openssldir=/etc/ssl shared threads || die + # i think parallel make has problems + make all || die +} + +src_install() { + make INSTALL_PREFIX=${D} MANDIR=/usr/share/man install || die + dodoc CHANGES* FAQ LICENSE NEWS README + dodoc doc/*.txt + dohtml doc/* + insinto /usr/share/emacs/site-lisp + doins doc/c-indentation.el + + # The man pages rand.3 and passwd.1 conflict with other packages + # Rename them to ssl-* and also make a symlink from openssl-* to ssl-* + cd ${D}/usr/share/man/man1 + mv passwd.1 ssl-passwd.1 + ln -sf ssl-passwd.1 openssl-passwd.1 + cd ${D}/usr/share/man/man3 + mv rand.3 ssl-rand.3 + ln -sf ssl-rand.3 openssl-rand.3 + + # create the certs directory. Previous openssl builds + # would need to create /usr/lib/ssl/certs but this looks + # to be the more FHS compliant setup... -raker + dodir /etc/ssl/certs + +} + diff --git a/dev-libs/openssl/openssl-0.9.7a.ebuild b/dev-libs/openssl/openssl-0.9.7a.ebuild new file mode 100644 index 000000000000..961028b31409 --- /dev/null +++ b/dev-libs/openssl/openssl-0.9.7a.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.7a.ebuild,v 1.1 2003/02/20 16:25:22 aliz Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1" +SRC_URI="http://www.openssl.org/source/${P}.tar.gz" +HOMEPAGE="http://www.openssl.org/" + +RDEPEND="virtual/glibc" +DEPEND="${RDEPEND} >=sys-devel/perl-5" +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86 ~ppc ~alpha ~sparc ~hppa" + +warning() { + ewarn "BIG FAT WARNING!!!" + ewarn "You must re-emerge every package that links to openssl after you have merged ${P}" + ewarn "This is becuse packages that links against ${PN} links against the full version" + ewarn "Also, if you don't have the sources for the packages you need to re-emerge you" + ewarn "should download them with emerge -f prior to the installation of ${P}." + ewarn "This is becuse wget may be linked against ${PN}." + ewarn "To generate a list of packages that links against ${PN} you can download" + ewarn "and run the script from http://cvs.gentoo.org/~aliz/openssl_update.sh" + ewarn "If you are using binary packages you need to rebuild those against the" + ewarn "new version of ${PN}" + sleep 10 +} + +src_unpack() { + warning + unpack ${A} ; cd ${S} + + patch -p1 < ${FILESDIR}/${P}-gentoo.diff + + # many apps linking to openssl needs -fPIC + if [ "${ARCH}" = "hppa" ] + then + CFLAGS="${CFLAGS} -fPIC" + fi + + + cp Configure Configure.orig + sed -e "s/-O3/$CFLAGS/" -e "s/-m486//" Configure.orig > Configure +} + +src_compile() { + ./config --prefix=/usr --openssldir=/etc/ssl shared threads || die + # i think parallel make has problems + make all || die +} + +src_install() { + make INSTALL_PREFIX=${D} MANDIR=/usr/share/man install || die + dodoc CHANGES* FAQ LICENSE NEWS README + dodoc doc/*.txt + dohtml doc/* + insinto /usr/share/emacs/site-lisp + doins doc/c-indentation.el + + # The man pages rand.3 and passwd.1 conflict with other packages + # Rename them to ssl-* and also make a symlink from openssl-* to ssl-* + cd ${D}/usr/share/man/man1 + mv passwd.1 ssl-passwd.1 + ln -sf ssl-passwd.1 openssl-passwd.1 + cd ${D}/usr/share/man/man3 + mv rand.3 ssl-rand.3 + ln -sf ssl-rand.3 openssl-rand.3 + + # create the certs directory. Previous openssl builds + # would need to create /usr/lib/ssl/certs but this looks + # to be the more FHS compliant setup... -raker + dodir /etc/ssl/certs + +} + |