1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit flag-o-matic eutils
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"
14 KEYWORDS="alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
18 RDEPEND="=dev-libs/apr-1*
22 kernel_linux? ( sys-apps/util-linux )
23 ssl? ( dev-libs/openssl )
24 !<www-servers/apache-2.2.4"
29 S="${WORKDIR}/httpd-${PV}"
32 # Apply these patches:
33 # (1) apache-tools-2.2.20-Makefile.patch:
34 # - fix up the `make install' for support/
35 # - remove envvars from `make install'
36 epatch "${FILESDIR}"/${PN}-2.2.20-Makefile.patch
41 tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no"
43 # Instead of filtering --as-needed (bug #128505), append --no-as-needed
44 append-ldflags $(no-as-needed)
46 # econf overwrites the stuff from config.layout.
51 --with-apr-util=/usr \
54 $(usex ssl '--with-ssl=/usr' '')
65 make DESTDIR="${D}" install || die
68 doman "${S}"/docs/man/{dbmmanage,htdigest,htpasswd,htdbm}.1 \
69 "${S}"/docs/man/{htcacheclean,rotatelogs,ab,logresolve}.8
71 # Providing compatiblity symlinks for #177697 (which we'll stop to install
73 pushd "${D}"/usr/sbin/ >/dev/null || die
75 dosym /usr/sbin/${i} /usr/sbin/${i}2
77 popd >/dev/null || die
79 # Provide a symlink for ab-ssl
81 dosym /usr/sbin/ab /usr/sbin/ab-ssl
82 dosym /usr/sbin/ab /usr/sbin/ab2-ssl
85 # make htpasswd accessible for non-root users
86 dosym /usr/sbin/htpasswd /usr/bin/htpasswd
87 dosym /usr/sbin/htdigest /usr/bin/htdigest