| 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.16 2009/04/04 17:50:51 grobian Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.17 2009/07/05 16:05:25 hollow 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 |
| … | |
… | |
| 545 | mv -f "${D}/var/www/localhost" "${D}/usr/share/${PF}/webroot" |
545 | mv -f "${D}/var/www/localhost" "${D}/usr/share/${PF}/webroot" |
| 546 | eend $? |
546 | eend $? |
| 547 | |
547 | |
| 548 | # set some sane permissions for suexec |
548 | # set some sane permissions for suexec |
| 549 | if use suexec ; then |
549 | if use suexec ; then |
| 550 | fowners 0:apache /usr/sbin/suexec |
550 | fowners 0:${SUEXEC_CALLER:-apache} /usr/sbin/suexec |
| 551 | fperms 4710 /usr/sbin/suexec |
551 | fperms 4710 /usr/sbin/suexec |
| 552 | # provide legacy symlink for suexec, bug 177697 |
552 | # provide legacy symlink for suexec, bug 177697 |
| 553 | dosym /usr/sbin/suexec /usr/sbin/suexec2 |
553 | dosym /usr/sbin/suexec /usr/sbin/suexec2 |
| 554 | fi |
554 | fi |
| 555 | |
555 | |