| 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.19 2009/10/04 15:00:45 ssuominen Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.20 2010/03/05 09:01:07 hollow Exp $ |
| 4 | |
4 | |
| 5 | EAPI="2" |
5 | EAPI="2" |
| 6 | |
6 | |
| 7 | # @ECLASS: apache-2.eclass |
7 | # @ECLASS: apache-2.eclass |
| 8 | # @MAINTAINER: |
8 | # @MAINTAINER: |
| … | |
… | |
| 484 | keepdir /etc/apache2/modules.d |
484 | keepdir /etc/apache2/modules.d |
| 485 | |
485 | |
| 486 | generate_load_module |
486 | generate_load_module |
| 487 | insinto /etc/apache2 |
487 | insinto /etc/apache2 |
| 488 | doins -r "${GENTOO_PATCHDIR}"/conf/* |
488 | doins -r "${GENTOO_PATCHDIR}"/conf/* |
| 489 | doins docs/conf/magic |
489 | use apache2_modules_mime_magic && doins docs/conf/magic |
| 490 | |
490 | |
| 491 | insinto /etc/logrotate.d |
491 | insinto /etc/logrotate.d |
| 492 | newins "${GENTOO_PATCHDIR}"/scripts/apache2-logrotate apache2 |
492 | newins "${GENTOO_PATCHDIR}"/scripts/apache2-logrotate apache2 |
| 493 | |
493 | |
| 494 | # generate a sane default APACHE2_OPTS |
494 | # generate a sane default APACHE2_OPTS |