| 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.5 2007/12/31 23:46:24 hollow 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: |
| … | |
… | |
| 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} |