/[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.11 Revision 1.13
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.11 2008/03/23 13:03:53 hollow Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.13 2008/10/25 14:46:00 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
371 fi 371 fi
372 372
373 elog "Please note that you need SysV IPC support in your kernel." 373 elog "Please note that you need SysV IPC support in your kernel."
374 elog "Make sure CONFIG_SYSVIPC=y is set." 374 elog "Make sure CONFIG_SYSVIPC=y is set."
375 elog 375 elog
376
377 if use userland_BSD; then
378 elog "On BSD systems you need to add the following line to /boot/loader.conf:"
379 elog " accf_http_load=\"YES\""
380 elog
381 fi
376} 382}
377 383
378# @FUNCTION: apache-2_src_unpack 384# @FUNCTION: apache-2_src_unpack
379# @DESCRIPTION: 385# @DESCRIPTION:
380# This function applies patches, configures a custom file-system layout and 386# This function applies patches, configures a custom file-system layout and
425 --libexecdir=/usr/$(get_libdir)/apache2/modules \ 431 --libexecdir=/usr/$(get_libdir)/apache2/modules \
426 --datadir=/var/www/localhost \ 432 --datadir=/var/www/localhost \
427 --sysconfdir=/etc/apache2 \ 433 --sysconfdir=/etc/apache2 \
428 --localstatedir=/var \ 434 --localstatedir=/var \
429 --with-mpm=${MY_MPM} \ 435 --with-mpm=${MY_MPM} \
430 --with-perl=/usr/bin/perl \
431 --with-apr=/usr \ 436 --with-apr=/usr \
432 --with-apr-util=/usr \ 437 --with-apr-util=/usr \
433 --with-pcre=/usr \ 438 --with-pcre=/usr \
434 --with-z=/usr \ 439 --with-z=/usr \
435 --with-port=80 \ 440 --with-port=80 \
471 "${GENTOO_PATCHDIR}"/init/apache2.confd || die "sed failed" 476 "${GENTOO_PATCHDIR}"/init/apache2.confd || die "sed failed"
472 477
473 newconfd "${GENTOO_PATCHDIR}"/init/apache2.confd apache2 478 newconfd "${GENTOO_PATCHDIR}"/init/apache2.confd apache2
474 newinitd "${GENTOO_PATCHDIR}"/init/apache2.initd apache2 479 newinitd "${GENTOO_PATCHDIR}"/init/apache2.initd apache2
475 480
476 # link apache2ctl to the init script 481 # install apache2ctl wrapper for our init script if available
482 if test -e "${GENTOO_PATCHDIR}"/scripts/apache2ctl; then
483 exeinto /usr/sbin
484 doexe "${GENTOO_PATCHDIR}"/scripts/apache2ctl
485 else
477 dosym /etc/init.d/apache2 /usr/sbin/apache2ctl 486 dosym /etc/init.d/apache2 /usr/sbin/apache2ctl
487 fi
478 488
479 # provide legacy symlink for apxs, bug 177697 489 # provide legacy symlink for apxs, bug 177697
480 dosym /usr/sbin/apxs /usr/sbin/apxs2 490 dosym /usr/sbin/apxs /usr/sbin/apxs2
481 491
482 # install some thirdparty scripts 492 # install some thirdparty scripts

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20