/[gentoo-x86]/eclass/apache-2.eclass
Gentoo

Diff of /eclass/apache-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.21 Revision 1.26
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.21 2010/07/11 08:22:40 lxnay Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.26 2011/12/27 17:55:12 fauli Exp $
4 4
5EAPI="2" 5EAPI="2"
6 6
7# @ECLASS: apache-2.eclass 7# @ECLASS: apache-2.eclass
8# @MAINTAINER: 8# @MAINTAINER:
424 mv docs/man/{httpd,apache2}.8 424 mv docs/man/{httpd,apache2}.8
425 sed -i -e 's/httpd\.8/apache2.8/g' Makefile.in 425 sed -i -e 's/httpd\.8/apache2.8/g' Makefile.in
426 426
427 # patched-in MPMs need the build environment rebuilt 427 # patched-in MPMs need the build environment rebuilt
428 sed -i -e '/sinclude/d' configure.in 428 sed -i -e '/sinclude/d' configure.in
429 AT_GNUCONF_UPDATE=yes AT_M4DIR=build eautoreconf 429 AT_M4DIR=build eautoreconf
430} 430}
431 431
432# @FUNCTION: apache-2_src_configure 432# @FUNCTION: apache-2_src_configure
433# @DESCRIPTION: 433# @DESCRIPTION:
434# This function adds compiler flags and runs econf and emake based on MY_MPM and 434# This function adds compiler flags and runs econf and emake based on MY_MPM and
486 # generate a sane default APACHE2_OPTS 486 # generate a sane default APACHE2_OPTS
487 APACHE2_OPTS="-D DEFAULT_VHOST -D INFO" 487 APACHE2_OPTS="-D DEFAULT_VHOST -D INFO"
488 use doc && APACHE2_OPTS="${APACHE2_OPTS} -D MANUAL" 488 use doc && APACHE2_OPTS="${APACHE2_OPTS} -D MANUAL"
489 use ssl && APACHE2_OPTS="${APACHE2_OPTS} -D SSL -D SSL_DEFAULT_VHOST" 489 use ssl && APACHE2_OPTS="${APACHE2_OPTS} -D SSL -D SSL_DEFAULT_VHOST"
490 use suexec && APACHE2_OPTS="${APACHE2_OPTS} -D SUEXEC" 490 use suexec && APACHE2_OPTS="${APACHE2_OPTS} -D SUEXEC"
491 if hasq negotiation ${APACHE2_MODULES} && use apache2_modules_negotiation; then 491 if has negotiation ${APACHE2_MODULES} && use apache2_modules_negotiation; then
492 APACHE2_OPTS="${APACHE2_OPTS} -D LANGUAGE" 492 APACHE2_OPTS="${APACHE2_OPTS} -D LANGUAGE"
493 fi 493 fi
494 494
495 sed -i -e "s:APACHE2_OPTS=\".*\":APACHE2_OPTS=\"${APACHE2_OPTS}\":" \ 495 sed -i -e "s:APACHE2_OPTS=\".*\":APACHE2_OPTS=\"${APACHE2_OPTS}\":" \
496 "${GENTOO_PATCHDIR}"/init/apache2.confd || die "sed failed" 496 "${GENTOO_PATCHDIR}"/init/apache2.confd || die "sed failed"
569 echo "<html><body><h1>It works!</h1></body></html>" > "${ROOT}/var/www/localhost/htdocs/index.html" 569 echo "<html><body><h1>It works!</h1></body></html>" > "${ROOT}/var/www/localhost/htdocs/index.html"
570 fi 570 fi
571 571
572 echo 572 echo
573 elog "Attention: cgi and cgid modules are now handled via APACHE2_MODULES flags" 573 elog "Attention: cgi and cgid modules are now handled via APACHE2_MODULES flags"
574 elog "make sure to enable those in order to compile them. In general, you should" 574 elog "in /etc/make.conf. Make sure to enable those in order to compile them."
575 elog "use 'cgi' with non-multithreaded MPMs (such as prefork) and 'cgid' with" 575 elog "In general, you should use 'cgid' with threaded MPMs and 'cgi' otherwise."
576 elog "multithreaded ones (such as worker)"
577 echo 576 echo
578 577
579} 578}
580 579
581EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_install pkg_postinst 580EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_install pkg_postinst

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20