/[gentoo-x86]/app-admin/apache-tools/apache-tools-2.2.23.ebuild
Gentoo

Contents of /app-admin/apache-tools/apache-tools-2.2.23.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Oct 20 16:32:41 2012 UTC (21 months, 1 week ago) by armin76
Branch: MAIN
Changes since 1.6: +2 -2 lines
alpha/ia64/s390/sh/sparc stable wrt #432284

(Portage version: 2.1.11.16/cvs/Linux ia64)

1 # Copyright 1999-2012 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.2.23.ebuild,v 1.6 2012/10/16 08:34:05 nativemad Exp $
4
5 EAPI="4"
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 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
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 !<www-servers/apache-2.2.4"
23
24 DEPEND="${RDEPEND}
25 sys-devel/libtool"
26
27 S="${WORKDIR}/httpd-${PV}"
28
29 src_prepare() {
30 # Apply these patches:
31 # (1) apache-tools-2.2.20-Makefile.patch:
32 # - fix up the `make install' for support/
33 # - remove envvars from `make install'
34 epatch "${FILESDIR}"/${PN}-2.2.20-Makefile.patch
35 }
36
37 src_configure() {
38 local myconf=""
39
40 # Instead of filtering --as-needed (bug #128505), append --no-as-needed
41 append-ldflags $(no-as-needed)
42
43 use ssl && myconf+=" --with-ssl=/usr --enable-ssl"
44
45 # econf overwrites the stuff from config.layout, so we have to put them into
46 # our myconf line too
47 econf \
48 --sbindir=/usr/sbin \
49 --with-z=/usr \
50 --with-apr=/usr \
51 --with-apr-util=/usr \
52 --with-pcre=/usr \
53 ${myconf}
54 }
55
56 src_compile() {
57 cd support || die
58 emake
59 }
60
61 src_install () {
62 cd support || die
63
64 make DESTDIR="${D}" install
65
66 # install manpages
67 doman "${S}"/docs/man/{dbmmanage,htdigest,htpasswd,htdbm}.1 \
68 "${S}"/docs/man/{htcacheclean,rotatelogs,ab,logresolve}.8
69
70 # Providing compatiblity symlinks for #177697 (which we'll stop to install
71 # at some point).
72 pushd "${D}"/usr/sbin/ >/dev/null
73 for i in *; do
74 dosym /usr/sbin/${i} /usr/sbin/${i}2
75 done
76 popd "${D}"/usr/sbin/ >/dev/null
77
78 # Provide a symlink for ab-ssl
79 if use ssl; then
80 dosym /usr/sbin/ab /usr/sbin/ab-ssl
81 dosym /usr/sbin/ab /usr/sbin/ab2-ssl
82 fi
83
84 # make htpasswd accessible for non-root users
85 dosym /usr/sbin/htpasswd /usr/bin/htpasswd
86 dosym /usr/sbin/htdigest /usr/bin/htdigest
87
88 dodoc "${S}"/CHANGES
89 }

  ViewVC Help
Powered by ViewVC 1.1.20