/[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.27 Revision 1.31
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2013 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.27 2012/03/05 08:20:52 patrick Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.31 2013/04/28 16:15:33 zmedico Exp $
4 4
5# @ECLASS: apache-2.eclass 5# @ECLASS: apache-2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# apache-devs@gentoo.org 7# apache-devs@gentoo.org
8# @BLURB: Provides a common set of functions for apache-2.x ebuilds 8# @BLURB: Provides a common set of functions for apache-2.x ebuilds
465# @FUNCTION: apache-2_src_install 465# @FUNCTION: apache-2_src_install
466# @DESCRIPTION: 466# @DESCRIPTION:
467# This function runs `emake install' and generates, installs and adapts the gentoo 467# This function runs `emake install' and generates, installs and adapts the gentoo
468# specific configuration files found in the tarball 468# specific configuration files found in the tarball
469apache-2_src_install() { 469apache-2_src_install() {
470 make DESTDIR="${D}" install || die "make install failed" 470 emake DESTDIR="${D}" MKINSTALLDIRS="mkdir -p" install || die "make install failed"
471 471
472 # install our configuration files 472 # install our configuration files
473 keepdir /etc/apache2/vhosts.d 473 keepdir /etc/apache2/vhosts.d
474 keepdir /etc/apache2/modules.d 474 keepdir /etc/apache2/modules.d
475 475
537 537
538 # empty dirs 538 # empty dirs
539 for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do 539 for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do
540 keepdir ${i} 540 keepdir ${i}
541 fowners apache:apache ${i} 541 fowners apache:apache ${i}
542 fperms 0755 ${i} 542 fperms 0750 ${i}
543 done 543 done
544} 544}
545 545
546# @FUNCTION: apache-2_pkg_postinst 546# @FUNCTION: apache-2_pkg_postinst
547# @DESCRIPTION: 547# @DESCRIPTION:
567 echo "<html><body><h1>It works!</h1></body></html>" > "${ROOT}/var/www/localhost/htdocs/index.html" 567 echo "<html><body><h1>It works!</h1></body></html>" > "${ROOT}/var/www/localhost/htdocs/index.html"
568 fi 568 fi
569 569
570 echo 570 echo
571 elog "Attention: cgi and cgid modules are now handled via APACHE2_MODULES flags" 571 elog "Attention: cgi and cgid modules are now handled via APACHE2_MODULES flags"
572 elog "in /etc/make.conf. Make sure to enable those in order to compile them." 572 elog "in make.conf. Make sure to enable those in order to compile them."
573 elog "In general, you should use 'cgid' with threaded MPMs and 'cgi' otherwise." 573 elog "In general, you should use 'cgid' with threaded MPMs and 'cgi' otherwise."
574 echo 574 echo
575 575
576} 576}
577 577

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20