summaryrefslogtreecommitdiff
blob: 1ad5011cb40c1d217576ed1ad9693b3e354b81fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/apache-tools/apache-tools-2.2.4.ebuild,v 1.2 2007/05/07 20:27:21 kloeri Exp $

DESCRIPTION="Useful Apache tools - htdigest, htpasswd, ab, htdbm"
HOMEPAGE="http://httpd.apache.org/"
SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE=""
RESTRICT="test"

RDEPEND="=dev-libs/apr-1*
	=dev-libs/apr-util-1*
	dev-libs/libpcre
	!<net-www/apache-2.2.4"

DEPEND="${RDEPEND}"

S="${WORKDIR}/httpd-${PV}"

src_compile() {
	cd "${S}"
	econf \
		--with-pcre=/usr || die "econf failed!"

	cd support
	emake htpasswd htdigest ab htdbm
}

src_install () {
	cd "${S}"
	dosbin support/{htdigest,htpasswd,ab,htdbm}
	dodoc CHANGES INSTALL
	doman docs/man/{htdigest.1,htpasswd.1,ab.8,htdbm.1}
}