/[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.4 Revision 1.6
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.4 2007/12/20 15:53:19 zmedico Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.6 2008/01/16 10:47:45 hollow Exp $
4 4
5# @ECLASS: apache-2 5# @ECLASS: apache-2
6# @MAINTAINER: apache-devs@gentoo.org 6# @MAINTAINER: apache-devs@gentoo.org
7# @BLURB: Provides a common set of functions for >=apache-2.2* ebuilds 7# @BLURB: Provides a common set of functions for >=apache-2.2* ebuilds
8# @DESCRIPTION: 8# @DESCRIPTION:
450# @FUNCTION: apache-2_src_install 450# @FUNCTION: apache-2_src_install
451# @DESCRIPTION: 451# @DESCRIPTION:
452# This function runs emake install and generates, install and adapts the gentoo 452# This function runs emake install and generates, install and adapts the gentoo
453# specific configuration files found in the tarball 453# specific configuration files found in the tarball
454apache-2_src_install() { 454apache-2_src_install() {
455 emake DESTDIR="${D}" install || die "emake install failed" 455 make DESTDIR="${D}" install || die "make install failed"
456 456
457 # install our configuration files 457 # install our configuration files
458 keepdir /etc/apache2/vhosts.d 458 keepdir /etc/apache2/vhosts.d
459 keepdir /etc/apache2/modules.d 459 keepdir /etc/apache2/modules.d
460 460
479 newinitd "${GENTOO_PATCHDIR}"/init/apache2.initd apache2 479 newinitd "${GENTOO_PATCHDIR}"/init/apache2.initd apache2
480 480
481 # link apache2ctl to the init script 481 # link apache2ctl to the init script
482 dosym /etc/init.d/apache2 /usr/sbin/apache2ctl 482 dosym /etc/init.d/apache2 /usr/sbin/apache2ctl
483 483
484 # provide symlinks for all the stuff we no longer rename, bug 177697 484 # provide legacy symlink for apxs, bug 177697
485 for i in suexec apxs; do
486 dosym /usr/sbin/${i} /usr/sbin/${i}2 485 dosym /usr/sbin/apxs /usr/sbin/apxs2
487 done
488 486
489 # install some thirdparty scripts 487 # install some thirdparty scripts
490 exeinto /usr/sbin 488 exeinto /usr/sbin
491 use ssl && doexe "${GENTOO_PATCHDIR}"/scripts/gentestcrt.sh 489 use ssl && doexe "${GENTOO_PATCHDIR}"/scripts/gentestcrt.sh
492 490
510 508
511 # set some sane permissions for suexec 509 # set some sane permissions for suexec
512 if use suexec ; then 510 if use suexec ; then
513 fowners 0:apache /usr/sbin/suexec 511 fowners 0:apache /usr/sbin/suexec
514 fperms 4710 /usr/sbin/suexec 512 fperms 4710 /usr/sbin/suexec
513 # provide legacy symlink for suexec, bug 177697
514 dosym /usr/sbin/suexec /usr/sbin/suexec2
515 fi 515 fi
516 516
517 # empty dirs 517 # empty dirs
518 for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do 518 for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do
519 keepdir ${i} 519 keepdir ${i}

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20