diff options
author | Michael Stewart <vericgar@gentoo.org> | 2005-09-18 00:12:14 +0000 |
---|---|---|
committer | Michael Stewart <vericgar@gentoo.org> | 2005-09-18 00:12:14 +0000 |
commit | 1c822efa03c909dcd7e66c9cb83eae97ecbb7247 (patch) | |
tree | 68f6b81ca16f69fe808bdd94a0c569ea0a53fe24 /dev-libs/apr/apr-0.9.6-r4.ebuild | |
parent | New local USE-flag for dev-libs/apr (diff) | |
download | historical-1c822efa03c909dcd7e66c9cb83eae97ecbb7247.tar.gz historical-1c822efa03c909dcd7e66c9cb83eae97ecbb7247.tar.bz2 historical-1c822efa03c909dcd7e66c9cb83eae97ecbb7247.zip |
Added support for using /dev/urandom instead of /dev/random if the urandom USE-flag is set. Fixes bug 102587
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'dev-libs/apr/apr-0.9.6-r4.ebuild')
-rw-r--r-- | dev-libs/apr/apr-0.9.6-r4.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/apr/apr-0.9.6-r4.ebuild b/dev-libs/apr/apr-0.9.6-r4.ebuild new file mode 100644 index 000000000000..c3704dbf9e99 --- /dev/null +++ b/dev-libs/apr/apr-0.9.6-r4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/apr-0.9.6-r4.ebuild,v 1.1 2005/09/18 00:12:14 vericgar Exp $ + +inherit flag-o-matic libtool + +DESCRIPTION="Apache Portable Runtime Library" +HOMEPAGE="http://apr.apache.org/" +SRC_URI="mirror://apache/apr/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="ipv6 urandom" +RESTRICT="test" + +DEPEND="" + +src_compile() { + elibtoolize || die "elibtoolize failed" + + myconf="--datadir=/usr/share/apr-0" + + myconf="${myconf} $(use_enable ipv6)" + myconf="${myconf} --enable-threads" + myconf="${myconf} --enable-nonportable-atomics" + if use urandom; then + einfo "Using /dev/urandom as random device" + myconf="${myconf} --with-devrandom=/dev/urandom" + else + einfo "Using /dev/random as random device" + myconf="${myconf} --with-devrandom=/dev/random" + fi + + econf ${myconf} || die + emake || die +} + +src_install() { + make DESTDIR="${D}" installbuilddir=/usr/share/apr-0/build install || die + + # bogus values pointing at /var/tmp/portage + sed -i -e 's:APR_SOURCE_DIR=.*:APR_SOURCE_DIR=/usr/share/apr-0:g' ${D}/usr/bin/apr-config + sed -i -e 's:APR_BUILD_DIR=.*:APR_BUILD_DIR=/usr/share/apr-0/build:g' ${D}/usr/bin/apr-config + + sed -i -e 's:apr_builddir=.*:apr_builddir=/usr/share/apr-0/build:g' ${D}/usr/share/apr-0/build/apr_rules.mk + sed -i -e 's:apr_builders=.*:apr_builders=/usr/share/apr-0/build:g' ${D}/usr/share/apr-0/build/apr_rules.mk + + cp -p build/*.awk ${D}/usr/share/apr-0/build + cp -p build/*.sh ${D}/usr/share/apr-0/build + cp -p build/*.pl ${D}/usr/share/apr-0/build + + dodoc CHANGES LICENSE NOTICE +} |