| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/apache-tools/apache-tools-2.4.3-r1.ebuild,v 1.1 2012/11/01 06:55:40 qnikst Exp $
|
| 4 |
|
| 5 |
EAPI="3"
|
| 6 |
inherit flag-o-matic eutils
|
| 7 |
|
| 8 |
DESCRIPTION="Useful Apache tools - htdigest, htpasswd, ab, htdbm"
|
| 9 |
HOMEPAGE="http://httpd.apache.org/"
|
| 10 |
SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2"
|
| 11 |
|
| 12 |
LICENSE="Apache-2.0"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc64-solaris ~x64-solaris"
|
| 15 |
IUSE="ssl"
|
| 16 |
RESTRICT="test"
|
| 17 |
|
| 18 |
RDEPEND="=dev-libs/apr-1*
|
| 19 |
=dev-libs/apr-util-1*
|
| 20 |
dev-libs/libpcre
|
| 21 |
ssl? ( dev-libs/openssl )"
|
| 22 |
|
| 23 |
DEPEND="${RDEPEND}
|
| 24 |
sys-devel/libtool"
|
| 25 |
|
| 26 |
S="${WORKDIR}/httpd-${PV}"
|
| 27 |
|
| 28 |
src_configure() {
|
| 29 |
local myconf=""
|
| 30 |
|
| 31 |
# Instead of filtering --as-needed (bug #128505), append --no-as-needed
|
| 32 |
append-ldflags $(no-as-needed)
|
| 33 |
|
| 34 |
use ssl && myconf+=" --with-ssl=${EPREFIX}/usr --enable-ssl"
|
| 35 |
|
| 36 |
# econf overwrites the stuff from config.layout, so we have to put them into
|
| 37 |
# our myconf line too
|
| 38 |
econf \
|
| 39 |
--sbindir="${EPREFIX}"/usr/sbin \
|
| 40 |
--with-perl="${EPREFIX}"/usr/bin/perl \
|
| 41 |
--with-expat="${EPREFIX}"/usr \
|
| 42 |
--with-z="${EPREFIX}"/usr \
|
| 43 |
--with-apr="${EPREFIX}"/usr \
|
| 44 |
--with-apr-util="${EPREFIX}"/usr \
|
| 45 |
--with-pcre="${EPREFIX}"/usr \
|
| 46 |
${myconf}
|
| 47 |
}
|
| 48 |
|
| 49 |
src_compile() {
|
| 50 |
cd support || die
|
| 51 |
emake
|
| 52 |
}
|
| 53 |
|
| 54 |
src_install () {
|
| 55 |
cd support || die
|
| 56 |
|
| 57 |
make DESTDIR="${D}" install
|
| 58 |
|
| 59 |
# install manpages
|
| 60 |
doman "${S}"/docs/man/{dbmmanage,htdigest,htpasswd,htdbm,ab,logresolve}.1 \
|
| 61 |
"${S}"/docs/man/{htcacheclean,rotatelogs}.8
|
| 62 |
|
| 63 |
# Providing compatiblity symlinks for #177697 (which we'll stop to install
|
| 64 |
# at some point).
|
| 65 |
pushd "${ED}"/usr/sbin/ >/dev/null
|
| 66 |
for i in *; do
|
| 67 |
dosym /usr/sbin/${i} /usr/sbin/${i}2
|
| 68 |
done
|
| 69 |
popd "${ED}"/usr/sbin/ >/dev/null
|
| 70 |
|
| 71 |
# Provide a symlink for ab-ssl
|
| 72 |
if use ssl; then
|
| 73 |
dosym /usr/bin/ab /usr/bin/ab-ssl
|
| 74 |
dosym /usr/bin/ab /usr/bin/ab2-ssl
|
| 75 |
fi
|
| 76 |
|
| 77 |
dodoc "${S}"/CHANGES
|
| 78 |
}
|