/[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.29 Revision 1.30
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.29 2012/05/23 03:24:44 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.30 2013/03/08 10:26:42 hanno 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
548# This function creates test certificates if SSL is enabled and installs the 548# This function creates test certificates if SSL is enabled and installs the
549# default index.html to /var/www/localhost if it does not exist. We do this here 549# default index.html to /var/www/localhost if it does not exist. We do this here
550# because the default webroot is a copy of the files that exist elsewhere and we 550# because the default webroot is a copy of the files that exist elsewhere and we
551# don't want them to be managed/removed by portage when apache is upgraded. 551# don't want them to be managed/removed by portage when apache is upgraded.
552apache-2_pkg_postinst() { 552apache-2_pkg_postinst() {
553 # fix previously wrong set permissions Bug#398899
554 einfo "Sanitizing directory permissions ..."
555 for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do
556 chmod 0750 ${i}
557 done
558
559 if use ssl && [[ ! -e "${ROOT}/etc/ssl/apache2/server.pem" ]]; then 553 if use ssl && [[ ! -e "${ROOT}/etc/ssl/apache2/server.pem" ]]; then
560 SSL_ORGANIZATION="${SSL_ORGANIZATION:-Apache HTTP Server}" 554 SSL_ORGANIZATION="${SSL_ORGANIZATION:-Apache HTTP Server}"
561 install_cert /etc/ssl/apache2/server 555 install_cert /etc/ssl/apache2/server
562 ewarn 556 ewarn
563 ewarn "The location of SSL certificates has changed. If you are" 557 ewarn "The location of SSL certificates has changed. If you are"

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.20