1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit flag-o-matic eutils multilib toolchain-funcs
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 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc64-solaris ~x64-solaris"
18 RDEPEND=">=dev-libs/apr-1.5.0:1
22 kernel_linux? ( sys-apps/util-linux )
24 !libressl? ( dev-libs/openssl:0= )
25 libressl? ( dev-libs/libressl:= )
31 S="${WORKDIR}/httpd-${PV}"
34 epatch "${FILESDIR}"/${PN}-2.4.7-Makefile.patch #459446
36 # This package really should upgrade to using pcre's .pc file.
37 cat <<-\EOF >"${T}"/pcre-config
39 [ "${flag}" = "--version" ] && set -- --modversion
40 exec ${PKG_CONFIG} libpcre "$@"
42 chmod a+x "${T}"/pcre-config
47 tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no"
51 # Instead of filtering --as-needed (bug #128505), append --no-as-needed
52 append-ldflags $(no-as-needed)
54 # econf overwrites the stuff from config.layout.
55 ac_cv_path_PKGCONFIG=${PKG_CONFIG} \
57 --libexecdir="${EPREFIX}"/usr/$(get_libdir)/apache2/modules \
58 --sbindir="${EPREFIX}"/usr/sbin \
59 --with-perl="${EPREFIX}"/usr/bin/perl \
60 --with-expat="${EPREFIX}"/usr \
61 --with-z="${EPREFIX}"/usr \
62 --with-apr="${SYSROOT}${EPREFIX}"/usr \
63 --with-apr-util="${SYSROOT}${EPREFIX}"/usr \
64 --with-pcre="${T}"/pcre-config \
66 $(usex ssl '--with-ssl="${EPREFIX}"/usr' '')
68 -e '/^LTFLAGS/s:--silent::' \
69 build/rules.mk build/config_vars.mk || die
77 emake -C support DESTDIR="${D}" install
79 doman docs/man/{dbmmanage,htdigest,htpasswd,htdbm,ab,logresolve}.1 \
80 docs/man/{htcacheclean,rotatelogs}.8
82 # Providing compatiblity symlinks for #177697 (which we'll stop to install
84 pushd "${ED}"/usr/sbin >/dev/null || die
87 dosym ${i} /usr/sbin/${i}2
89 popd >/dev/null || die
91 # Provide a symlink for ab-ssl
93 dosym ab /usr/bin/ab-ssl
94 dosym ab /usr/bin/ab2-ssl