Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 55803 | Differences between
and this patch

Collapse All | Expand All

(-)apache-2.0.52.ebuild.org (-1 / +13 lines)
Lines 14-20 Link Here
14
LICENSE="Apache-2.0"
14
LICENSE="Apache-2.0"
15
SLOT="2"
15
SLOT="2"
16
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86"
16
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86"
17
IUSE="berkdb gdbm ldap threads ipv6 doc static ssl"
17
IUSE="berkdb gdbm ldap threads ipv6 doc static ssl apache-htdocs apache-icons apache-error apache-cgi"
18
18
19
#Standard location for Gentoo Linux
19
#Standard location for Gentoo Linux
20
DATADIR="/var/www/localhost"
20
DATADIR="/var/www/localhost"
Lines 55-60 Link Here
55
	EPATCH_SUFFIX="patch"
55
	EPATCH_SUFFIX="patch"
56
	epatch ${WORKDIR}/apache-patches-${PVR} || die
56
	epatch ${WORKDIR}/apache-patches-${PVR} || die
57
57
58
	# check for existing data directories. do not overwrite unless forced by USE-flags
59
	# first check for use flags
60
	if [ -d ${DATADIR}/htdocs ] && ! use apache-htdocs ; then DISABLE_HTDOCS=1; fi
61
	if [ -d ${DATADIR}/error ] && ! use apache-error ; then DISABLE_ERROR=1; fi
62
	if [ -d ${DATADIR}/icons ] && ! use apache-icons ; then DISABLE_ICONS=1; fi
63
	if [ -d ${DATADIR}/cgi-bin ] && ! use apache-cgi ; then DISABLE_CGI=1; fi
64
	# now disable building in makefile
65
	if [ $DISABLE_HTDOCS ]; then einfo "Disabling install of htdocs. Force with USE-flag: apache-htdocs." && sed -i 's/install-htdocs\ //' Makefile.in; fi
66
	if [ $DISABLE_ERROR ]; then einfo "Disabling install of error messages. Force with USE-flag: apache-error." && sed -i 's/install-error\ //' Makefile.in; fi
67
	if [ $DISABLE_ICONS ]; then einfo "Disabling install of icons. Force with USE-flag: apache-icons." && sed -i 's/install-icons\ //' Makefile.in; fi
68
	if [ $DISABLE_CGI ]; then einfo "Disabling install of cgi-scripts. Force with USE-flag: apache-cgi." && sed -i 's/install-cgi\ //' Makefile.in; fi
69
58
	if use berkdb; then
70
	if use berkdb; then
59
		einfo "Enabling berkdb."
71
		einfo "Enabling berkdb."
60
		if has_version '=sys-libs/db-4*'; then
72
		if has_version '=sys-libs/db-4*'; then

Return to bug 55803