diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2008-01-28 23:11:11 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2008-01-28 23:11:11 +0000 |
commit | 31d123a7ba50791e241e34f7e00d324daf626375 (patch) | |
tree | 959d425a453229ef44dcdcfb742b6f43a031d127 /www-servers | |
parent | Marked stable on amd64 as per bug 207634. (diff) | |
download | gentoo-2-31d123a7ba50791e241e34f7e00d324daf626375.tar.gz gentoo-2-31d123a7ba50791e241e34f7e00d324daf626375.tar.bz2 gentoo-2-31d123a7ba50791e241e34f7e00d324daf626375.zip |
remove apache-2.0 wrt #203578
(Portage version: 2.1.4)
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/apache/ChangeLog | 6 | ||||
-rw-r--r-- | www-servers/apache/apache-2.0.58-r2.ebuild | 454 | ||||
-rw-r--r-- | www-servers/apache/apache-2.0.59-r5.ebuild | 462 | ||||
-rw-r--r-- | www-servers/apache/apache-2.0.61.ebuild | 461 | ||||
-rw-r--r-- | www-servers/apache/files/digest-apache-2.0.58-r2 | 6 | ||||
-rw-r--r-- | www-servers/apache/files/digest-apache-2.0.59-r5 | 6 | ||||
-rw-r--r-- | www-servers/apache/files/digest-apache-2.0.61 | 6 |
7 files changed, 5 insertions, 1396 deletions
diff --git a/www-servers/apache/ChangeLog b/www-servers/apache/ChangeLog index b99660d20e00..351cabb3b4b9 100644 --- a/www-servers/apache/ChangeLog +++ b/www-servers/apache/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for www-servers/apache # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v 1.54 2008/01/19 10:56:36 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v 1.55 2008/01/28 23:11:11 hollow Exp $ + + 28 Jan 2008; Benedikt Böhm <hollow@gentoo.org> -apache-2.0.58-r2.ebuild, + -apache-2.0.59-r5.ebuild, -apache-2.0.61.ebuild: + remove apache-2.0 wrt #203578 *apache-2.2.8 (19 Jan 2008) diff --git a/www-servers/apache/apache-2.0.58-r2.ebuild b/www-servers/apache/apache-2.0.58-r2.ebuild deleted file mode 100644 index 8a15a66b4fa1..000000000000 --- a/www-servers/apache/apache-2.0.58-r2.ebuild +++ /dev/null @@ -1,454 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.0.58-r2.ebuild,v 1.3 2007/09/16 11:07:34 hollow Exp $ - -inherit eutils flag-o-matic gnuconfig multilib - -# latest gentoo apache files -GENTOO_PATCHNAME="gentoo-apache-${PVR}" -GENTOO_PATCHSTAMP="20060726" -GENTOO_DEVSPACE="vericgar" -GENTOO_PATCHDIR="${WORKDIR}/${GENTOO_PATCHNAME}" - -DESCRIPTION="The Apache Web Server" -HOMEPAGE="http://httpd.apache.org/" -SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2 - http://dev.gentoo.org/~${GENTOO_DEVSPACE}/dist/apache/${GENTOO_PATCHNAME}-${GENTOO_PATCHSTAMP}.tar.bz2" - -LICENSE="Apache-2.0" -SLOT="2" -KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" -IUSE="apache2 debug doc ldap mpm-itk mpm-leader mpm-peruser mpm-prefork mpm-threadpool mpm-worker ssl static-modules threads selinux" - -RDEPEND="dev-lang/perl - =dev-libs/apr-0* - =dev-libs/apr-util-0* - dev-libs/expat - app-misc/mime-types - sys-libs/zlib - mpm-itk? ( sys-libs/libcap ) - ssl? ( dev-libs/openssl ) - selinux? ( sec-policy/selinux-apache ) - !mips? ( ldap? ( =net-nds/openldap-2* ) )" -DEPEND="${RDEPEND} - >=sys-devel/autoconf-2.59-r4" - -S="${WORKDIR}/httpd-${PV}" - -big_fat_warnings() { - - if use ldap && ! built_with_use 'dev-libs/apr-util' ldap; then - eerror "dev-libs/apr-util is missing LDAP support. For apache to have" - eerror "ldap support, apr-util must be built with the ldap USE-flag" - eerror "enabled." - die "ldap USE-flag enabled while not supported in apr-util" - fi - - if use mpm-peruser || use mpm-itk; then - ewarn "-BIG- -FAT- -WARNING-" - ewarn - ewarn "The peruser (USE=mpm-peruser) and itk (USE=mpm-itk) MPMs are considered" - ewarn "highly experimental and are not (yet) supported, nor are they recommended" - ewarn "for production use. You have been warned!" - ewarn - ewarn "Continuing in 5 seconds ..." - sleep 5 - fi - -} - -pkg_setup() { - big_fat_warnings - select_mpms - - # setup apache user and group - enewgroup apache 81 - enewuser apache 81 -1 /var/www apache - -} - -src_unpack() { - unpack ${A} || die - cd ${S} || die - - # Use correct multilib libdir in gentoo patches - sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" \ - ${GENTOO_PATCHDIR}/{conf/httpd.conf,init/*,patches/config.layout} \ - || die "sed failed" - - EPATCH_SUFFIX="patch" - epatch ${GENTOO_PATCHDIR}/patches/[0-9]* || die "internal ebuild error" - - # avoid utf-8 charset problems - export LC_CTYPE=C - - # setup the filesystem layout config - cat ${GENTOO_PATCHDIR}/patches/config.layout >> config.layout - sed -i -e 's:version:${PF}:g' config.layout - - # peruser need to build conf - WANT_AUTOCONF=2.5 ./buildconf || die "buildconf failed" -} - -src_compile() { - - # bug 128505 - filter-ldflags -Wl,--as-needed --as-needed - - # actually we do not provide a very dynamic way of those vars - # however, you may predefine them in shell before emerging - # to override the official default locations - - # standard location for Gentoo Linux - USERDIR="${USERDIR:-public_html}" - - einfo "USERDIR is set to: ${USERDIR}" - - select_mpms - - # Detect mips and uclibc systems properly - gnuconfig_update - - local modtype - if useq static-modules; then - modtype="static" - else - modtype="shared" - fi - - select_modules_config || die "determining modules" - - local myconf - useq ldap && myconf="${myconf} --enable-auth-ldap=${modtype} --enable-ldap=${modtype}" - useq ssl && myconf="${myconf} --with-ssl=/usr --enable-ssl=${modtype}" - useq ssl || myconf="${myconf} --disable-ssl" - - # Fix for bug #24215 - robbat2@gentoo.org, 30 Oct 2003 - # We pre-load the cache with the correct answer! This avoids - # it violating the sandbox. This may have to be changed for - # non-Linux systems or if sem_open changes on Linux. This - # hack is built around documentation in /usr/include/semaphore.h - # and the glibc (pthread) source - echo 'ac_cv_func_sem_open=${ac_cv_func_sem_open=no}' >> ${S}/config.cache - -# no more USE=no-suexec because of bug 148082 -# see the 2.2 ebuilds for how this can be done cleanly with a working system -# "out of the box" -# if useq no-suexec; then -# myconf="${myconf} --disable-suexec" -# else - myconf="${myconf} - --with-suexec-safepath="/usr/local/bin:/usr/bin:/bin" \ - --with-suexec-logfile=/var/log/apache2/suexec_log \ - --with-suexec-bin=/usr/sbin/suexec2 \ - --with-suexec-userdir=${USERDIR} \ - --with-suexec-caller=apache \ - --with-suexec-docroot=/var/www \ - --with-suexec-uidmin=1000 \ - --with-suexec-gidmin=100 \ - --with-suexec-umask=077 \ - --enable-suexec=shared" -# fi - - # common confopts - myconf="${myconf} \ - --with-apr=/usr \ - --with-apr-util=/usr \ - --cache-file=${S}/config.cache \ - --with-perl=/usr/bin/perl \ - --with-expat=/usr \ - --with-z=/usr \ - --with-port=80 \ - --enable-layout=Gentoo \ - --with-program-name=apache2 \ - --with-devrandom=/dev/urandom \ - --host=${CHOST} ${MY_BUILTINS}" - - # debugging support - if useq debug ; then - myconf="${myconf} --enable-maintainer-mode" - fi - - ./configure --with-mpm=${mpm} ${myconf} ${EXTRA_ECONF} || die "bad ./configure please submit bug report to bugs.gentoo.org. Include your config.layout and config.log" - - # we don't want to try and recompile the ssl_expr_parse.c file, because - # the lex source is broken - touch modules/ssl/ssl_expr_scan.c - - # as decided on IRC-AGENDA-10.2004, we use httpd.conf as standard config file name - sed -i -e 's:apache2\.conf:httpd.conf:' include/ap_config_auto.h - - emake || die "problem compiling apache2" - - # build ssl version of apache bench (ab-ssl) - if useq ssl; then - cd support - rm -f ab .libs/ab ab.lo ab.o - make ab CFLAGS="${CFLAGS} -DUSE_SSL -lcrypto -lssl -I/usr/include/openssl -L/usr/$(get_libdir)" || die - mv ab ab-ssl - rm -f ab.lo ab.o - make ab || die - fi -} - -src_install () { - # general install - make DESTDIR=${D} install || die - dodoc ABOUT_APACHE CHANGES INSTALL LAYOUT LICENSE README* ${GENTOO_PATCHDIR}/docs/robots.txt - - # protect the suexec binary -# if ! useq no-suexec; then - fowners root:apache /usr/sbin/suexec - fperms 4710 /usr/sbin/suexec -# fi - - # apxs needs this to pickup the right lib for install - dosym /usr/$(get_libdir) /usr/$(get_libdir)/apache2/lib - dosym /var/log/apache2 /usr/$(get_libdir)/apache2/logs - dosym /etc/apache2 /usr/$(get_libdir)/apache2/conf - - # Credits to advx.org people for these scripts. Heck, thanks for - # the nice layout and everything else ;-) - exeinto /usr/sbin - for i in apache2logserverstatus apache2splitlogfile; do - doexe ${GENTOO_PATCHDIR}/scripts/${i} - done - # gentestcrt.sh only if USE=ssl - useq ssl && doexe ${GENTOO_PATCHDIR}/scripts/gentestcrt.sh - - # some more scripts - for i in split-logfile list_hooks.pl logresolve.pl log_server_status; do - doexe ${S}/support/${i} - done - - # the ssl version of apache bench - useq ssl && doexe support/ab-ssl - - # install mpm bins - doexe ${S}/apache2 - - # modules.d config file snippets - insinto /etc/apache2/modules.d - doins ${GENTOO_PATCHDIR}/conf/modules.d/45_mod_dav.conf - useq ldap && doins ${GENTOO_PATCHDIR}/conf/modules.d/46_mod_ldap.conf - if useq ssl; then - doins ${GENTOO_PATCHDIR}/conf/modules.d/40_mod_ssl.conf - doins ${GENTOO_PATCHDIR}/conf/modules.d/41_mod_ssl.default-vhost.conf - fi - - # drop in a convenient link to the manual - if useq doc; then - insinto /etc/apache2/modules.d - doins ${GENTOO_PATCHDIR}/conf/modules.d/00_apache_manual.conf - sed -i -e "s:2.0.49:${PVR}:" ${D}/etc/apache2/modules.d/00_apache_manual.conf - else - rm -rf ${D}/usr/share/doc/${PF}/manual - fi - - # SLOT=2 - cd ${D} - for i in htdigest htpasswd logresolve apxs ab rotatelogs dbmmanage checkgid split-logfile; do - mv -v usr/sbin/${i} usr/sbin/${i}2 - done - mv -v usr/sbin/apachectl usr/sbin/apache2ctl - mv -v usr/sbin/list_hooks.pl usr/sbin/list_hooks2.pl - mv -v usr/sbin/logresolve.pl usr/sbin/logresolve2.pl - useq ssl && mv -v usr/sbin/ab-ssl usr/sbin/ab2-ssl -# useq no-suexec || - mv -v usr/sbin/suexec usr/sbin/suexec2 - - # do the man pages - for i in htdigest.1 htpasswd.1 dbmmanage.1; do - mv -v usr/share/man/man1/${i} usr/share/man/man1/${i/./2.} - done - for i in ab.8 apxs.8 logresolve.8 rotatelogs.8; do - mv -v usr/share/man/man8/${i} usr/share/man/man8/${i/./2.} - done - #useq no-suexec || - mv -v usr/share/man/man8/suexec.8 usr/share/man/man8/suexec2.8 - - mv -v usr/share/man/man8/apachectl.8 usr/share/man/man8/apache2ctl.8 - mv -v usr/share/man/man8/httpd.8 usr/share/man/man8/apache2.8 - - # tidy up - mv usr/sbin/envvars* usr/$(get_libdir)/apache2/build - dodoc etc/apache2/*-std.conf - rm -f etc/apache2/*.conf - rm -f etc/apache2/mime.types - rm -rf var/run var/log - - # the default webroot gets stored in /usr/share/doc - einfo "Installing default webroot to /usr/share/doc/${PF}" - mv ${D}/var/www/localhost ${D}/usr/share/doc/${PF}/webroot - - # config files - newconfd ${GENTOO_PATCHDIR}/init/apache2.confd apache2 - newinitd ${GENTOO_PATCHDIR}/init/apache2.initd apache2 - - insinto /etc/logrotate.d - newins ${GENTOO_PATCHDIR}/scripts/apache2-logrotate apache2 - - insinto /etc/apache2 - doins ${GENTOO_PATCHDIR}/conf/apache2-builtin-mods - doins ${GENTOO_PATCHDIR}/conf/httpd.conf - - insinto /etc/apache2/vhosts.d - doins ${GENTOO_PATCHDIR}/conf/vhosts.d/00_default_vhost.conf - - keepdir /etc/apache2/vhosts.d - keepdir /etc/apache2/modules.d - - # fix bug 92348 - fperms 755 /usr/sbin/apache2logserverstatus - fperms 755 /usr/sbin/apache2splitlogfile - - # empty dirs - for i in /var/lib/dav /var/log/apache2 /var/cache/apache2; do - keepdir ${i} - fowners apache:apache ${i} - fperms 755 ${i} - done - - # We'll be needing /etc/apache2/ssl if USE=ssl - useq ssl && keepdir /etc/apache2/ssl - -} - -pkg_postinst() { - # Automatically generate test ceritificates if ssl USE flag is being set - if use ssl && [[ ! -e ${ROOT}/etc/apache2/ssl/server.crt ]]; then - cd ${ROOT}/etc/apache2/ssl - einfo - einfo "Generating self-signed test certificate in /etc/apache2/ssl..." - yes "" 2>/dev/null | \ - ${ROOT}/usr/sbin/gentestcrt.sh >/dev/null 2>&1 || \ - die "gentestcrt.sh failed" - einfo - fi - - # we do this here because the default webroot is a copy of the files - # that exist elsewhere and we don't want them managed/removed by portage - # when apache is upgraded. - if [ -e "${ROOT}/var/www/localhost" ]; then - einfo "The default webroot has not been installed into" - einfo "${ROOT}/var/www/localhost because the directory already exists" - einfo "and we do not want to overwrite any files you have put there." - einfo - einfo "If you would like to install the latest webroot, please run" - einfo "emerge --config =${PF}" - else - einfo "Installing default webroot to ${ROOT}/var/www/localhost" - mkdir -p ${ROOT}/var/www/localhost - cp -r ${ROOT}/usr/share/doc/${PF}/webroot/* ${ROOT}/var/www/localhost - chown -R apache: ${ROOT}/var/www/localhost - fi - - # Check for dual/upgrade install - if has_version '=www-servers/apache-1*' || ! use apache2 ; then - ewarn - ewarn "Please add the 'apache2' flag to your USE variable and (re)install" - ewarn "any additional DSO modules you may wish to use with Apache-2.x." - ewarn "Addon modules are configured in /etc/apache2/modules.d/" - ewarn - fi - - # Check for obsolete symlinks - local list="" - for i in lib logs modules extramodules; do - local d="/etc/apache2/${i}" - [ -s "${d}" ] && list="${list} ${d}" - done - [ -n "${list}" ] && einfo "You should delete these old symlinks: ${list}" - - if has_version '<www-servers/apache-2.0.54-r30' && has_version '>=www-servers/apache-2.0.0' ; then - einfo "Configuration locations have changed, you will need to migrate" - einfo "your configuration from /etc/apache2/conf/apache2.conf and" - einfo "/etc/apache2/conf/commonapache2.conf to /etc/apache2/httpd.conf." - einfo - einfo "Apache now checks for the old configuration and refuses to start" - einfo "if it exists. You must remove the old configuration first" - einfo - einfo "You should also at this time rebuild all your modules" - einfo - einfo "For more information, see" - einfo " http://www.gentoo.org/doc/en/apache-upgrading.xml" - einfo - fi - - big_fat_warnings -} - -pkg_config() { - - einfo "Installing default webroot to ${ROOT}/var/www/localhost" - mkdir -p ${ROOT}/var/www/localhost - cp -r ${ROOT}/usr/share/doc/${PF}/webroot/* ${ROOT}/var/www/localhost - chown -R apache: ${ROOT}/var/www/localhost - -} - -mpm_die() { - eerror "You attempted to specify the MPM $1, but MPM $2 was already specified." - eerror "The apache ebuilds no longer support multiple MPM installations. Please choose" - eerror "one MPM and reinstall." - die "More than one MPM was specified." -} - -select_mpms() { - - mpm="" - - for trympm in prefork worker peruser threadpool leader itk; do - if useq mpm-${trympm}; then - if [ "x${mpm}" = "x" ]; then - mpm=${trympm} - else - mpm_die ${trympm} ${mpm} - fi - fi - done - - if [ "x${mpm}" = "x" ]; then - if useq threads; then - einfo "Threads specified without a mpm-specification, using mpm-worker." - mpm="worker" - else - einfo "No MPM style was specified, defaulting to mpm-prefork." - mpm="prefork" - fi - fi - -} - -parse_modules_config() { - local name="" - local disable="" - [ -f ${1} ] || return 1 - - for i in `cat $1 | sed "s/^#.*//"`; do - if [ $i == "-" ]; then - disable="true" - elif [ -z "$name" ] && [ ! -z "`echo $i | grep "mod_"`" ]; then - name=`echo $i | sed "s/mod_//"` - elif [ "$disable" ] && ( [ $i == "static" ] || [ $i == "shared" ] ); then - MY_BUILTINS="${MY_BUILTINS} --disable-$name" - name="" ; disable="" - elif [ $i == "static" ] || useq static-modules; then - MY_BUILTINS="${MY_BUILTINS} --enable-$name=yes" - name="" ; disable="" - elif [ $i == "shared" ]; then - MY_BUILTINS="${MY_BUILTINS} --enable-$name=shared" - name="" ; disable="" - fi - done - - einfo "${1} options:\n${MY_BUILTINS}" -} - -select_modules_config() { - parse_modules_config /etc/apache2/apache2-builtin-mods || \ - parse_modules_config ${GENTOO_PATCHDIR}/conf/apache2-builtin-mods || \ - return 1 -} - -# vim:ts=4 diff --git a/www-servers/apache/apache-2.0.59-r5.ebuild b/www-servers/apache/apache-2.0.59-r5.ebuild deleted file mode 100644 index f25589d96499..000000000000 --- a/www-servers/apache/apache-2.0.59-r5.ebuild +++ /dev/null @@ -1,462 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.0.59-r5.ebuild,v 1.11 2008/01/10 08:59:20 vapier Exp $ - -inherit eutils flag-o-matic gnuconfig multilib - -# latest gentoo apache files -GENTOO_PATCHNAME="gentoo-apache-${PVR}" -GENTOO_PATCHSTAMP="20070828" -GENTOO_DEVSPACE="hollow" -GENTOO_PATCHDIR="${WORKDIR}/${GENTOO_PATCHNAME}" - -DESCRIPTION="The Apache Web Server" -HOMEPAGE="http://httpd.apache.org/" -SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2 - http://dev.gentoo.org/~${GENTOO_DEVSPACE}/dist/apache/${GENTOO_PATCHNAME}-${GENTOO_PATCHSTAMP}.tar.bz2" - -LICENSE="Apache-2.0" -SLOT="2" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" -IUSE="apache2 debug doc ldap mpm-itk mpm-leader mpm-peruser mpm-prefork mpm-threadpool mpm-worker ssl static-modules threads selinux" - -RDEPEND="dev-lang/perl - =dev-libs/apr-0* - =dev-libs/apr-util-0* - dev-libs/expat - app-misc/mime-types - sys-libs/zlib - mpm-itk? ( sys-libs/libcap ) - ssl? ( dev-libs/openssl ) - selinux? ( sec-policy/selinux-apache ) - !mips? ( ldap? ( =net-nds/openldap-2* ) )" -DEPEND="${RDEPEND} - >=sys-devel/autoconf-2.59-r4" - -S="${WORKDIR}/httpd-${PV}" - -big_fat_warnings() { - - if use ldap && ! built_with_use '=dev-libs/apr-util-0*' ldap; then - eerror "dev-libs/apr-util is missing LDAP support. For apache to have" - eerror "ldap support, apr-util must be built with the ldap USE-flag" - eerror "enabled." - die "ldap USE-flag enabled while not supported in apr-util" - fi - - if use mpm-peruser || use mpm-itk; then - ewarn "-BIG- -FAT- -WARNING-" - ewarn - ewarn "The peruser (USE=mpm-peruser) and itk (USE=mpm-itk) MPMs are considered" - ewarn "highly experimental and are not (yet) supported, nor are they recommended" - ewarn "for production use. You have been warned!" - ewarn - ewarn "Continuing in 5 seconds ..." - sleep 5 - fi - -} - -pkg_setup() { - big_fat_warnings - select_mpms - - # setup apache user and group - enewgroup apache 81 - enewuser apache 81 -1 /var/www apache - -} - -src_unpack() { - unpack ${A} || die - cd ${S} || die - - # Use correct multilib libdir in gentoo patches - sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" \ - ${GENTOO_PATCHDIR}/{conf/httpd.conf,init/*,patches/config.layout} \ - || die "sed failed" - - EPATCH_SUFFIX="patch" - EPATCH_EXCLUDE="03_all_gentoo-apache-tools.patch" - epatch ${GENTOO_PATCHDIR}/patches/[0-8]* || die "internal ebuild error" - - # security patches are version based - # 99_all_${PV}_Name.patch - if $(ls ${GENTOO_PATCHDIR}/patches/9?_*_${PV}_* &>/dev/null); then - epatch ${GENTOO_PATCHDIR}/patches/9?_*_${PV}_* || \ - die "Patching for version ${PV} failed" - fi - - # avoid utf-8 charset problems - export LC_CTYPE=C - - # setup the filesystem layout config - cat ${GENTOO_PATCHDIR}/patches/config.layout >> config.layout - sed -i -e 's:version:${PF}:g' config.layout - - # peruser need to build conf - WANT_AUTOCONF=2.5 ./buildconf || die "buildconf failed" -} - -src_compile() { - - # bug 128505 - filter-ldflags -Wl,--as-needed --as-needed - - # actually we do not provide a very dynamic way of those vars - # however, you may predefine them in shell before emerging - # to override the official default locations - - # standard location for Gentoo Linux - USERDIR="${USERDIR:-public_html}" - - einfo "USERDIR is set to: ${USERDIR}" - - select_mpms - - # Detect mips and uclibc systems properly - gnuconfig_update - - local modtype - if useq static-modules; then - modtype="static" - else - modtype="shared" - fi - - select_modules_config || die "determining modules" - - local myconf - useq ldap && myconf="${myconf} --enable-auth-ldap=${modtype} --enable-ldap=${modtype}" - useq ssl && myconf="${myconf} --with-ssl=/usr --enable-ssl=${modtype}" - useq ssl || myconf="${myconf} --disable-ssl" - - # Fix for bug #24215 - robbat2@gentoo.org, 30 Oct 2003 - # We pre-load the cache with the correct answer! This avoids - # it violating the sandbox. This may have to be changed for - # non-Linux systems or if sem_open changes on Linux. This - # hack is built around documentation in /usr/include/semaphore.h - # and the glibc (pthread) source - echo 'ac_cv_func_sem_open=${ac_cv_func_sem_open=no}' >> ${S}/config.cache - -# no more USE=no-suexec because of bug 148082 -# see the 2.2 ebuilds for how this can be done cleanly with a working system -# "out of the box" -# if useq no-suexec; then -# myconf="${myconf} --disable-suexec" -# else - myconf="${myconf} - --with-suexec-safepath="/usr/local/bin:/usr/bin:/bin" \ - --with-suexec-logfile=/var/log/apache2/suexec_log \ - --with-suexec-bin=/usr/sbin/suexec2 \ - --with-suexec-userdir=${USERDIR} \ - --with-suexec-caller=apache \ - --with-suexec-docroot=/var/www \ - --with-suexec-uidmin=1000 \ - --with-suexec-gidmin=100 \ - --with-suexec-umask=077 \ - --enable-suexec=shared" -# fi - - # common confopts - myconf="${myconf} \ - --with-apr=/usr \ - --with-apr-util=/usr \ - --cache-file=${S}/config.cache \ - --with-perl=/usr/bin/perl \ - --with-expat=/usr \ - --with-z=/usr \ - --with-port=80 \ - --enable-layout=Gentoo \ - --with-program-name=apache2 \ - --with-devrandom=/dev/urandom \ - --host=${CHOST} ${MY_BUILTINS}" - - # debugging support - if useq debug ; then - myconf="${myconf} --enable-maintainer-mode" - fi - - ./configure --with-mpm=${mpm} ${myconf} ${EXTRA_ECONF} || die "bad ./configure please submit bug report to bugs.gentoo.org. Include your config.layout and config.log" - - # we don't want to try and recompile the ssl_expr_parse.c file, because - # the lex source is broken - touch modules/ssl/ssl_expr_scan.c - - # as decided on IRC-AGENDA-10.2004, we use httpd.conf as standard config file name - sed -i -e 's:apache2\.conf:httpd.conf:' include/ap_config_auto.h - - emake || die "problem compiling apache2" - - # build ssl version of apache bench (ab-ssl) - if useq ssl; then - cd support - rm -f ab .libs/ab ab.lo ab.o - make ab CFLAGS="${CFLAGS} -DUSE_SSL -lcrypto -lssl -I/usr/include/openssl -L/usr/$(get_libdir)" || die - mv ab ab-ssl - rm -f ab.lo ab.o - make ab || die - fi -} - -src_install () { - # general install - make DESTDIR=${D} install || die - dodoc ABOUT_APACHE CHANGES INSTALL LAYOUT LICENSE README* ${GENTOO_PATCHDIR}/docs/robots.txt - - # protect the suexec binary -# if ! useq no-suexec; then - fowners root:apache /usr/sbin/suexec - fperms 4710 /usr/sbin/suexec -# fi - - # apxs needs this to pickup the right lib for install - dosym /usr/$(get_libdir) /usr/$(get_libdir)/apache2/lib - dosym /var/log/apache2 /usr/$(get_libdir)/apache2/logs - dosym /etc/apache2 /usr/$(get_libdir)/apache2/conf - - # Credits to advx.org people for these scripts. Heck, thanks for - # the nice layout and everything else ;-) - exeinto /usr/sbin - for i in apache2logserverstatus apache2splitlogfile; do - doexe ${GENTOO_PATCHDIR}/scripts/${i} - done - # gentestcrt.sh only if USE=ssl - useq ssl && doexe ${GENTOO_PATCHDIR}/scripts/gentestcrt.sh - - # some more scripts - for i in split-logfile list_hooks.pl logresolve.pl log_server_status; do - doexe ${S}/support/${i} - done - - # the ssl version of apache bench - useq ssl && doexe support/ab-ssl - - # install mpm bins - doexe ${S}/apache2 - - # modules.d config file snippets - insinto /etc/apache2/modules.d - doins ${GENTOO_PATCHDIR}/conf/modules.d/45_mod_dav.conf - useq ldap && doins ${GENTOO_PATCHDIR}/conf/modules.d/46_mod_ldap.conf - if useq ssl; then - doins ${GENTOO_PATCHDIR}/conf/modules.d/40_mod_ssl.conf - doins ${GENTOO_PATCHDIR}/conf/modules.d/41_mod_ssl.default-vhost.conf - fi - - # drop in a convenient link to the manual - if useq doc; then - insinto /etc/apache2/modules.d - doins ${GENTOO_PATCHDIR}/conf/modules.d/00_apache_manual.conf - sed -i -e "s:2.0.49:${PVR}:" ${D}/etc/apache2/modules.d/00_apache_manual.conf - else - rm -rf ${D}/usr/share/doc/${PF}/manual - fi - - # SLOT=2 - cd ${D} - for i in htdigest htpasswd logresolve apxs ab rotatelogs dbmmanage checkgid split-logfile; do - mv -v usr/sbin/${i} usr/sbin/${i}2 - done - mv -v usr/sbin/apachectl usr/sbin/apache2ctl - mv -v usr/sbin/list_hooks.pl usr/sbin/list_hooks2.pl - mv -v usr/sbin/logresolve.pl usr/sbin/logresolve2.pl - useq ssl && mv -v usr/sbin/ab-ssl usr/sbin/ab2-ssl -# useq no-suexec || - mv -v usr/sbin/suexec usr/sbin/suexec2 - - # do the man pages - for i in htdigest.1 htpasswd.1 dbmmanage.1; do - mv -v usr/share/man/man1/${i} usr/share/man/man1/${i/./2.} - done - for i in ab.8 apxs.8 logresolve.8 rotatelogs.8; do - mv -v usr/share/man/man8/${i} usr/share/man/man8/${i/./2.} - done - #useq no-suexec || - mv -v usr/share/man/man8/suexec.8 usr/share/man/man8/suexec2.8 - - mv -v usr/share/man/man8/apachectl.8 usr/share/man/man8/apache2ctl.8 - mv -v usr/share/man/man8/httpd.8 usr/share/man/man8/apache2.8 - - # tidy up - mv usr/sbin/envvars* usr/$(get_libdir)/apache2/build - dodoc etc/apache2/*-std.conf - rm -f etc/apache2/*.conf - rm -f etc/apache2/mime.types - rm -rf var/run var/log - - # the default webroot gets stored in /usr/share/doc - einfo "Installing default webroot to /usr/share/doc/${PF}" - mv ${D}/var/www/localhost ${D}/usr/share/doc/${PF}/webroot - - # config files - newconfd ${GENTOO_PATCHDIR}/init/apache2.confd apache2 - newinitd ${GENTOO_PATCHDIR}/init/apache2.initd apache2 - - insinto /etc/logrotate.d - newins ${GENTOO_PATCHDIR}/scripts/apache2-logrotate apache2 - - insinto /etc/apache2 - doins ${GENTOO_PATCHDIR}/conf/apache2-builtin-mods - doins ${GENTOO_PATCHDIR}/conf/httpd.conf - - insinto /etc/apache2/vhosts.d - doins ${GENTOO_PATCHDIR}/conf/vhosts.d/00_default_vhost.conf - - keepdir /etc/apache2/vhosts.d - keepdir /etc/apache2/modules.d - - # fix bug 92348 - fperms 755 /usr/sbin/apache2logserverstatus - fperms 755 /usr/sbin/apache2splitlogfile - - # empty dirs - for i in /var/lib/dav /var/log/apache2 /var/cache/apache2; do - keepdir ${i} - fowners apache:apache ${i} - fperms 755 ${i} - done - - # We'll be needing /etc/apache2/ssl if USE=ssl - useq ssl && keepdir /etc/apache2/ssl - -} - -pkg_postinst() { - # Automatically generate test ceritificates if ssl USE flag is being set - if use ssl && [[ ! -e ${ROOT}/etc/apache2/ssl/server.crt ]]; then - cd ${ROOT}/etc/apache2/ssl - einfo - einfo "Generating self-signed test certificate in /etc/apache2/ssl..." - yes "" 2>/dev/null | \ - ${ROOT}/usr/sbin/gentestcrt.sh >/dev/null 2>&1 || \ - die "gentestcrt.sh failed" - einfo - fi - - # we do this here because the default webroot is a copy of the files - # that exist elsewhere and we don't want them managed/removed by portage - # when apache is upgraded. - if [ -e "${ROOT}/var/www/localhost" ]; then - einfo "The default webroot has not been installed into" - einfo "${ROOT}/var/www/localhost because the directory already exists" - einfo "and we do not want to overwrite any files you have put there." - einfo - einfo "If you would like to install the latest webroot, please run" - einfo "emerge --config =${PF}" - else - einfo "Installing default webroot to ${ROOT}/var/www/localhost" - mkdir -p ${ROOT}/var/www/localhost - cp -r ${ROOT}/usr/share/doc/${PF}/webroot/* ${ROOT}/var/www/localhost - chown -R apache: ${ROOT}/var/www/localhost - fi - - # Check for dual/upgrade install - if has_version '=www-servers/apache-1*' || ! use apache2 ; then - ewarn - ewarn "Please add the 'apache2' flag to your USE variable and (re)install" - ewarn "any additional DSO modules you may wish to use with Apache-2.x." - ewarn "Addon modules are configured in /etc/apache2/modules.d/" - ewarn - fi - - # Check for obsolete symlinks - local list="" - for i in lib logs modules extramodules; do - local d="/etc/apache2/${i}" - [ -s "${d}" ] && list="${list} ${d}" - done - [ -n "${list}" ] && einfo "You should delete these old symlinks: ${list}" - - if has_version '<www-servers/apache-2.0.54-r30' && has_version '>=www-servers/apache-2.0.0' ; then - einfo "Configuration locations have changed, you will need to migrate" - einfo "your configuration from /etc/apache2/conf/apache2.conf and" - einfo "/etc/apache2/conf/commonapache2.conf to /etc/apache2/httpd.conf." - einfo - einfo "Apache now checks for the old configuration and refuses to start" - einfo "if it exists. You must remove the old configuration first" - einfo - einfo "You should also at this time rebuild all your modules" - einfo - einfo "For more information, see" - einfo " http://www.gentoo.org/doc/en/apache-upgrading.xml" - einfo - fi - - big_fat_warnings -} - -pkg_config() { - - einfo "Installing default webroot to ${ROOT}/var/www/localhost" - mkdir -p ${ROOT}/var/www/localhost - cp -r ${ROOT}/usr/share/doc/${PF}/webroot/* ${ROOT}/var/www/localhost - chown -R apache: ${ROOT}/var/www/localhost - -} - -mpm_die() { - eerror "You attempted to specify the MPM $1, but MPM $2 was already specified." - eerror "The apache ebuilds no longer support multiple MPM installations. Please choose" - eerror "one MPM and reinstall." - die "More than one MPM was specified." -} - -select_mpms() { - - mpm="" - - for trympm in prefork worker peruser threadpool leader itk; do - if useq mpm-${trympm}; then - if [ "x${mpm}" = "x" ]; then - mpm=${trympm} - else - mpm_die ${trympm} ${mpm} - fi - fi - done - - if [ "x${mpm}" = "x" ]; then - if useq threads; then - einfo "Threads specified without a mpm-specification, using mpm-worker." - mpm="worker" - else - einfo "No MPM style was specified, defaulting to mpm-prefork." - mpm="prefork" - fi - fi - -} - -parse_modules_config() { - local name="" - local disable="" - [ -f ${1} ] || return 1 - - for i in `cat $1 | sed "s/^#.*//"`; do - if [ $i == "-" ]; then - disable="true" - elif [ -z "$name" ] && [ ! -z "`echo $i | grep "mod_"`" ]; then - name=`echo $i | sed "s/mod_//"` - elif [ "$disable" ] && ( [ $i == "static" ] || [ $i == "shared" ] ); then - MY_BUILTINS="${MY_BUILTINS} --disable-$name" - name="" ; disable="" - elif [ $i == "static" ] || useq static-modules; then - MY_BUILTINS="${MY_BUILTINS} --enable-$name=yes" - name="" ; disable="" - elif [ $i == "shared" ]; then - MY_BUILTINS="${MY_BUILTINS} --enable-$name=shared" - name="" ; disable="" - fi - done - - einfo "${1} options:\n${MY_BUILTINS}" -} - -select_modules_config() { - parse_modules_config /etc/apache2/apache2-builtin-mods || \ - parse_modules_config ${GENTOO_PATCHDIR}/conf/apache2-builtin-mods || \ - return 1 -} - -# vim:ts=4 diff --git a/www-servers/apache/apache-2.0.61.ebuild b/www-servers/apache/apache-2.0.61.ebuild deleted file mode 100644 index 32d0fa06e1c4..000000000000 --- a/www-servers/apache/apache-2.0.61.ebuild +++ /dev/null @@ -1,461 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.0.61.ebuild,v 1.2 2007/09/16 11:07:34 hollow Exp $ - -inherit eutils flag-o-matic gnuconfig multilib - -# latest gentoo apache files -GENTOO_PATCHNAME="gentoo-apache-${PVR}" -GENTOO_PATCHSTAMP="20070907" -GENTOO_DEVSPACE="hollow" -GENTOO_PATCHDIR="${WORKDIR}/${GENTOO_PATCHNAME}" - -DESCRIPTION="The Apache Web Server" -HOMEPAGE="http://httpd.apache.org/" -SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2 - http://dev.gentoo.org/~${GENTOO_DEVSPACE}/dist/apache/${GENTOO_PATCHNAME}-${GENTOO_PATCHSTAMP}.tar.bz2" - -LICENSE="Apache-2.0" -SLOT="2" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="apache2 debug doc ldap mpm-itk mpm-leader mpm-peruser mpm-prefork mpm-threadpool mpm-worker ssl static-modules threads selinux" - -RDEPEND="dev-lang/perl - =dev-libs/apr-0* - =dev-libs/apr-util-0* - dev-libs/expat - app-misc/mime-types - sys-libs/zlib - mpm-itk? ( sys-libs/libcap ) - ssl? ( dev-libs/openssl ) - selinux? ( sec-policy/selinux-apache ) - !mips? ( ldap? ( =net-nds/openldap-2* ) )" -DEPEND="${RDEPEND} - >=sys-devel/autoconf-2.59-r4" - -S="${WORKDIR}/httpd-${PV}" - -big_fat_warnings() { - - if use ldap && ! built_with_use '=dev-libs/apr-util-0*' ldap; then - eerror "dev-libs/apr-util is missing LDAP support. For apache to have" - eerror "ldap support, apr-util must be built with the ldap USE-flag" - eerror "enabled." - die "ldap USE-flag enabled while not supported in apr-util" - fi - - if use mpm-peruser || use mpm-itk; then - ewarn "-BIG- -FAT- -WARNING-" - ewarn - ewarn "The peruser (USE=mpm-peruser) and itk (USE=mpm-itk) MPMs are considered" - ewarn "highly experimental and are not (yet) supported, nor are they recommended" - ewarn "for production use. You have been warned!" - ewarn - ewarn "Continuing in 5 seconds ..." - sleep 5 - fi - -} - -pkg_setup() { - big_fat_warnings - select_mpms - - # setup apache user and group - enewgroup apache 81 - enewuser apache 81 -1 /var/www apache - -} - -src_unpack() { - unpack ${A} || die - cd ${S} || die - - # Use correct multilib libdir in gentoo patches - sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" \ - ${GENTOO_PATCHDIR}/{conf/httpd.conf,init/*,patches/config.layout} \ - || die "sed failed" - - EPATCH_SUFFIX="patch" - epatch ${GENTOO_PATCHDIR}/patches/[0-8]* || die "internal ebuild error" - - # security patches are version based - # 99_all_${PV}_Name.patch - if $(ls ${GENTOO_PATCHDIR}/patches/9?_*_${PV}_* &>/dev/null); then - epatch ${GENTOO_PATCHDIR}/patches/9?_*_${PV}_* || \ - die "Patching for version ${PV} failed" - fi - - # avoid utf-8 charset problems - export LC_CTYPE=C - - # setup the filesystem layout config - cat ${GENTOO_PATCHDIR}/patches/config.layout >> config.layout - sed -i -e 's:version:${PF}:g' config.layout - - # peruser need to build conf - WANT_AUTOCONF=2.5 ./buildconf || die "buildconf failed" -} - -src_compile() { - - # bug 128505 - filter-ldflags -Wl,--as-needed --as-needed - - # actually we do not provide a very dynamic way of those vars - # however, you may predefine them in shell before emerging - # to override the official default locations - - # standard location for Gentoo Linux - USERDIR="${USERDIR:-public_html}" - - einfo "USERDIR is set to: ${USERDIR}" - - select_mpms - - # Detect mips and uclibc systems properly - gnuconfig_update - - local modtype - if useq static-modules; then - modtype="static" - else - modtype="shared" - fi - - select_modules_config || die "determining modules" - - local myconf - useq ldap && myconf="${myconf} --enable-auth-ldap=${modtype} --enable-ldap=${modtype}" - useq ssl && myconf="${myconf} --with-ssl=/usr --enable-ssl=${modtype}" - useq ssl || myconf="${myconf} --disable-ssl" - - # Fix for bug #24215 - robbat2@gentoo.org, 30 Oct 2003 - # We pre-load the cache with the correct answer! This avoids - # it violating the sandbox. This may have to be changed for - # non-Linux systems or if sem_open changes on Linux. This - # hack is built around documentation in /usr/include/semaphore.h - # and the glibc (pthread) source - echo 'ac_cv_func_sem_open=${ac_cv_func_sem_open=no}' >> ${S}/config.cache - -# no more USE=no-suexec because of bug 148082 -# see the 2.2 ebuilds for how this can be done cleanly with a working system -# "out of the box" -# if useq no-suexec; then -# myconf="${myconf} --disable-suexec" -# else - myconf="${myconf} - --with-suexec-safepath="/usr/local/bin:/usr/bin:/bin" \ - --with-suexec-logfile=/var/log/apache2/suexec_log \ - --with-suexec-bin=/usr/sbin/suexec2 \ - --with-suexec-userdir=${USERDIR} \ - --with-suexec-caller=apache \ - --with-suexec-docroot=/var/www \ - --with-suexec-uidmin=1000 \ - --with-suexec-gidmin=100 \ - --with-suexec-umask=077 \ - --enable-suexec=shared" -# fi - - # common confopts - myconf="${myconf} \ - --with-apr=/usr \ - --with-apr-util=/usr \ - --cache-file=${S}/config.cache \ - --with-perl=/usr/bin/perl \ - --with-expat=/usr \ - --with-z=/usr \ - --with-port=80 \ - --enable-layout=Gentoo \ - --with-program-name=apache2 \ - --with-devrandom=/dev/urandom \ - --host=${CHOST} ${MY_BUILTINS}" - - # debugging support - if useq debug ; then - myconf="${myconf} --enable-maintainer-mode" - fi - - ./configure --with-mpm=${mpm} ${myconf} ${EXTRA_ECONF} || die "bad ./configure please submit bug report to bugs.gentoo.org. Include your config.layout and config.log" - - # we don't want to try and recompile the ssl_expr_parse.c file, because - # the lex source is broken - touch modules/ssl/ssl_expr_scan.c - - # as decided on IRC-AGENDA-10.2004, we use httpd.conf as standard config file name - sed -i -e 's:apache2\.conf:httpd.conf:' include/ap_config_auto.h - - emake || die "problem compiling apache2" - - # build ssl version of apache bench (ab-ssl) - if useq ssl; then - cd support - rm -f ab .libs/ab ab.lo ab.o - make ab CFLAGS="${CFLAGS} -DUSE_SSL -lcrypto -lssl -I/usr/include/openssl -L/usr/$(get_libdir)" || die - mv ab ab-ssl - rm -f ab.lo ab.o - make ab || die - fi -} - -src_install () { - # general install - make DESTDIR=${D} install || die - dodoc ABOUT_APACHE CHANGES INSTALL LAYOUT LICENSE README* ${GENTOO_PATCHDIR}/docs/robots.txt - - # protect the suexec binary -# if ! useq no-suexec; then - fowners root:apache /usr/sbin/suexec - fperms 4710 /usr/sbin/suexec -# fi - - # apxs needs this to pickup the right lib for install - dosym /usr/$(get_libdir) /usr/$(get_libdir)/apache2/lib - dosym /var/log/apache2 /usr/$(get_libdir)/apache2/logs - dosym /etc/apache2 /usr/$(get_libdir)/apache2/conf - - # Credits to advx.org people for these scripts. Heck, thanks for - # the nice layout and everything else ;-) - exeinto /usr/sbin - for i in apache2logserverstatus apache2splitlogfile; do - doexe ${GENTOO_PATCHDIR}/scripts/${i} - done - # gentestcrt.sh only if USE=ssl - useq ssl && doexe ${GENTOO_PATCHDIR}/scripts/gentestcrt.sh - - # some more scripts - for i in split-logfile list_hooks.pl logresolve.pl log_server_status; do - doexe ${S}/support/${i} - done - - # the ssl version of apache bench - useq ssl && doexe support/ab-ssl - - # install mpm bins - doexe ${S}/apache2 - - # modules.d config file snippets - insinto /etc/apache2/modules.d - doins ${GENTOO_PATCHDIR}/conf/modules.d/45_mod_dav.conf - useq ldap && doins ${GENTOO_PATCHDIR}/conf/modules.d/46_mod_ldap.conf - if useq ssl; then - doins ${GENTOO_PATCHDIR}/conf/modules.d/40_mod_ssl.conf - doins ${GENTOO_PATCHDIR}/conf/modules.d/41_mod_ssl.default-vhost.conf - fi - - # drop in a convenient link to the manual - if useq doc; then - insinto /etc/apache2/modules.d - doins ${GENTOO_PATCHDIR}/conf/modules.d/00_apache_manual.conf - sed -i -e "s:2.0.49:${PVR}:" ${D}/etc/apache2/modules.d/00_apache_manual.conf - else - rm -rf ${D}/usr/share/doc/${PF}/manual - fi - - # SLOT=2 - cd ${D} - for i in htdigest htpasswd logresolve apxs ab rotatelogs dbmmanage checkgid split-logfile; do - mv -v usr/sbin/${i} usr/sbin/${i}2 - done - mv -v usr/sbin/apachectl usr/sbin/apache2ctl - mv -v usr/sbin/list_hooks.pl usr/sbin/list_hooks2.pl - mv -v usr/sbin/logresolve.pl usr/sbin/logresolve2.pl - useq ssl && mv -v usr/sbin/ab-ssl usr/sbin/ab2-ssl -# useq no-suexec || - mv -v usr/sbin/suexec usr/sbin/suexec2 - - # do the man pages - for i in htdigest.1 htpasswd.1 dbmmanage.1; do - mv -v usr/share/man/man1/${i} usr/share/man/man1/${i/./2.} - done - for i in ab.8 apxs.8 logresolve.8 rotatelogs.8; do - mv -v usr/share/man/man8/${i} usr/share/man/man8/${i/./2.} - done - #useq no-suexec || - mv -v usr/share/man/man8/suexec.8 usr/share/man/man8/suexec2.8 - - mv -v usr/share/man/man8/apachectl.8 usr/share/man/man8/apache2ctl.8 - mv -v usr/share/man/man8/httpd.8 usr/share/man/man8/apache2.8 - - # tidy up - mv usr/sbin/envvars* usr/$(get_libdir)/apache2/build - dodoc etc/apache2/*-std.conf - rm -f etc/apache2/*.conf - rm -f etc/apache2/mime.types - rm -rf var/run var/log - - # the default webroot gets stored in /usr/share/doc - einfo "Installing default webroot to /usr/share/doc/${PF}" - mv ${D}/var/www/localhost ${D}/usr/share/doc/${PF}/webroot - - # config files - newconfd ${GENTOO_PATCHDIR}/init/apache2.confd apache2 - newinitd ${GENTOO_PATCHDIR}/init/apache2.initd apache2 - - insinto /etc/logrotate.d - newins ${GENTOO_PATCHDIR}/scripts/apache2-logrotate apache2 - - insinto /etc/apache2 - doins ${GENTOO_PATCHDIR}/conf/apache2-builtin-mods - doins ${GENTOO_PATCHDIR}/conf/httpd.conf - - insinto /etc/apache2/vhosts.d - doins ${GENTOO_PATCHDIR}/conf/vhosts.d/00_default_vhost.conf - - keepdir /etc/apache2/vhosts.d - keepdir /etc/apache2/modules.d - - # fix bug 92348 - fperms 755 /usr/sbin/apache2logserverstatus - fperms 755 /usr/sbin/apache2splitlogfile - - # empty dirs - for i in /var/lib/dav /var/log/apache2 /var/cache/apache2; do - keepdir ${i} - fowners apache:apache ${i} - fperms 755 ${i} - done - - # We'll be needing /etc/apache2/ssl if USE=ssl - useq ssl && keepdir /etc/apache2/ssl - -} - -pkg_postinst() { - # Automatically generate test ceritificates if ssl USE flag is being set - if use ssl && [[ ! -e ${ROOT}/etc/apache2/ssl/server.crt ]]; then - cd ${ROOT}/etc/apache2/ssl - einfo - einfo "Generating self-signed test certificate in /etc/apache2/ssl..." - yes "" 2>/dev/null | \ - ${ROOT}/usr/sbin/gentestcrt.sh >/dev/null 2>&1 || \ - die "gentestcrt.sh failed" - einfo - fi - - # we do this here because the default webroot is a copy of the files - # that exist elsewhere and we don't want them managed/removed by portage - # when apache is upgraded. - if [ -e "${ROOT}/var/www/localhost" ]; then - einfo "The default webroot has not been installed into" - einfo "${ROOT}/var/www/localhost because the directory already exists" - einfo "and we do not want to overwrite any files you have put there." - einfo - einfo "If you would like to install the latest webroot, please run" - einfo "emerge --config =${PF}" - else - einfo "Installing default webroot to ${ROOT}/var/www/localhost" - mkdir -p ${ROOT}/var/www/localhost - cp -r ${ROOT}/usr/share/doc/${PF}/webroot/* ${ROOT}/var/www/localhost - chown -R apache: ${ROOT}/var/www/localhost - fi - - # Check for dual/upgrade install - if has_version '=www-servers/apache-1*' || ! use apache2 ; then - ewarn - ewarn "Please add the 'apache2' flag to your USE variable and (re)install" - ewarn "any additional DSO modules you may wish to use with Apache-2.x." - ewarn "Addon modules are configured in /etc/apache2/modules.d/" - ewarn - fi - - # Check for obsolete symlinks - local list="" - for i in lib logs modules extramodules; do - local d="/etc/apache2/${i}" - [ -s "${d}" ] && list="${list} ${d}" - done - [ -n "${list}" ] && einfo "You should delete these old symlinks: ${list}" - - if has_version '<www-servers/apache-2.0.54-r30' && has_version '>=www-servers/apache-2.0.0' ; then - einfo "Configuration locations have changed, you will need to migrate" - einfo "your configuration from /etc/apache2/conf/apache2.conf and" - einfo "/etc/apache2/conf/commonapache2.conf to /etc/apache2/httpd.conf." - einfo - einfo "Apache now checks for the old configuration and refuses to start" - einfo "if it exists. You must remove the old configuration first" - einfo - einfo "You should also at this time rebuild all your modules" - einfo - einfo "For more information, see" - einfo " http://www.gentoo.org/doc/en/apache-upgrading.xml" - einfo - fi - - big_fat_warnings -} - -pkg_config() { - - einfo "Installing default webroot to ${ROOT}/var/www/localhost" - mkdir -p ${ROOT}/var/www/localhost - cp -r ${ROOT}/usr/share/doc/${PF}/webroot/* ${ROOT}/var/www/localhost - chown -R apache: ${ROOT}/var/www/localhost - -} - -mpm_die() { - eerror "You attempted to specify the MPM $1, but MPM $2 was already specified." - eerror "The apache ebuilds no longer support multiple MPM installations. Please choose" - eerror "one MPM and reinstall." - die "More than one MPM was specified." -} - -select_mpms() { - - mpm="" - - for trympm in prefork worker peruser threadpool leader itk; do - if useq mpm-${trympm}; then - if [ "x${mpm}" = "x" ]; then - mpm=${trympm} - else - mpm_die ${trympm} ${mpm} - fi - fi - done - - if [ "x${mpm}" = "x" ]; then - if useq threads; then - einfo "Threads specified without a mpm-specification, using mpm-worker." - mpm="worker" - else - einfo "No MPM style was specified, defaulting to mpm-prefork." - mpm="prefork" - fi - fi - -} - -parse_modules_config() { - local name="" - local disable="" - [ -f ${1} ] || return 1 - - for i in `cat $1 | sed "s/^#.*//"`; do - if [ $i == "-" ]; then - disable="true" - elif [ -z "$name" ] && [ ! -z "`echo $i | grep "mod_"`" ]; then - name=`echo $i | sed "s/mod_//"` - elif [ "$disable" ] && ( [ $i == "static" ] || [ $i == "shared" ] ); then - MY_BUILTINS="${MY_BUILTINS} --disable-$name" - name="" ; disable="" - elif [ $i == "static" ] || useq static-modules; then - MY_BUILTINS="${MY_BUILTINS} --enable-$name=yes" - name="" ; disable="" - elif [ $i == "shared" ]; then - MY_BUILTINS="${MY_BUILTINS} --enable-$name=shared" - name="" ; disable="" - fi - done - - einfo "${1} options:\n${MY_BUILTINS}" -} - -select_modules_config() { - parse_modules_config /etc/apache2/apache2-builtin-mods || \ - parse_modules_config ${GENTOO_PATCHDIR}/conf/apache2-builtin-mods || \ - return 1 -} - -# vim:ts=4 diff --git a/www-servers/apache/files/digest-apache-2.0.58-r2 b/www-servers/apache/files/digest-apache-2.0.58-r2 deleted file mode 100644 index 66dad7a8187d..000000000000 --- a/www-servers/apache/files/digest-apache-2.0.58-r2 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 37fca7f4496cb8e7304f52e9e998ce3f gentoo-apache-2.0.58-r2-20060726.tar.bz2 58758 -RMD160 46c6da577db444a6553b60d3ae30c61ae3b741fa gentoo-apache-2.0.58-r2-20060726.tar.bz2 58758 -SHA256 b8e0356e87fdd7b55fcecbee804c9a41525b3e6fe8309f87f2509abd161c8e6b gentoo-apache-2.0.58-r2-20060726.tar.bz2 58758 -MD5 ac732a8b3ec5760baa582888f5dbad66 httpd-2.0.58.tar.bz2 4704318 -RMD160 2ff44b2254552db908f1defd09e3142527f9bf83 httpd-2.0.58.tar.bz2 4704318 -SHA256 4f746715c408f4cac48099ea72560c50ef190568dfcfa8e0762bae66c0398029 httpd-2.0.58.tar.bz2 4704318 diff --git a/www-servers/apache/files/digest-apache-2.0.59-r5 b/www-servers/apache/files/digest-apache-2.0.59-r5 deleted file mode 100644 index 71e056c2bfbe..000000000000 --- a/www-servers/apache/files/digest-apache-2.0.59-r5 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 26d265c1b3622f9594adf49296e56334 gentoo-apache-2.0.59-r5-20070828.tar.bz2 63913 -RMD160 c0cfc72d0316b0a977296a08932bebe6a7547c7b gentoo-apache-2.0.59-r5-20070828.tar.bz2 63913 -SHA256 fa188f4f7e26b7277a8a1858c449766bc997c1f9cf1ee2a5f9fdbfda5dabcccb gentoo-apache-2.0.59-r5-20070828.tar.bz2 63913 -MD5 b0200a497d1c89daad680c676d32a6df httpd-2.0.59.tar.bz2 4743549 -RMD160 78b802354e338798a6978ece8b3568be97542174 httpd-2.0.59.tar.bz2 4743549 -SHA256 bbac543ca9f80826f71eb16945610f8f90a36b346efc658be3b466ec0c990c0d httpd-2.0.59.tar.bz2 4743549 diff --git a/www-servers/apache/files/digest-apache-2.0.61 b/www-servers/apache/files/digest-apache-2.0.61 deleted file mode 100644 index e90f3b9d76ee..000000000000 --- a/www-servers/apache/files/digest-apache-2.0.61 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 fc102409c88cecd17823cfd5493e1ee9 gentoo-apache-2.0.61-20070907.tar.bz2 58543 -RMD160 3d40fd2e793bfedbca0410e6aa31ec7cabd404ef gentoo-apache-2.0.61-20070907.tar.bz2 58543 -SHA256 f981b2627edace251a12a58fb22dacd98e6beb764b092db518ee3dac0045420e gentoo-apache-2.0.61-20070907.tar.bz2 58543 -MD5 7d78bbaa17adc16ce4e0303a4fb87247 httpd-2.0.61.tar.bz2 4580339 -RMD160 a2c2c90976a967112a9129b9716d880d71261882 httpd-2.0.61.tar.bz2 4580339 -SHA256 c257d3a6c120a21a637b422cf9973be2fca9bee58ae70478f5235adb5fac8899 httpd-2.0.61.tar.bz2 4580339 |