Bernd Wurst commited on 2008-01-09 20:55:54
Zeige 7 geänderte Dateien mit 188 Einfügungen und 1013 Löschungen.
| ... | ... |
@@ -6,28 +6,20 @@ AUX apache-ssl-fix.diff 2993 RMD160 6a7627b2c957254e1a1bfc27e8101ff5da04fab5 SHA |
| 6 | 6 |
MD5 117d11e44ccd6a2408873288b41236bd files/apache-ssl-fix.diff 2993 |
| 7 | 7 |
RMD160 6a7627b2c957254e1a1bfc27e8101ff5da04fab5 files/apache-ssl-fix.diff 2993 |
| 8 | 8 |
SHA256 150fdbd8ab5f45943c76b5244c9e3ef0ed30c6f70a5fd46981edb983de7ec02f files/apache-ssl-fix.diff 2993 |
| 9 |
-DIST gentoo-apache-2.2.6-20070907.tar.bz2 58121 RMD160 d0e5f55a8985f97fcdf646e04d92f6519f968104 SHA1 f9fd830bfb8e6c6e3cbac9d8342cc981032d20c5 SHA256 56f809f93fdcba204e6be271f195095d8ad033aa61447dab607af91d95cde8e6 |
|
| 10 |
-DIST gentoo-apache-2.2.6-r3-20071025.tar.bz2 60483 RMD160 3097b088eae160f1196f21abb1488cf54b349ba1 SHA1 1bb261c16e93bb1abc1972b38f73c2726435fb36 SHA256 3f2d0b9d210f3bb22c06901dee7df482c26647562d1a4e98f4196cd649f71d58 |
|
| 11 | 9 |
DIST gentoo-apache-2.2.6-r6-20071215.tar.bz2 60964 RMD160 b2ea87d18117566a644fe012d23affd38d1f7ef6 SHA1 7a03af24bddf7e9b300eaad891a467ba25ab53ad SHA256 e2ec95dbfd3d406d16a5694746ade43863712037c12ac70f3433b16c75bf5638 |
| 10 |
+DIST gentoo-apache-2.2.6-r7-20080107.tar.bz2 61536 RMD160 b08af8e9d840b49685bf7a67243b80dc4e346efa SHA1 27278395f5ad01aef0f9c9fcf1c25565866422a0 SHA256 b2116b2b09ba3a5d4e1130bf7e202cc95312ac5b4f78f8653f15e2842bbbf92f |
|
| 12 | 11 |
DIST httpd-2.2.6.tar.bz2 4717066 RMD160 5ae895c6898213e1e3b7e7b02cdfcbe5b36a108f SHA1 e6ef926ecd1f9a412af8c266239f0a6f58c63854 SHA256 f27cd9df50a2acd9df8f37520f62f6ce51758689d425ead5883e75ff5ed6548c |
| 13 |
-EBUILD apache-2.2.6-r3.ebuild 15867 RMD160 bc4754a69578b07c0887948e143535ee42d5c494 SHA1 d4cd5d82f69d4b41f1d41d74eb6ab1cbdf25ed43 SHA256 1dc997400c2f2829939da89593ff43733db032df39c2a7b36e5a7e9885808aab |
|
| 14 |
-MD5 51cf3a6d14f5799bc32a220665125641 apache-2.2.6-r3.ebuild 15867 |
|
| 15 |
-RMD160 bc4754a69578b07c0887948e143535ee42d5c494 apache-2.2.6-r3.ebuild 15867 |
|
| 16 |
-SHA256 1dc997400c2f2829939da89593ff43733db032df39c2a7b36e5a7e9885808aab apache-2.2.6-r3.ebuild 15867 |
|
| 17 | 12 |
EBUILD apache-2.2.6-r6.ebuild 5217 RMD160 6411c458a443de97e94a3fa328b05b100245844f SHA1 3848dc1b562fc29322c3452e9fd5820284ed08d3 SHA256 2f51672862d7b3d12c15c8c0ea05006da7b279b226c98aafd7d090c61e0520a4 |
| 18 | 13 |
MD5 3722ae4b57c51d6efd2989b27c870929 apache-2.2.6-r6.ebuild 5217 |
| 19 | 14 |
RMD160 6411c458a443de97e94a3fa328b05b100245844f apache-2.2.6-r6.ebuild 5217 |
| 20 | 15 |
SHA256 2f51672862d7b3d12c15c8c0ea05006da7b279b226c98aafd7d090c61e0520a4 apache-2.2.6-r6.ebuild 5217 |
| 21 |
-EBUILD apache-2.2.6.ebuild 15409 RMD160 d28d70bee62cf49b4fa03f11af540b4d73f573b6 SHA1 7e745f24c701aa975afeea5ac0dd1a92acc61e0f SHA256 db821b99842d980acbb98f2584f5374103508c8ba9a81fd6837518b19dcd71f1 |
|
| 22 |
-MD5 83cc4a3331319d94de3fb5e69f74e4d3 apache-2.2.6.ebuild 15409 |
|
| 23 |
-RMD160 d28d70bee62cf49b4fa03f11af540b4d73f573b6 apache-2.2.6.ebuild 15409 |
|
| 24 |
-SHA256 db821b99842d980acbb98f2584f5374103508c8ba9a81fd6837518b19dcd71f1 apache-2.2.6.ebuild 15409 |
|
| 25 |
-MD5 bf89379d611a34d10b6e0a55eee69f9b files/digest-apache-2.2.6 527 |
|
| 26 |
-RMD160 77f2fce54301244724ec61c4a3e0b96dc7106b33 files/digest-apache-2.2.6 527 |
|
| 27 |
-SHA256 69de15f758686c7f7977e0b75dd988e247162fb97fb394be4efe40997a53e308 files/digest-apache-2.2.6 527 |
|
| 28 |
-MD5 5345564d6f3113af8483954bf52c4209 files/digest-apache-2.2.6-r3 536 |
|
| 29 |
-RMD160 7569c275d74b58f38b180e12e19fb2e48608c86c files/digest-apache-2.2.6-r3 536 |
|
| 30 |
-SHA256 6de6aef20a1588fb17fdcfda567ee9e7b08fd700ffc823c83c88aeb88c43a51b files/digest-apache-2.2.6-r3 536 |
|
| 16 |
+EBUILD apache-2.2.6-r7.ebuild 5231 RMD160 3abf52692b806c556a1b1d7574b8e9e4e79ee2b0 SHA1 b497618a3a293b3730c2f5fed54a1337367b4da2 SHA256 b674d92066cf4ce5ee2fd28a6b5c7b0a51627622c488b464a2bfd4e736ea5b23 |
|
| 17 |
+MD5 9b12894d95d7ccecf7b0c770b9f8ca0a apache-2.2.6-r7.ebuild 5231 |
|
| 18 |
+RMD160 3abf52692b806c556a1b1d7574b8e9e4e79ee2b0 apache-2.2.6-r7.ebuild 5231 |
|
| 19 |
+SHA256 b674d92066cf4ce5ee2fd28a6b5c7b0a51627622c488b464a2bfd4e736ea5b23 apache-2.2.6-r7.ebuild 5231 |
|
| 31 | 20 |
MD5 d6e528b4934cf191516f6053c9f63c97 files/digest-apache-2.2.6-r6 536 |
| 32 | 21 |
RMD160 f32d00e581a61a1b1e183f9229da0ca2048c5a9f files/digest-apache-2.2.6-r6 536 |
| 33 | 22 |
SHA256 b96912d1eb1d3325b98daf7aa5314bf5eb5826206ba24add0d9840904497c541 files/digest-apache-2.2.6-r6 536 |
| 23 |
+MD5 b75641abc20af74044985f8f16784fb5 files/digest-apache-2.2.6-r7 536 |
|
| 24 |
+RMD160 218080b6f024cc12529e6e7b280fac1256ec869e files/digest-apache-2.2.6-r7 536 |
|
| 25 |
+SHA256 a8b137170b4785953fb3ced4a48db1c61e7fda926ae0842df00b26d57232411e files/digest-apache-2.2.6-r7 536 |
| ... | ... |
@@ -1,497 +0,0 @@ |
| 1 |
-# Copyright 1999-2007 Gentoo Foundation |
|
| 2 |
-# Distributed under the terms of the GNU General Public License v2 |
|
| 3 |
-# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.2.6-r3.ebuild,v 1.1 2007/10/25 02:07:54 hollow Exp $ |
|
| 4 |
- |
|
| 5 |
-inherit eutils flag-o-matic multilib autotools |
|
| 6 |
- |
|
| 7 |
-# latest gentoo apache files |
|
| 8 |
-GENTOO_PATCHNAME="gentoo-${PF}"
|
|
| 9 |
-GENTOO_PATCHSTAMP="20071025" |
|
| 10 |
-GENTOO_DEVSPACE="hollow" |
|
| 11 |
-GENTOO_PATCHDIR="${WORKDIR}/${GENTOO_PATCHNAME}"
|
|
| 12 |
- |
|
| 13 |
-DESCRIPTION="The Apache Web Server." |
|
| 14 |
-HOMEPAGE="http://httpd.apache.org/" |
|
| 15 |
-SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2
|
|
| 16 |
- http://dev.gentoo.org/~${GENTOO_DEVSPACE}/dist/apache/${GENTOO_PATCHNAME}-${GENTOO_PATCHSTAMP}.tar.bz2"
|
|
| 17 |
- |
|
| 18 |
-# some helper scripts are apache-1.1, thus both are here |
|
| 19 |
-LICENSE="Apache-2.0 Apache-1.1" |
|
| 20 |
-SLOT="2" |
|
| 21 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
|
| 22 |
-IUSE="debug doc ldap mpm-event mpm-itk mpm-peruser mpm-prefork mpm-worker no-suexec selinux ssl static-modules threads" |
|
| 23 |
- |
|
| 24 |
-DEPEND="dev-lang/perl |
|
| 25 |
- =dev-libs/apr-1* |
|
| 26 |
- =dev-libs/apr-util-1* |
|
| 27 |
- dev-libs/expat |
|
| 28 |
- dev-libs/libpcre |
|
| 29 |
- sys-libs/zlib |
|
| 30 |
- ldap? ( =net-nds/openldap-2* ) |
|
| 31 |
- selinux? ( sec-policy/selinux-apache ) |
|
| 32 |
- ssl? ( dev-libs/openssl ) |
|
| 33 |
- !=www-servers/apache-1* |
|
| 34 |
- !=app-admin/apache-tools-2.2.4-r2" |
|
| 35 |
- |
|
| 36 |
-RDEPEND="${DEPEND}
|
|
| 37 |
- app-misc/mime-types" |
|
| 38 |
- |
|
| 39 |
-PDEPEND="~app-admin/apache-tools-${PV}"
|
|
| 40 |
- |
|
| 41 |
-S="${WORKDIR}/httpd-${PV}"
|
|
| 42 |
- |
|
| 43 |
-pkg_setup() {
|
|
| 44 |
- if use ldap && ! built_with_use 'dev-libs/apr-util' ldap ; then |
|
| 45 |
- eerror "dev-libs/apr-util is missing LDAP support. For apache to have" |
|
| 46 |
- eerror "ldap support, apr-util must be built with the ldap USE-flag" |
|
| 47 |
- eerror "enabled." |
|
| 48 |
- die "ldap USE-flag enabled while not supported in apr-util" |
|
| 49 |
- fi |
|
| 50 |
- |
|
| 51 |
- # Select the default MPM module |
|
| 52 |
- MPM_LIST="event itk peruser prefork worker" |
|
| 53 |
- for x in ${MPM_LIST} ; do
|
|
| 54 |
- if use mpm-${x} ; then
|
|
| 55 |
- if [[ "x${mpm}" == "x" ]] ; then
|
|
| 56 |
- mpm=${x}
|
|
| 57 |
- elog |
|
| 58 |
- elog "Selected MPM: ${mpm}"
|
|
| 59 |
- elog |
|
| 60 |
- else |
|
| 61 |
- eerror "You have selected more then one mpm USE-flag." |
|
| 62 |
- eerror "Only one MPM is supported." |
|
| 63 |
- die "more then one mpm was specified" |
|
| 64 |
- fi |
|
| 65 |
- fi |
|
| 66 |
- done |
|
| 67 |
- |
|
| 68 |
- if [[ "x${mpm}" == "x" ]] ; then
|
|
| 69 |
- if use threads ; then |
|
| 70 |
- mpm=worker |
|
| 71 |
- elog |
|
| 72 |
- elog "Selected default threaded MPM: ${mpm}";
|
|
| 73 |
- elog |
|
| 74 |
- else |
|
| 75 |
- mpm=prefork |
|
| 76 |
- elog |
|
| 77 |
- elog "Selected default MPM: ${mpm}";
|
|
| 78 |
- elog |
|
| 79 |
- fi |
|
| 80 |
- fi |
|
| 81 |
- |
|
| 82 |
- # setup apache user and group |
|
| 83 |
- enewgroup apache 81 |
|
| 84 |
- enewuser apache 81 -1 /var/www apache |
|
| 85 |
- |
|
| 86 |
- if ! use no-suexec ; then |
|
| 87 |
- elog |
|
| 88 |
- elog "You can manipulate several configure options of suexec" |
|
| 89 |
- elog "through the following environment variables:" |
|
| 90 |
- elog |
|
| 91 |
- elog " SUEXEC_SAFEPATH: Default PATH for suexec (default: /usr/local/bin:/usr/bin:/bin)" |
|
| 92 |
- elog " SUEXEC_LOGFILE: Path to the suexec logfile (default: /var/log/apache2/suexec_log)" |
|
| 93 |
- elog " SUEXEC_CALLER: Name of the user Apache is running as (default: apache)" |
|
| 94 |
- elog " SUEXEC_DOCROOT: Directory in which suexec will run scripts (default: /var/www)" |
|
| 95 |
- elog " SUEXEC_MINUID: Minimum UID, which is allowed to run scripts via suexec (default: 1000)" |
|
| 96 |
- elog " SUEXEC_MINGID: Minimum GID, which is allowed to run scripts via suexec (default: 100)" |
|
| 97 |
- elog " SUEXEC_USERDIR: User subdirectories (like /home/user/html) (default: public_html)" |
|
| 98 |
- elog " SUEXEC_UMASK: Umask for the suexec process (default: 077)" |
|
| 99 |
- elog |
|
| 100 |
- fi |
|
| 101 |
-} |
|
| 102 |
- |
|
| 103 |
-src_unpack() {
|
|
| 104 |
- unpack ${A}
|
|
| 105 |
- cd "${S}"
|
|
| 106 |
- epatch "${FILESDIR}/apache-noip.diff"
|
|
| 107 |
- epatch "${FILESDIR}/apache-ssl-fix.diff"
|
|
| 108 |
- |
|
| 109 |
- # Use correct multilib libdir in gentoo patches |
|
| 110 |
- sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" \ |
|
| 111 |
- "${GENTOO_PATCHDIR}"/{conf/httpd.conf,init/*,patches/config.layout} \
|
|
| 112 |
- || die "libdir sed failed" |
|
| 113 |
- |
|
| 114 |
- #### Patch Organization |
|
| 115 |
- # 00-19 Gentoo specific (00_all_some-title.patch) |
|
| 116 |
- # 20-39 Additional MPMs (20_all_${MPM}_some-title.patch)
|
|
| 117 |
- # 40-59 USE-flag based (40_all_${USE}_some-title.patch)
|
|
| 118 |
- # 60-79 Version specific (60_all_${PV}_some-title.patch)
|
|
| 119 |
- # 80-99 Security patches (80_all_${PV}_cve-####-####.patch)
|
|
| 120 |
- |
|
| 121 |
- epatch "${GENTOO_PATCHDIR}"/patches/*.patch
|
|
| 122 |
- |
|
| 123 |
- # setup the filesystem layout config |
|
| 124 |
- cat "${GENTOO_PATCHDIR}"/patches/config.layout >> "${S}"/config.layout || \
|
|
| 125 |
- die "Failed preparing config.layout!" |
|
| 126 |
- sed -i -e "s:version:${PF}:g" "${S}"/config.layout
|
|
| 127 |
- |
|
| 128 |
- # patched-in MPMs need the build environment rebuilt |
|
| 129 |
- sed -i -e '/sinclude/d' configure.in |
|
| 130 |
- AT_GNUCONF_UPDATE=yes AT_M4DIR=build eautoreconf |
|
| 131 |
- |
|
| 132 |
- # apache2.8 instead of httpd.8 (bug #194828) |
|
| 133 |
- mv docs/man/{httpd,apache2}.8
|
|
| 134 |
-} |
|
| 135 |
- |
|
| 136 |
-src_compile() {
|
|
| 137 |
- local modtype="shared" myconf="" |
|
| 138 |
- cd "${S}"
|
|
| 139 |
- |
|
| 140 |
- # Instead of filtering --as-needed (bug #128505), append --no-as-needed |
|
| 141 |
- # Thanks to Harald van Dijk |
|
| 142 |
- append-ldflags -Wl,--no-as-needed |
|
| 143 |
- |
|
| 144 |
- # peruser MPM debugging with -X is nearly impossible |
|
| 145 |
- use mpm-peruser && use debug && append-flags -DMPM_PERUSER_DEBUG |
|
| 146 |
- |
|
| 147 |
- use static-modules && modtype="static" |
|
| 148 |
- select_modules_config || die "determining modules failed" |
|
| 149 |
- |
|
| 150 |
- if use ldap ; then |
|
| 151 |
- mods="${mods} ldap authnz_ldap"
|
|
| 152 |
- myconf="${myconf} --enable-authnz-ldap=${modtype} --enable-ldap=${modtype}"
|
|
| 153 |
- fi |
|
| 154 |
- |
|
| 155 |
- if use threads || use mpm-worker || use mpm-event; then |
|
| 156 |
- mods="${mods} cgid"
|
|
| 157 |
- myconf="${myconf} --enable-cgid=${modtype}"
|
|
| 158 |
- else |
|
| 159 |
- mods="${mods} cgi"
|
|
| 160 |
- myconf="${myconf} --enable-cgi=${modtype}"
|
|
| 161 |
- fi |
|
| 162 |
- |
|
| 163 |
- if use ssl; then |
|
| 164 |
- mods="${mods} ssl"
|
|
| 165 |
- myconf="${myconf} --with-ssl=/usr --enable-ssl=${modtype}"
|
|
| 166 |
- fi |
|
| 167 |
- |
|
| 168 |
- if use debug; then |
|
| 169 |
- myconf="${myconf} --enable-maintainer-mode --enable-exception-hook"
|
|
| 170 |
- fi |
|
| 171 |
- |
|
| 172 |
- # Only build suexec with USE=-no-suexec |
|
| 173 |
- if use no-suexec ; then |
|
| 174 |
- myconf="${myconf} --disable-suexec"
|
|
| 175 |
- else |
|
| 176 |
- myconf="${myconf} --with-suexec-safepath=${SUEXEC_SAFEPATH:-/usr/local/bin:/usr/bin:/bin}"
|
|
| 177 |
- myconf="${myconf} --with-suexec-logfile=${SUEXEC_LOGFILE:-/var/log/apache2/suexec_log}"
|
|
| 178 |
- myconf="${myconf} --with-suexec-bin=/usr/sbin/suexec"
|
|
| 179 |
- myconf="${myconf} --with-suexec-userdir=${SUEXEC_USERDIR:-public_html}"
|
|
| 180 |
- myconf="${myconf} --with-suexec-caller=${SUEXEC_CALLER:-apache}"
|
|
| 181 |
- myconf="${myconf} --with-suexec-docroot=${SUEXEC_DOCROOT:-/var/www}"
|
|
| 182 |
- myconf="${myconf} --with-suexec-uidmin=${SUEXEC_MINUID:-1000}"
|
|
| 183 |
- myconf="${myconf} --with-suexec-gidmin=${SUEXEC_MINGID:-100}"
|
|
| 184 |
- myconf="${myconf} --with-suexec-umask=${SUEXEC_UMASK:-077}"
|
|
| 185 |
- myconf="${myconf} --enable-suexec=${modtype}"
|
|
| 186 |
- mods="${mods} suexec"
|
|
| 187 |
- fi |
|
| 188 |
- |
|
| 189 |
- # econf overwrites the stuff from config.layout, so we have to put them into |
|
| 190 |
- # our myconf line too |
|
| 191 |
- |
|
| 192 |
- econf \ |
|
| 193 |
- --includedir=/usr/include/apache2 \ |
|
| 194 |
- --libexecdir=/usr/$(get_libdir)/apache2/modules \ |
|
| 195 |
- --datadir=/var/www/localhost \ |
|
| 196 |
- --sysconfdir=/etc/apache2 \ |
|
| 197 |
- --localstatedir=/var \ |
|
| 198 |
- --with-mpm=${mpm} \
|
|
| 199 |
- --with-perl=/usr/bin/perl \ |
|
| 200 |
- --with-expat=/usr \ |
|
| 201 |
- --with-z=/usr \ |
|
| 202 |
- --with-apr=/usr \ |
|
| 203 |
- --with-apr-util=/usr \ |
|
| 204 |
- --with-pcre=/usr \ |
|
| 205 |
- --with-port=80 \ |
|
| 206 |
- --with-program-name=apache2 \ |
|
| 207 |
- --enable-layout=Gentoo \ |
|
| 208 |
- ${myconf} ${MY_BUILTINS} || die "econf failed!"
|
|
| 209 |
- |
|
| 210 |
- sed -i -e 's:apache2\.conf:httpd.conf:' include/ap_config_auto.h |
|
| 211 |
- |
|
| 212 |
- emake || die "emake failed" |
|
| 213 |
-} |
|
| 214 |
- |
|
| 215 |
-src_install () {
|
|
| 216 |
- emake DESTDIR="${D}" install || die "emake install failed"
|
|
| 217 |
- |
|
| 218 |
- # This is a mapping of module names to the -D options in APACHE2_OPTS |
|
| 219 |
- # Used for creating optional LoadModule lines |
|
| 220 |
- mod_defines=" |
|
| 221 |
- auth_digest:AUTH_DIGEST |
|
| 222 |
- authnz_ldap:AUTHNZ_LDAP |
|
| 223 |
- cache:CACHE |
|
| 224 |
- dav:DAV |
|
| 225 |
- dav_fs:DAV |
|
| 226 |
- dav_lock:DAV |
|
| 227 |
- disk_cache:CACHE |
|
| 228 |
- file_cache:CACHE |
|
| 229 |
- info:INFO |
|
| 230 |
- ldap:LDAP |
|
| 231 |
- mem_cache:CACHE |
|
| 232 |
- proxy:PROXY |
|
| 233 |
- proxy_ajp:PROXY |
|
| 234 |
- proxy_balancer:PROXY |
|
| 235 |
- proxy_connect:PROXY |
|
| 236 |
- proxy_http:PROXY |
|
| 237 |
- ssl:SSL |
|
| 238 |
- status:INFO |
|
| 239 |
- suexec:SUEXEC |
|
| 240 |
- userdir:USERDIR |
|
| 241 |
- " |
|
| 242 |
- |
|
| 243 |
- # create our LoadModule lines |
|
| 244 |
- if ! use static-modules ; then |
|
| 245 |
- load_module="" |
|
| 246 |
- moddir="${D}/usr/$(get_libdir)/apache2/modules"
|
|
| 247 |
- for m in $(echo ${mods}|tr ' ' '\n'|sort -u) ; do
|
|
| 248 |
- endid="no" |
|
| 249 |
- |
|
| 250 |
- if [[ -e "${moddir}/mod_${m}.so" ]] ; then
|
|
| 251 |
- for def in ${mod_defines} ; do
|
|
| 252 |
- if [[ "${m}" == "${def%:*}" ]] ; then
|
|
| 253 |
- load_module="${load_module}\n<IfDefine ${def#*:}>"
|
|
| 254 |
- endid="yes" |
|
| 255 |
- fi |
|
| 256 |
- done |
|
| 257 |
- load_module="${load_module}\nLoadModule ${m}_module modules/mod_${m}.so"
|
|
| 258 |
- if [[ "${endid}" == "yes" ]] ; then
|
|
| 259 |
- load_module="${load_module}\n</IfDefine>"
|
|
| 260 |
- fi |
|
| 261 |
- fi |
|
| 262 |
- done |
|
| 263 |
- fi |
|
| 264 |
- sed -i -e "s:%%LOAD_MODULE%%:${load_module}:" \
|
|
| 265 |
- "${GENTOO_PATCHDIR}"/conf/httpd.conf || die "sed failed"
|
|
| 266 |
- |
|
| 267 |
- # Install our configuration files |
|
| 268 |
- insinto /etc/apache2 |
|
| 269 |
- doins docs/conf/magic |
|
| 270 |
- doins -r "${GENTOO_PATCHDIR}"/conf/*
|
|
| 271 |
- insinto /etc/logrotate.d |
|
| 272 |
- newins "${GENTOO_PATCHDIR}"/scripts/apache2-logrotate apache2
|
|
| 273 |
- |
|
| 274 |
- # generate a sane default APACHE2_OPTS |
|
| 275 |
- APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE" |
|
| 276 |
- use doc && APACHE2_OPTS="${APACHE2_OPTS} -D MANUAL"
|
|
| 277 |
- use ssl && APACHE2_OPTS="${APACHE2_OPTS} -D SSL -D SSL_DEFAULT_VHOST"
|
|
| 278 |
- use no-suexec || APACHE2_OPTS="${APACHE2_OPTS} -D SUEXEC"
|
|
| 279 |
- |
|
| 280 |
- sed -i -e "s:APACHE2_OPTS=\".*\":APACHE2_OPTS=\"${APACHE2_OPTS}\":" \
|
|
| 281 |
- "${GENTOO_PATCHDIR}"/init/apache2.confd || die "sed failed"
|
|
| 282 |
- |
|
| 283 |
- newconfd "${GENTOO_PATCHDIR}"/init/apache2.confd apache2
|
|
| 284 |
- newinitd "${GENTOO_PATCHDIR}"/init/apache2.initd apache2
|
|
| 285 |
- |
|
| 286 |
- # Link apache2ctl to the init script |
|
| 287 |
- dosym /etc/init.d/apache2 /usr/sbin/apache2ctl |
|
| 288 |
- |
|
| 289 |
- # provide symlinks for all the stuff we no longer rename, bug 177697 |
|
| 290 |
- for i in suexec apxs; do |
|
| 291 |
- dosym /usr/sbin/${i} /usr/sbin/${i}2
|
|
| 292 |
- done |
|
| 293 |
- |
|
| 294 |
- # Install some thirdparty scripts |
|
| 295 |
- exeinto /usr/sbin |
|
| 296 |
- use ssl && doexe "${GENTOO_PATCHDIR}"/scripts/gentestcrt.sh
|
|
| 297 |
- |
|
| 298 |
- # Install some documentation |
|
| 299 |
- dodoc ABOUT_APACHE CHANGES LAYOUT README README.platforms VERSIONING |
|
| 300 |
- dodoc "${GENTOO_PATCHDIR}"/docs/*
|
|
| 301 |
- |
|
| 302 |
- # drop in a convenient link to the manual |
|
| 303 |
- if use doc ; then |
|
| 304 |
- sed -i -e "s:VERSION:${PVR}:" "${D}/etc/apache2/modules.d/00_apache_manual.conf"
|
|
| 305 |
- else |
|
| 306 |
- rm -f "${D}/etc/apache2/modules.d/00_apache_manual.conf"
|
|
| 307 |
- rm -Rf "${D}/usr/share/doc/${PF}/manual"
|
|
| 308 |
- fi |
|
| 309 |
- |
|
| 310 |
- # the default webroot gets stored in /usr/share/doc |
|
| 311 |
- ebegin "Installing default webroot to /usr/share/doc/${PF}"
|
|
| 312 |
- mv -f "${D}/var/www/localhost" "${D}/usr/share/doc/${PF}/webroot"
|
|
| 313 |
- eend $? |
|
| 314 |
- keepdir /var/www/localhost/htdocs |
|
| 315 |
- |
|
| 316 |
- if ! use no-suexec ; then |
|
| 317 |
- # Set some sane permissions for suexec |
|
| 318 |
- fowners 0:apache /usr/sbin/suexec |
|
| 319 |
- fperms 4710 /usr/sbin/suexec |
|
| 320 |
- fi |
|
| 321 |
- |
|
| 322 |
- keepdir /etc/apache2/vhosts.d |
|
| 323 |
- keepdir /etc/apache2/modules.d |
|
| 324 |
- |
|
| 325 |
- # empty dirs |
|
| 326 |
- for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do |
|
| 327 |
- keepdir ${i}
|
|
| 328 |
- fowners apache:apache ${i}
|
|
| 329 |
- fperms 0755 ${i}
|
|
| 330 |
- done |
|
| 331 |
- |
|
| 332 |
- # We'll be needing /etc/apache2/ssl if USE=ssl |
|
| 333 |
- use ssl && keepdir /etc/apache2/ssl |
|
| 334 |
-} |
|
| 335 |
- |
|
| 336 |
-pkg_postinst() {
|
|
| 337 |
- # Automatically generate test certificates if ssl USE flag is being set |
|
| 338 |
- if use ssl && [[ ! -e "${ROOT}/etc/apache2/ssl/server.crt" ]] ; then
|
|
| 339 |
- cd "${ROOT}"/etc/apache2/ssl
|
|
| 340 |
- einfo |
|
| 341 |
- einfo "Generating self-signed test certificate in ${ROOT}etc/apache2/ssl ..."
|
|
| 342 |
- yes "" 2>/dev/null | \ |
|
| 343 |
- "${ROOT}"/usr/sbin/gentestcrt.sh >/dev/null 2>&1 || \
|
|
| 344 |
- die "gentestcrt.sh failed" |
|
| 345 |
- einfo |
|
| 346 |
- fi |
|
| 347 |
- |
|
| 348 |
- # we do this here because the default webroot is a copy of the files |
|
| 349 |
- # that exist elsewhere and we don't want them managed/removed by portage |
|
| 350 |
- # when apache is upgraded. |
|
| 351 |
- |
|
| 352 |
- if [[ -e "${ROOT}/var/www/localhost" ]] ; then
|
|
| 353 |
- elog "The default webroot has not been installed into" |
|
| 354 |
- elog "${ROOT}var/www/localhost because the directory already exists"
|
|
| 355 |
- elog "and we do not want to overwrite any files you have put there." |
|
| 356 |
- elog |
|
| 357 |
- elog "If you would like to install the latest webroot, please run" |
|
| 358 |
- elog "emerge --config =${PF}"
|
|
| 359 |
- else |
|
| 360 |
- einfo "Installing default webroot to ${ROOT}var/www/localhost"
|
|
| 361 |
- mkdir -p "${ROOT}"/var/www/localhost
|
|
| 362 |
- cp -R "${ROOT}"/usr/share/doc/${PF}/webroot/* "${ROOT}"/var/www/localhost
|
|
| 363 |
- chown -R apache:0 "${ROOT}"/var/www/localhost
|
|
| 364 |
- fi |
|
| 365 |
- |
|
| 366 |
- # Previous installations of apache-2.2 installed the upstream configuration |
|
| 367 |
- # files, which shouldn't even have been installed! |
|
| 368 |
- if has_version '>=www-servers/apache-2.2.4' ; then |
|
| 369 |
- [ -f "${ROOT}"/etc/apache2/apache2.conf ] && \
|
|
| 370 |
- rm -f "${ROOT}"/etc/apache2/apache2.conf >/dev/null 2>&1
|
|
| 371 |
- |
|
| 372 |
- for i in extra original ; do |
|
| 373 |
- [ -d "${ROOT}"/etc/apache2/$i ] && \
|
|
| 374 |
- rm -rf "${ROOT}"/etc/apache2/$i >/dev/null 2>&1
|
|
| 375 |
- done |
|
| 376 |
- fi |
|
| 377 |
- |
|
| 378 |
- # Note regarding IfDefine changes |
|
| 379 |
- if has_version '<www-servers/apache-2.2.6-r1' ; then |
|
| 380 |
- elog |
|
| 381 |
- elog "When upgrading from versions 2.2.6 or earlier, please be aware" |
|
| 382 |
- elog "that the define for mod_authnz_ldap has changed from AUTH_LDAP" |
|
| 383 |
- elog "to AUTHNZ_LDAP. Additionally mod_auth_digest needs to be enabled" |
|
| 384 |
- elog "with AUTH_DIGEST now." |
|
| 385 |
- elog |
|
| 386 |
- fi |
|
| 387 |
- |
|
| 388 |
- # Note the changes regarding DEFAULT_VHOST and SSL_DEFAULT_VHOST |
|
| 389 |
- if has_version '<www-servers/apache-2.2.4-r7' ; then |
|
| 390 |
- elog |
|
| 391 |
- elog "Listen directives have been moved into the default virtual host" |
|
| 392 |
- elog "configuation. At least DEFAULT_VHOST has been enabled for you" |
|
| 393 |
- elog "(depending on your USE-flags." |
|
| 394 |
- elog |
|
| 395 |
- elog "If you disable DEFAULT_VHOST or SSL_DEFAULT_VHOST, there would" |
|
| 396 |
- elog "be no listening sockets available." |
|
| 397 |
- elog |
|
| 398 |
- fi |
|
| 399 |
- |
|
| 400 |
- # Note the user of the config changes |
|
| 401 |
- if has_version '<www-servers/apache-2.2.4-r5' ; then |
|
| 402 |
- elog |
|
| 403 |
- elog "Please make sure that you update your /etc directory." |
|
| 404 |
- elog "Between the versions, we had to changes some config files" |
|
| 405 |
- elog "and move some stuff out of the main httpd.conf file to a seperate" |
|
| 406 |
- elog "modules.d entry." |
|
| 407 |
- elog |
|
| 408 |
- elog "Thus please update your /etc directory either via etc-update," |
|
| 409 |
- elog "dispatch-conf or conf-update !" |
|
| 410 |
- elog |
|
| 411 |
- fi |
|
| 412 |
- |
|
| 413 |
- # Check for dual/upgrade install |
|
| 414 |
- if has_version '<www-servers/apache-2.2.0' ; then |
|
| 415 |
- elog |
|
| 416 |
- elog "When upgrading from versions below 2.2.0 to this version, you" |
|
| 417 |
- elog "need to rebuild all your modules. Please do so for your modules" |
|
| 418 |
- elog "to continue working correctly." |
|
| 419 |
- elog |
|
| 420 |
- elog "Also note that some configuration directives have been" |
|
| 421 |
- elog "split into their own files under ${ROOT}etc/apache2/modules.d/"
|
|
| 422 |
- elog "and that some modules, foremost the authentication related ones," |
|
| 423 |
- elog "have been renamed." |
|
| 424 |
- elog |
|
| 425 |
- elog "Some examples:" |
|
| 426 |
- elog " - USERDIR is now configureable in ${ROOT}etc/apache2/modules.d/00_mod_userdir.conf."
|
|
| 427 |
- elog |
|
| 428 |
- elog "For more information on what you may need to change, please" |
|
| 429 |
- elog "see the overview of changes at:" |
|
| 430 |
- elog "http://httpd.apache.org/docs/2.2/new_features_2_2.html" |
|
| 431 |
- elog "and the upgrading guide at:" |
|
| 432 |
- elog "http://httpd.apache.org/docs/2.2/upgrading.html" |
|
| 433 |
- elog |
|
| 434 |
- fi |
|
| 435 |
- |
|
| 436 |
- # Cleanup the vim backup files, placed in /etc/apache2 by the last |
|
| 437 |
- # patchtarball (gentoo-apache-2.2.4-r7-20070615) |
|
| 438 |
- rm -f "${ROOT}/etc/apache2/modules.d/*.conf~"
|
|
| 439 |
-} |
|
| 440 |
- |
|
| 441 |
-pkg_config() {
|
|
| 442 |
- einfo "Installing default webroot to ${ROOT}var/www/localhost"
|
|
| 443 |
- mkdir "${ROOT}"var{,/www{,/localhost}}
|
|
| 444 |
- cp -R "${ROOT}"usr/share/doc/${PF}/webroot/* "${ROOT}"var/www/localhost/
|
|
| 445 |
-} |
|
| 446 |
- |
|
| 447 |
-parse_modules_config() {
|
|
| 448 |
- local name="" |
|
| 449 |
- local disable="" |
|
| 450 |
- local version="undef" |
|
| 451 |
- MY_BUILTINS="" |
|
| 452 |
- mods="" |
|
| 453 |
- [[ -f "${1}" ]] || return 1
|
|
| 454 |
- |
|
| 455 |
- for i in $(sed 's/#.*//' < $1) ; do |
|
| 456 |
- if [[ "$i" == "VERSION:" ]] ; then |
|
| 457 |
- version="select" |
|
| 458 |
- elif [[ "${version}" == "select" ]] ; then
|
|
| 459 |
- version="$i" |
|
| 460 |
- # start with - option for backwards compatibility only |
|
| 461 |
- elif [[ "$i" == "-" ]] ; then |
|
| 462 |
- disable="true" |
|
| 463 |
- elif [[ -z "${name}" ]] && [[ "$i" != "${i/mod_/}" ]] ; then
|
|
| 464 |
- name="${i/mod_/}"
|
|
| 465 |
- elif [[ -n "${disable}" ]] || [[ "$i" == "disabled" ]] ; then
|
|
| 466 |
- MY_BUILTINS="${MY_BUILTINS} --disable-${name}"
|
|
| 467 |
- name="" ; disable="" |
|
| 468 |
- elif [[ "$i" == "static" ]] || use static-modules ; then |
|
| 469 |
- MY_BUILTINS="${MY_BUILTINS} --enable-${name}=static"
|
|
| 470 |
- name="" ; disable="" |
|
| 471 |
- elif [[ "$i" == "shared" ]] ; then |
|
| 472 |
- MY_BUILTINS="${MY_BUILTINS} --enable-${name}=shared"
|
|
| 473 |
- mods="${mods} ${name}"
|
|
| 474 |
- name="" ; disable="" |
|
| 475 |
- else |
|
| 476 |
- ewarn "Parse error in ${1} - unknown option: $i"
|
|
| 477 |
- fi |
|
| 478 |
- done |
|
| 479 |
- |
|
| 480 |
- # reject the file if it's unversioned or doesn't match our |
|
| 481 |
- # package major.minor. This is to make upgrading work smoothly. |
|
| 482 |
- if [[ "${version}" != "${PV%.*}" ]] ; then
|
|
| 483 |
- mods="" |
|
| 484 |
- MY_BUILTINS="" |
|
| 485 |
- return 1 |
|
| 486 |
- fi |
|
| 487 |
- |
|
| 488 |
- einfo "Using ${1}"
|
|
| 489 |
- einfo "options: ${MY_BUILTINS}"
|
|
| 490 |
- einfo "LoadModules: ${mods}"
|
|
| 491 |
-} |
|
| 492 |
- |
|
| 493 |
-select_modules_config() {
|
|
| 494 |
- parse_modules_config "${ROOT}"/etc/apache2/apache2-builtin-mods || \
|
|
| 495 |
- parse_modules_config "${GENTOO_PATCHDIR}"/conf/apache2-builtin-mods || \
|
|
| 496 |
- return 1 |
|
| 497 |
-} |
| ... | ... |
@@ -0,0 +1,180 @@ |
| 1 |
+# Copyright 1999-2008 Gentoo Foundation |
|
| 2 |
+# Distributed under the terms of the GNU General Public License v2 |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.2.6-r7.ebuild,v 1.6 2008/01/08 22:19:14 jer Exp $ |
|
| 4 |
+ |
|
| 5 |
+# latest gentoo apache files |
|
| 6 |
+GENTOO_PATCHSTAMP="20080107" |
|
| 7 |
+GENTOO_DEVELOPER="hollow" |
|
| 8 |
+ |
|
| 9 |
+# IUSE/USE_EXPAND magic |
|
| 10 |
+IUSE_MPMS_FORK="itk peruser prefork" |
|
| 11 |
+IUSE_MPMS_THREAD="event worker" |
|
| 12 |
+ |
|
| 13 |
+IUSE_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon |
|
| 14 |
+authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default |
|
| 15 |
+authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta |
|
| 16 |
+charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires |
|
| 17 |
+ext_filter file_cache filter headers ident imagemap include info log_config |
|
| 18 |
+log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp |
|
| 19 |
+proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling |
|
| 20 |
+status unique_id userdir usertrack version vhost_alias" |
|
| 21 |
+ |
|
| 22 |
+# inter-module dependencies |
|
| 23 |
+# TODO: this may still be incomplete |
|
| 24 |
+MODULE_DEPENDS=" |
|
| 25 |
+ dav_fs:dav |
|
| 26 |
+ dav_lock:dav |
|
| 27 |
+ deflate:filter |
|
| 28 |
+ disk_cache:cache |
|
| 29 |
+ ext_filter:filter |
|
| 30 |
+ file_cache:cache |
|
| 31 |
+ log_forensic:log_config |
|
| 32 |
+ logio:log_config |
|
| 33 |
+ mem_cache:cache |
|
| 34 |
+ mime_magic:mime |
|
| 35 |
+ proxy_ajp:proxy |
|
| 36 |
+ proxy_balancer:proxy |
|
| 37 |
+ proxy_connect:proxy |
|
| 38 |
+ proxy_ftp:proxy |
|
| 39 |
+ proxy_http:proxy |
|
| 40 |
+ usertrack:unique_id |
|
| 41 |
+" |
|
| 42 |
+ |
|
| 43 |
+# module<->define mappings |
|
| 44 |
+MODULE_DEFINES=" |
|
| 45 |
+ auth_digest:AUTH_DIGEST |
|
| 46 |
+ authnz_ldap:AUTHNZ_LDAP |
|
| 47 |
+ cache:CACHE |
|
| 48 |
+ dav:DAV |
|
| 49 |
+ dav_fs:DAV |
|
| 50 |
+ dav_lock:DAV |
|
| 51 |
+ disk_cache:CACHE |
|
| 52 |
+ file_cache:CACHE |
|
| 53 |
+ info:INFO |
|
| 54 |
+ ldap:LDAP |
|
| 55 |
+ mem_cache:CACHE |
|
| 56 |
+ proxy:PROXY |
|
| 57 |
+ proxy_ajp:PROXY |
|
| 58 |
+ proxy_balancer:PROXY |
|
| 59 |
+ proxy_connect:PROXY |
|
| 60 |
+ proxy_ftp:PROXY |
|
| 61 |
+ proxy_http:PROXY |
|
| 62 |
+ ssl:SSL |
|
| 63 |
+ status:INFO |
|
| 64 |
+ suexec:SUEXEC |
|
| 65 |
+ userdir:USERDIR |
|
| 66 |
+" |
|
| 67 |
+ |
|
| 68 |
+MODULE_CRITICAL=" |
|
| 69 |
+authz_host |
|
| 70 |
+dir |
|
| 71 |
+mime |
|
| 72 |
+" |
|
| 73 |
+ |
|
| 74 |
+inherit apache-2 |
|
| 75 |
+ |
|
| 76 |
+DESCRIPTION="The Apache Web Server." |
|
| 77 |
+HOMEPAGE="http://httpd.apache.org/" |
|
| 78 |
+ |
|
| 79 |
+# some helper scripts are apache-1.1, thus both are here |
|
| 80 |
+LICENSE="Apache-2.0 Apache-1.1" |
|
| 81 |
+SLOT="2" |
|
| 82 |
+KEYWORDS="alpha ~amd64 ~arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd" |
|
| 83 |
+IUSE="sni" |
|
| 84 |
+ |
|
| 85 |
+DEPEND="${DEPEND}
|
|
| 86 |
+ apache2_modules_deflate? ( sys-libs/zlib )" |
|
| 87 |
+ |
|
| 88 |
+RDEPEND="${RDEPEND}
|
|
| 89 |
+ apache2_modules_mime? ( app-misc/mime-types )" |
|
| 90 |
+ |
|
| 91 |
+src_unpack() {
|
|
| 92 |
+ if ! use sni ; then |
|
| 93 |
+ EPATCH_EXCLUDE="04_all_mod_ssl_tls_sni.patch" |
|
| 94 |
+ fi |
|
| 95 |
+ |
|
| 96 |
+ apache-2_src_unpack |
|
| 97 |
+ |
|
| 98 |
+ cd "${S}"
|
|
| 99 |
+ epatch "${FILESDIR}/apache-noip.diff" || die
|
|
| 100 |
+} |
|
| 101 |
+ |
|
| 102 |
+pkg_postinst() {
|
|
| 103 |
+ apache-2_pkg_postinst |
|
| 104 |
+ |
|
| 105 |
+ # previous installations of apache-2.2 installed the upstream configuration |
|
| 106 |
+ # files, which shouldn't even have been installed! |
|
| 107 |
+ if has_version '>=www-servers/apache-2.2.4' ; then |
|
| 108 |
+ if [[ -f "${ROOT}"etc/apache2/apache2.conf ]] ; then
|
|
| 109 |
+ rm -f "${ROOT}"/etc/apache2/apache2.conf >/dev/null 2>&1
|
|
| 110 |
+ fi |
|
| 111 |
+ |
|
| 112 |
+ for i in extra original ; do |
|
| 113 |
+ if [[ -d "${ROOT}"/etc/apache2/${i} ]] ; then
|
|
| 114 |
+ rm -rf "${ROOT}"/etc/apache2/${i} >/dev/null 2>&1
|
|
| 115 |
+ fi |
|
| 116 |
+ done |
|
| 117 |
+ fi |
|
| 118 |
+ |
|
| 119 |
+ # note regarding IfDefine changes |
|
| 120 |
+ if has_version '<www-servers/apache-2.2.6-r1' ; then |
|
| 121 |
+ elog |
|
| 122 |
+ elog "When upgrading from versions 2.2.6 or earlier, please be aware" |
|
| 123 |
+ elog "that the define for mod_authnz_ldap has changed from AUTH_LDAP" |
|
| 124 |
+ elog "to AUTHNZ_LDAP. Additionally mod_auth_digest needs to be enabled" |
|
| 125 |
+ elog "with AUTH_DIGEST now." |
|
| 126 |
+ elog |
|
| 127 |
+ fi |
|
| 128 |
+ |
|
| 129 |
+ # note the changes regarding DEFAULT_VHOST and SSL_DEFAULT_VHOST |
|
| 130 |
+ if has_version '<www-servers/apache-2.2.4-r7' ; then |
|
| 131 |
+ elog |
|
| 132 |
+ elog "Listen directives have been moved into the default virtual host" |
|
| 133 |
+ elog "configuation. At least DEFAULT_VHOST has been enabled for you" |
|
| 134 |
+ elog "(depending on your USE-flags.)" |
|
| 135 |
+ elog |
|
| 136 |
+ elog "If you disable DEFAULT_VHOST or SSL_DEFAULT_VHOST, there will" |
|
| 137 |
+ elog "be no listening sockets available." |
|
| 138 |
+ elog |
|
| 139 |
+ fi |
|
| 140 |
+ |
|
| 141 |
+ # note the user of the config changes |
|
| 142 |
+ if has_version '<www-servers/apache-2.2.4-r5' ; then |
|
| 143 |
+ elog |
|
| 144 |
+ elog "Please make sure that you update your /etc directory." |
|
| 145 |
+ elog "Between the versions, we had to changes some config files" |
|
| 146 |
+ elog "and move some stuff out of the main httpd.conf file to a seperate" |
|
| 147 |
+ elog "modules.d entry." |
|
| 148 |
+ elog |
|
| 149 |
+ elog "Thus please update your /etc directory either via etc-update," |
|
| 150 |
+ elog "dispatch-conf or conf-update !" |
|
| 151 |
+ elog |
|
| 152 |
+ fi |
|
| 153 |
+ |
|
| 154 |
+ # check for dual/upgrade install |
|
| 155 |
+ if has_version '<www-servers/apache-2.2.0' ; then |
|
| 156 |
+ elog |
|
| 157 |
+ elog "When upgrading from versions below 2.2.0 to this version, you" |
|
| 158 |
+ elog "need to rebuild all your modules. Please do so for your modules" |
|
| 159 |
+ elog "to continue working correctly." |
|
| 160 |
+ elog |
|
| 161 |
+ elog "Also note that some configuration directives have been" |
|
| 162 |
+ elog "split into their own files under ${ROOT}etc/apache2/modules.d/"
|
|
| 163 |
+ elog "and that some modules, foremost the authentication related ones," |
|
| 164 |
+ elog "have been renamed." |
|
| 165 |
+ elog |
|
| 166 |
+ elog "Some examples:" |
|
| 167 |
+ elog " - USERDIR is now configureable in ${ROOT}etc/apache2/modules.d/00_mod_userdir.conf."
|
|
| 168 |
+ elog |
|
| 169 |
+ elog "For more information on what you may need to change, please" |
|
| 170 |
+ elog "see the overview of changes at:" |
|
| 171 |
+ elog "http://httpd.apache.org/docs/2.2/new_features_2_2.html" |
|
| 172 |
+ elog "and the upgrading guide at:" |
|
| 173 |
+ elog "http://httpd.apache.org/docs/2.2/upgrading.html" |
|
| 174 |
+ elog |
|
| 175 |
+ fi |
|
| 176 |
+ |
|
| 177 |
+ # cleanup the vim backup files, placed in /etc/apache2 by the last |
|
| 178 |
+ # patchtarball (gentoo-apache-2.2.4-r7-20070615) |
|
| 179 |
+ rm -f "${ROOT}etc/apache2/modules.d/*.conf~"
|
|
| 180 |
+} |
| ... | ... |
@@ -1,482 +0,0 @@ |
| 1 |
-# Copyright 1999-2007 Gentoo Foundation |
|
| 2 |
-# Distributed under the terms of the GNU General Public License v2 |
|
| 3 |
-# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.2.6.ebuild,v 1.11 2007/09/25 14:31:47 armin76 Exp $ |
|
| 4 |
- |
|
| 5 |
-inherit eutils flag-o-matic multilib autotools |
|
| 6 |
- |
|
| 7 |
-# latest gentoo apache files |
|
| 8 |
-GENTOO_PATCHNAME="gentoo-${PF}"
|
|
| 9 |
-GENTOO_PATCHSTAMP="20070907" |
|
| 10 |
-GENTOO_DEVSPACE="hollow" |
|
| 11 |
-GENTOO_PATCHDIR="${WORKDIR}/${GENTOO_PATCHNAME}"
|
|
| 12 |
- |
|
| 13 |
-DESCRIPTION="The Apache Web Server." |
|
| 14 |
-HOMEPAGE="http://httpd.apache.org/" |
|
| 15 |
-SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2
|
|
| 16 |
- http://dev.gentoo.org/~${GENTOO_DEVSPACE}/dist/apache/${GENTOO_PATCHNAME}-${GENTOO_PATCHSTAMP}.tar.bz2"
|
|
| 17 |
- |
|
| 18 |
-# some helper scripts are apache-1.1, thus both are here |
|
| 19 |
-LICENSE="Apache-2.0 Apache-1.1" |
|
| 20 |
-SLOT="2" |
|
| 21 |
-KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd" |
|
| 22 |
-IUSE="debug doc ldap mpm-event mpm-itk mpm-peruser mpm-prefork mpm-worker no-suexec selinux ssl static-modules threads" |
|
| 23 |
- |
|
| 24 |
-DEPEND="dev-lang/perl |
|
| 25 |
- =dev-libs/apr-1* |
|
| 26 |
- =dev-libs/apr-util-1* |
|
| 27 |
- dev-libs/expat |
|
| 28 |
- dev-libs/libpcre |
|
| 29 |
- sys-libs/zlib |
|
| 30 |
- ldap? ( =net-nds/openldap-2* ) |
|
| 31 |
- selinux? ( sec-policy/selinux-apache ) |
|
| 32 |
- ssl? ( dev-libs/openssl ) |
|
| 33 |
- !=www-servers/apache-1* |
|
| 34 |
- !=app-admin/apache-tools-2.2.4-r2" |
|
| 35 |
- |
|
| 36 |
-RDEPEND="${DEPEND}
|
|
| 37 |
- app-misc/mime-types" |
|
| 38 |
- |
|
| 39 |
-PDEPEND="~app-admin/apache-tools-${PV}"
|
|
| 40 |
- |
|
| 41 |
-S="${WORKDIR}/httpd-${PV}"
|
|
| 42 |
- |
|
| 43 |
-pkg_setup() {
|
|
| 44 |
- if use ldap && ! built_with_use 'dev-libs/apr-util' ldap ; then |
|
| 45 |
- eerror "dev-libs/apr-util is missing LDAP support. For apache to have" |
|
| 46 |
- eerror "ldap support, apr-util must be built with the ldap USE-flag" |
|
| 47 |
- eerror "enabled." |
|
| 48 |
- die "ldap USE-flag enabled while not supported in apr-util" |
|
| 49 |
- fi |
|
| 50 |
- |
|
| 51 |
- # Select the default MPM module |
|
| 52 |
- MPM_LIST="event itk peruser prefork worker" |
|
| 53 |
- for x in ${MPM_LIST} ; do
|
|
| 54 |
- if use mpm-${x} ; then
|
|
| 55 |
- if [[ "x${mpm}" == "x" ]] ; then
|
|
| 56 |
- mpm=${x}
|
|
| 57 |
- elog |
|
| 58 |
- elog "Selected MPM: ${mpm}"
|
|
| 59 |
- elog |
|
| 60 |
- else |
|
| 61 |
- eerror "You have selected more then one mpm USE-flag." |
|
| 62 |
- eerror "Only one MPM is supported." |
|
| 63 |
- die "more then one mpm was specified" |
|
| 64 |
- fi |
|
| 65 |
- fi |
|
| 66 |
- done |
|
| 67 |
- |
|
| 68 |
- if [[ "x${mpm}" == "x" ]] ; then
|
|
| 69 |
- if use threads ; then |
|
| 70 |
- mpm=worker |
|
| 71 |
- elog |
|
| 72 |
- elog "Selected default threaded MPM: ${mpm}";
|
|
| 73 |
- elog |
|
| 74 |
- else |
|
| 75 |
- mpm=prefork |
|
| 76 |
- elog |
|
| 77 |
- elog "Selected default MPM: ${mpm}";
|
|
| 78 |
- elog |
|
| 79 |
- fi |
|
| 80 |
- fi |
|
| 81 |
- |
|
| 82 |
- # setup apache user and group |
|
| 83 |
- enewgroup apache 81 |
|
| 84 |
- enewuser apache 81 -1 /var/www apache |
|
| 85 |
- |
|
| 86 |
- if ! use no-suexec ; then |
|
| 87 |
- elog |
|
| 88 |
- elog "You can manipulate several configure options of suexec" |
|
| 89 |
- elog "through the following environment variables:" |
|
| 90 |
- elog |
|
| 91 |
- elog " SUEXEC_SAFEPATH: Default PATH for suexec (default: /usr/local/bin:/usr/bin:/bin)" |
|
| 92 |
- elog " SUEXEC_LOGFILE: Path to the suexec logfile (default: /var/log/apache2/suexec_log)" |
|
| 93 |
- elog " SUEXEC_CALLER: Name of the user Apache is running as (default: apache)" |
|
| 94 |
- elog " SUEXEC_DOCROOT: Directory in which suexec will run scripts (default: /var/www)" |
|
| 95 |
- elog " SUEXEC_MINUID: Minimum UID, which is allowed to run scripts via suexec (default: 1000)" |
|
| 96 |
- elog " SUEXEC_MINGID: Minimum GID, which is allowed to run scripts via suexec (default: 100)" |
|
| 97 |
- elog " SUEXEC_USERDIR: User subdirectories (like /home/user/html) (default: public_html)" |
|
| 98 |
- elog " SUEXEC_UMASK: Umask for the suexec process (default: 077)" |
|
| 99 |
- elog |
|
| 100 |
- fi |
|
| 101 |
-} |
|
| 102 |
- |
|
| 103 |
-src_unpack() {
|
|
| 104 |
- unpack ${A}
|
|
| 105 |
- cd "${S}"
|
|
| 106 |
- epatch "${FILESDIR}/apache-noip.diff"
|
|
| 107 |
- |
|
| 108 |
- # Use correct multilib libdir in gentoo patches |
|
| 109 |
- sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" \ |
|
| 110 |
- "${GENTOO_PATCHDIR}"/{conf/httpd.conf,init/*,patches/config.layout} \
|
|
| 111 |
- || die "libdir sed failed" |
|
| 112 |
- |
|
| 113 |
- #### Patch Organization |
|
| 114 |
- # 00-19 Gentoo specific (00_all_some-title.patch) |
|
| 115 |
- # 20-39 Additional MPMs (20_all_${MPM}_some-title.patch)
|
|
| 116 |
- # 40-59 USE-flag based (40_all_${USE}_some-title.patch)
|
|
| 117 |
- # 60-79 Version specific (60_all_${PV}_some-title.patch)
|
|
| 118 |
- # 80-99 Security patches (80_all_${PV}_cve-####-####.patch)
|
|
| 119 |
- |
|
| 120 |
- epatch "${GENTOO_PATCHDIR}"/patches/*.patch
|
|
| 121 |
- |
|
| 122 |
- # setup the filesystem layout config |
|
| 123 |
- cat "${GENTOO_PATCHDIR}"/patches/config.layout >> "${S}"/config.layout || \
|
|
| 124 |
- die "Failed preparing config.layout!" |
|
| 125 |
- sed -i -e "s:version:${PF}:g" "${S}"/config.layout
|
|
| 126 |
- |
|
| 127 |
- # patched-in MPMs need the build environment rebuilt |
|
| 128 |
- sed -i -e '/sinclude/d' configure.in |
|
| 129 |
- AT_GNUCONF_UPDATE=yes AT_M4DIR=build eautoreconf |
|
| 130 |
-} |
|
| 131 |
- |
|
| 132 |
-src_compile() {
|
|
| 133 |
- local modtype="shared" myconf="" |
|
| 134 |
- cd "${S}"
|
|
| 135 |
- |
|
| 136 |
- # Instead of filtering --as-needed (bug #128505), append --no-as-needed |
|
| 137 |
- # Thanks to Harald van Dijk |
|
| 138 |
- append-ldflags -Wl,--no-as-needed |
|
| 139 |
- |
|
| 140 |
- # peruser MPM debugging with -X is nearly impossible |
|
| 141 |
- use mpm-peruser && use debug && append-flags -DMPM_PERUSER_DEBUG |
|
| 142 |
- |
|
| 143 |
- use static-modules && modtype="static" |
|
| 144 |
- select_modules_config || die "determining modules failed" |
|
| 145 |
- |
|
| 146 |
- if use ldap ; then |
|
| 147 |
- mods="${mods} ldap authnz_ldap"
|
|
| 148 |
- myconf="${myconf} --enable-authnz-ldap=${modtype} --enable-ldap=${modtype}"
|
|
| 149 |
- fi |
|
| 150 |
- |
|
| 151 |
- if use threads || use mpm-worker || use mpm-event; then |
|
| 152 |
- mods="${mods} cgid"
|
|
| 153 |
- myconf="${myconf} --enable-cgid=${modtype}"
|
|
| 154 |
- else |
|
| 155 |
- mods="${mods} cgi"
|
|
| 156 |
- myconf="${myconf} --enable-cgi=${modtype}"
|
|
| 157 |
- fi |
|
| 158 |
- |
|
| 159 |
- if use ssl; then |
|
| 160 |
- mods="${mods} ssl"
|
|
| 161 |
- myconf="${myconf} --with-ssl=/usr --enable-ssl=${modtype}"
|
|
| 162 |
- fi |
|
| 163 |
- |
|
| 164 |
- # Only build suexec with USE=-no-suexec |
|
| 165 |
- if use no-suexec ; then |
|
| 166 |
- myconf="${myconf} --disable-suexec"
|
|
| 167 |
- else |
|
| 168 |
- myconf="${myconf} --with-suexec-safepath=${SUEXEC_SAFEPATH:-/usr/local/bin:/usr/bin:/bin}"
|
|
| 169 |
- myconf="${myconf} --with-suexec-logfile=${SUEXEC_LOGFILE:-/var/log/apache2/suexec_log}"
|
|
| 170 |
- myconf="${myconf} --with-suexec-bin=/usr/sbin/suexec"
|
|
| 171 |
- myconf="${myconf} --with-suexec-userdir=${SUEXEC_USERDIR:-public_html}"
|
|
| 172 |
- myconf="${myconf} --with-suexec-caller=${SUEXEC_CALLER:-apache}"
|
|
| 173 |
- myconf="${myconf} --with-suexec-docroot=${SUEXEC_DOCROOT:-/var/www}"
|
|
| 174 |
- myconf="${myconf} --with-suexec-uidmin=${SUEXEC_MINUID:-1000}"
|
|
| 175 |
- myconf="${myconf} --with-suexec-gidmin=${SUEXEC_MINGID:-100}"
|
|
| 176 |
- myconf="${myconf} --with-suexec-umask=${SUEXEC_UMASK:-077}"
|
|
| 177 |
- myconf="${myconf} --enable-suexec=${modtype}"
|
|
| 178 |
- mods="${mods} suexec"
|
|
| 179 |
- fi |
|
| 180 |
- |
|
| 181 |
- # econf overwrites the stuff from config.layout, so we have to put them into |
|
| 182 |
- # our myconf line too |
|
| 183 |
- |
|
| 184 |
- econf \ |
|
| 185 |
- --includedir=/usr/include/apache2 \ |
|
| 186 |
- --libexecdir=/usr/$(get_libdir)/apache2/modules \ |
|
| 187 |
- --datadir=/var/www/localhost \ |
|
| 188 |
- --sysconfdir=/etc/apache2 \ |
|
| 189 |
- --localstatedir=/var \ |
|
| 190 |
- --with-mpm=${mpm} \
|
|
| 191 |
- --with-perl=/usr/bin/perl \ |
|
| 192 |
- --with-expat=/usr \ |
|
| 193 |
- --with-z=/usr \ |
|
| 194 |
- --with-apr=/usr \ |
|
| 195 |
- --with-apr-util=/usr \ |
|
| 196 |
- --with-pcre=/usr \ |
|
| 197 |
- --with-port=80 \ |
|
| 198 |
- --with-program-name=apache2 \ |
|
| 199 |
- --enable-layout=Gentoo \ |
|
| 200 |
- $(use_enable debug maintainer-mode) \ |
|
| 201 |
- $(use_enable debug exception-hook) \ |
|
| 202 |
- ${myconf} ${MY_BUILTINS} || die "econf failed!"
|
|
| 203 |
- |
|
| 204 |
- sed -i -e 's:apache2\.conf:httpd.conf:' include/ap_config_auto.h |
|
| 205 |
- |
|
| 206 |
- emake || die "emake failed" |
|
| 207 |
-} |
|
| 208 |
- |
|
| 209 |
-src_install () {
|
|
| 210 |
- emake DESTDIR="${D}" install || die "emake install failed"
|
|
| 211 |
- |
|
| 212 |
- # This is a mapping of module names to the -D options in APACHE2_OPTS |
|
| 213 |
- # Used for creating optional LoadModule lines |
|
| 214 |
- mod_defines=" |
|
| 215 |
- authnz_ldap:AUTH_LDAP |
|
| 216 |
- cache:CACHE |
|
| 217 |
- dav:DAV |
|
| 218 |
- dav_fs:DAV |
|
| 219 |
- dav_lock:DAV |
|
| 220 |
- disk_cache:CACHE |
|
| 221 |
- file_cache:CACHE |
|
| 222 |
- info:INFO |
|
| 223 |
- ldap:LDAP |
|
| 224 |
- mem_cache:CACHE |
|
| 225 |
- proxy:PROXY |
|
| 226 |
- proxy_ajp:PROXY |
|
| 227 |
- proxy_balancer:PROXY |
|
| 228 |
- proxy_connect:PROXY |
|
| 229 |
- proxy_http:PROXY |
|
| 230 |
- ssl:SSL |
|
| 231 |
- status:INFO |
|
| 232 |
- suexec:SUEXEC |
|
| 233 |
- userdir:USERDIR |
|
| 234 |
- " |
|
| 235 |
- |
|
| 236 |
- # create our LoadModule lines |
|
| 237 |
- if ! use static-modules ; then |
|
| 238 |
- load_module="" |
|
| 239 |
- moddir="${D}/usr/$(get_libdir)/apache2/modules"
|
|
| 240 |
- for m in $(echo ${mods}|tr ' ' '\n'|sort -u) ; do
|
|
| 241 |
- endid="no" |
|
| 242 |
- |
|
| 243 |
- if [[ -e "${moddir}/mod_${m}.so" ]] ; then
|
|
| 244 |
- for def in ${mod_defines} ; do
|
|
| 245 |
- if [[ "${m}" == "${def%:*}" ]] ; then
|
|
| 246 |
- load_module="${load_module}\n<IfDefine ${def#*:}>"
|
|
| 247 |
- endid="yes" |
|
| 248 |
- fi |
|
| 249 |
- done |
|
| 250 |
- load_module="${load_module}\nLoadModule ${m}_module modules/mod_${m}.so"
|
|
| 251 |
- if [[ "${endid}" == "yes" ]] ; then
|
|
| 252 |
- load_module="${load_module}\n</IfDefine>"
|
|
| 253 |
- fi |
|
| 254 |
- fi |
|
| 255 |
- done |
|
| 256 |
- fi |
|
| 257 |
- sed -i -e "s:%%LOAD_MODULE%%:${load_module}:" \
|
|
| 258 |
- "${GENTOO_PATCHDIR}"/conf/httpd.conf || die "sed failed"
|
|
| 259 |
- |
|
| 260 |
- # Install our configuration files |
|
| 261 |
- insinto /etc/apache2 |
|
| 262 |
- doins docs/conf/magic |
|
| 263 |
- doins -r "${GENTOO_PATCHDIR}"/conf/*
|
|
| 264 |
- insinto /etc/logrotate.d |
|
| 265 |
- newins "${GENTOO_PATCHDIR}"/scripts/apache2-logrotate apache2
|
|
| 266 |
- |
|
| 267 |
- # generate a sane default APACHE2_OPTS |
|
| 268 |
- APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE" |
|
| 269 |
- use doc && APACHE2_OPTS="${APACHE2_OPTS} -D MANUAL"
|
|
| 270 |
- use ssl && APACHE2_OPTS="${APACHE2_OPTS} -D SSL -D SSL_DEFAULT_VHOST"
|
|
| 271 |
- use no-suexec || APACHE2_OPTS="${APACHE2_OPTS} -D SUEXEC"
|
|
| 272 |
- |
|
| 273 |
- sed -i -e "s:APACHE2_OPTS=\".*\":APACHE2_OPTS=\"${APACHE2_OPTS}\":" \
|
|
| 274 |
- "${GENTOO_PATCHDIR}"/init/apache2.confd || die "sed failed"
|
|
| 275 |
- |
|
| 276 |
- newconfd "${GENTOO_PATCHDIR}"/init/apache2.confd apache2
|
|
| 277 |
- newinitd "${GENTOO_PATCHDIR}"/init/apache2.initd apache2
|
|
| 278 |
- |
|
| 279 |
- # Link apache2ctl to the init script |
|
| 280 |
- dosym /etc/init.d/apache2 /usr/sbin/apache2ctl |
|
| 281 |
- |
|
| 282 |
- # provide symlinks for all the stuff we no longer rename, bug 177697 |
|
| 283 |
- for i in suexec apxs; do |
|
| 284 |
- dosym /usr/sbin/${i} /usr/sbin/${i}2
|
|
| 285 |
- done |
|
| 286 |
- |
|
| 287 |
- # Install some thirdparty scripts |
|
| 288 |
- exeinto /usr/sbin |
|
| 289 |
- for i in apache2logserverstatus apache2splitlogfile ; do |
|
| 290 |
- doexe "${GENTOO_PATCHDIR}"/scripts/${i}
|
|
| 291 |
- done |
|
| 292 |
- use ssl && doexe "${GENTOO_PATCHDIR}"/scripts/gentestcrt.sh
|
|
| 293 |
- |
|
| 294 |
- # Install some documentation |
|
| 295 |
- dodoc ABOUT_APACHE CHANGES LAYOUT README README.platforms VERSIONING |
|
| 296 |
- dodoc "${GENTOO_PATCHDIR}"/docs/*
|
|
| 297 |
- |
|
| 298 |
- # drop in a convenient link to the manual |
|
| 299 |
- if use doc ; then |
|
| 300 |
- sed -i -e "s:VERSION:${PVR}:" "${D}/etc/apache2/modules.d/00_apache_manual.conf"
|
|
| 301 |
- else |
|
| 302 |
- rm -f "${D}/etc/apache2/modules.d/00_apache_manual.conf"
|
|
| 303 |
- rm -Rf "${D}/usr/share/doc/${PF}/manual"
|
|
| 304 |
- fi |
|
| 305 |
- |
|
| 306 |
- # the default webroot gets stored in /usr/share/doc |
|
| 307 |
- ebegin "Installing default webroot to /usr/share/doc/${PF}"
|
|
| 308 |
- mv -f "${D}/var/www/localhost" "${D}/usr/share/doc/${PF}/webroot"
|
|
| 309 |
- eend $? |
|
| 310 |
- keepdir /var/www/localhost/htdocs |
|
| 311 |
- |
|
| 312 |
- if ! use no-suexec ; then |
|
| 313 |
- # Set some sane permissions for suexec |
|
| 314 |
- fowners 0:apache /usr/sbin/suexec |
|
| 315 |
- fperms 4710 /usr/sbin/suexec |
|
| 316 |
- fi |
|
| 317 |
- |
|
| 318 |
- keepdir /etc/apache2/vhosts.d |
|
| 319 |
- keepdir /etc/apache2/modules.d |
|
| 320 |
- |
|
| 321 |
- # empty dirs |
|
| 322 |
- for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do |
|
| 323 |
- keepdir ${i}
|
|
| 324 |
- fowners apache:apache ${i}
|
|
| 325 |
- fperms 0755 ${i}
|
|
| 326 |
- done |
|
| 327 |
- |
|
| 328 |
- # We'll be needing /etc/apache2/ssl if USE=ssl |
|
| 329 |
- use ssl && keepdir /etc/apache2/ssl |
|
| 330 |
-} |
|
| 331 |
- |
|
| 332 |
-pkg_postinst() {
|
|
| 333 |
- # Automatically generate test certificates if ssl USE flag is being set |
|
| 334 |
- if use ssl && [[ ! -e "${ROOT}/etc/apache2/ssl/server.crt" ]] ; then
|
|
| 335 |
- cd "${ROOT}"/etc/apache2/ssl
|
|
| 336 |
- einfo |
|
| 337 |
- einfo "Generating self-signed test certificate in ${ROOT}/etc/apache2/ssl ..."
|
|
| 338 |
- yes "" 2>/dev/null | \ |
|
| 339 |
- "${ROOT}"/usr/sbin/gentestcrt.sh >/dev/null 2>&1 || \
|
|
| 340 |
- die "gentestcrt.sh failed" |
|
| 341 |
- einfo |
|
| 342 |
- fi |
|
| 343 |
- |
|
| 344 |
- # we do this here because the default webroot is a copy of the files |
|
| 345 |
- # that exist elsewhere and we don't want them managed/removed by portage |
|
| 346 |
- # when apache is upgraded. |
|
| 347 |
- |
|
| 348 |
- if [[ -e "${ROOT}/var/www/localhost" ]] ; then
|
|
| 349 |
- elog "The default webroot has not been installed into" |
|
| 350 |
- elog "${ROOT}/var/www/localhost because the directory already exists"
|
|
| 351 |
- elog "and we do not want to overwrite any files you have put there." |
|
| 352 |
- elog |
|
| 353 |
- elog "If you would like to install the latest webroot, please run" |
|
| 354 |
- elog "emerge --config =${PF}"
|
|
| 355 |
- else |
|
| 356 |
- einfo "Installing default webroot to ${ROOT}/var/www/localhost"
|
|
| 357 |
- mkdir -p "${ROOT}"/var/www/localhost
|
|
| 358 |
- cp -R "${ROOT}"/usr/share/doc/${PF}/webroot/* "${ROOT}"/var/www/localhost
|
|
| 359 |
- chown -R apache:0 "${ROOT}"/var/www/localhost
|
|
| 360 |
- fi |
|
| 361 |
- |
|
| 362 |
- # Previous installations of apache-2.2 installed the upstream configuration |
|
| 363 |
- # files, which shouldn't even have been installed! |
|
| 364 |
- if has_version '>=www-servers/apache-2.2.4' ; then |
|
| 365 |
- [ -f "${ROOT}"/etc/apache2/apache2.conf ] && \
|
|
| 366 |
- rm -f "${ROOT}"/etc/apache2/apache2.conf >/dev/null 2>&1
|
|
| 367 |
- |
|
| 368 |
- for i in extra original ; do |
|
| 369 |
- [ -d "${ROOT}"/etc/apache2/$i ] && \
|
|
| 370 |
- rm -rf "${ROOT}"/etc/apache2/$i >/dev/null 2>&1
|
|
| 371 |
- done |
|
| 372 |
- fi |
|
| 373 |
- |
|
| 374 |
- # Note the changes regarding DEFAULT_VHOST and SSL_DEFAULT_VHOST |
|
| 375 |
- if has_version '<www-servers/apache-2.2.4-r7' ; then |
|
| 376 |
- elog |
|
| 377 |
- elog "Listen directives have been moved into the default virtual host" |
|
| 378 |
- elog "configuation. At least DEFAULT_VHOST has been enabled for you" |
|
| 379 |
- elog "(depending on your USE-flags." |
|
| 380 |
- elog |
|
| 381 |
- elog "If you disable DEFAULT_VHOST or SSL_DEFAULT_VHOST, there would" |
|
| 382 |
- elog "be no listening sockets available." |
|
| 383 |
- elog |
|
| 384 |
- fi |
|
| 385 |
- |
|
| 386 |
- # Note the user of the config changes |
|
| 387 |
- if has_version '<www-servers/apache-2.2.4-r5' ; then |
|
| 388 |
- elog |
|
| 389 |
- elog "Please make sure that you update your /etc directory." |
|
| 390 |
- elog "Between the versions, we had to changes some config files" |
|
| 391 |
- elog "and move some stuff out of the main httpd.conf file to a seperate" |
|
| 392 |
- elog "modules.d entry." |
|
| 393 |
- elog |
|
| 394 |
- elog "Thus please update your /etc directory either via etc-update," |
|
| 395 |
- elog "dispatch-conf or conf-update !" |
|
| 396 |
- elog |
|
| 397 |
- fi |
|
| 398 |
- |
|
| 399 |
- # Check for dual/upgrade install |
|
| 400 |
- if has_version '<www-servers/apache-2.2.0' ; then |
|
| 401 |
- elog |
|
| 402 |
- elog "When upgrading from versions below 2.2.0 to this version, you" |
|
| 403 |
- elog "need to rebuild all your modules. Please do so for your modules" |
|
| 404 |
- elog "to continue working correctly." |
|
| 405 |
- elog |
|
| 406 |
- elog "Also note that some configuration directives have been" |
|
| 407 |
- elog "split into their own files under ${ROOT}/etc/apache2/modules.d/"
|
|
| 408 |
- elog "and that some modules, foremost the authentication related ones," |
|
| 409 |
- elog "have been renamed." |
|
| 410 |
- elog |
|
| 411 |
- elog "Some examples:" |
|
| 412 |
- elog " - USERDIR is now configureable in ${ROOT}etc/apache2/modules.d/00_mod_userdir.conf."
|
|
| 413 |
- elog |
|
| 414 |
- elog "For more information on what you may need to change, please" |
|
| 415 |
- elog "see the overview of changes at:" |
|
| 416 |
- elog "http://httpd.apache.org/docs/2.2/new_features_2_2.html" |
|
| 417 |
- elog "and the upgrading guide at:" |
|
| 418 |
- elog "http://httpd.apache.org/docs/2.2/upgrading.html" |
|
| 419 |
- elog |
|
| 420 |
- fi |
|
| 421 |
- |
|
| 422 |
- # Cleanup the vim backup files, placed in /etc/apache2 by the last |
|
| 423 |
- # patchtarball (gentoo-apache-2.2.4-r7-20070615) |
|
| 424 |
- rm -f "${ROOT}/etc/apache2/modules.d/*.conf~"
|
|
| 425 |
-} |
|
| 426 |
- |
|
| 427 |
-pkg_config() {
|
|
| 428 |
- einfo "Installing default webroot to ${ROOT}/var/www/localhost"
|
|
| 429 |
- cp -R "${ROOT}"/usr/share/doc/${PF}/webroot/* "${ROOT}"/var/www/localhost
|
|
| 430 |
-} |
|
| 431 |
- |
|
| 432 |
-parse_modules_config() {
|
|
| 433 |
- local name="" |
|
| 434 |
- local disable="" |
|
| 435 |
- local version="undef" |
|
| 436 |
- MY_BUILTINS="" |
|
| 437 |
- mods="" |
|
| 438 |
- [[ -f "${1}" ]] || return 1
|
|
| 439 |
- |
|
| 440 |
- for i in $(sed 's/#.*//' < $1) ; do |
|
| 441 |
- if [[ "$i" == "VERSION:" ]] ; then |
|
| 442 |
- version="select" |
|
| 443 |
- elif [[ "${version}" == "select" ]] ; then
|
|
| 444 |
- version="$i" |
|
| 445 |
- # start with - option for backwards compatibility only |
|
| 446 |
- elif [[ "$i" == "-" ]] ; then |
|
| 447 |
- disable="true" |
|
| 448 |
- elif [[ -z "${name}" ]] && [[ "$i" != "${i/mod_/}" ]] ; then
|
|
| 449 |
- name="${i/mod_/}"
|
|
| 450 |
- elif [[ -n "${disable}" ]] || [[ "$i" == "disabled" ]] ; then
|
|
| 451 |
- MY_BUILTINS="${MY_BUILTINS} --disable-${name}"
|
|
| 452 |
- name="" ; disable="" |
|
| 453 |
- elif [[ "$i" == "static" ]] || use static-modules ; then |
|
| 454 |
- MY_BUILTINS="${MY_BUILTINS} --enable-${name}=static"
|
|
| 455 |
- name="" ; disable="" |
|
| 456 |
- elif [[ "$i" == "shared" ]] ; then |
|
| 457 |
- MY_BUILTINS="${MY_BUILTINS} --enable-${name}=shared"
|
|
| 458 |
- mods="${mods} ${name}"
|
|
| 459 |
- name="" ; disable="" |
|
| 460 |
- else |
|
| 461 |
- ewarn "Parse error in ${1} - unknown option: $i"
|
|
| 462 |
- fi |
|
| 463 |
- done |
|
| 464 |
- |
|
| 465 |
- # reject the file if it's unversioned or doesn't match our |
|
| 466 |
- # package major.minor. This is to make upgrading work smoothly. |
|
| 467 |
- if [[ "${version}" != "${PV%.*}" ]] ; then
|
|
| 468 |
- mods="" |
|
| 469 |
- MY_BUILTINS="" |
|
| 470 |
- return 1 |
|
| 471 |
- fi |
|
| 472 |
- |
|
| 473 |
- einfo "Using ${1}"
|
|
| 474 |
- einfo "options: ${MY_BUILTINS}"
|
|
| 475 |
- einfo "LoadModules: ${mods}"
|
|
| 476 |
-} |
|
| 477 |
- |
|
| 478 |
-select_modules_config() {
|
|
| 479 |
- parse_modules_config "${ROOT}"/etc/apache2/apache2-builtin-mods || \
|
|
| 480 |
- parse_modules_config "${GENTOO_PATCHDIR}"/conf/apache2-builtin-mods || \
|
|
| 481 |
- return 1 |
|
| 482 |
-} |
| ... | ... |
@@ -1,6 +0,0 @@ |
| 1 |
-MD5 e7ebbbfdb900ab1550abd5ae5753910b gentoo-apache-2.2.6-20070907.tar.bz2 58121 |
|
| 2 |
-RMD160 d0e5f55a8985f97fcdf646e04d92f6519f968104 gentoo-apache-2.2.6-20070907.tar.bz2 58121 |
|
| 3 |
-SHA256 56f809f93fdcba204e6be271f195095d8ad033aa61447dab607af91d95cde8e6 gentoo-apache-2.2.6-20070907.tar.bz2 58121 |
|
| 4 |
-MD5 203bea91715064f0c787f6499d33a377 httpd-2.2.6.tar.bz2 4717066 |
|
| 5 |
-RMD160 5ae895c6898213e1e3b7e7b02cdfcbe5b36a108f httpd-2.2.6.tar.bz2 4717066 |
|
| 6 |
-SHA256 f27cd9df50a2acd9df8f37520f62f6ce51758689d425ead5883e75ff5ed6548c httpd-2.2.6.tar.bz2 4717066 |
| ... | ... |
@@ -1,6 +0,0 @@ |
| 1 |
-MD5 4f09d67fac5fbdd8dacf57935d71f2df gentoo-apache-2.2.6-r3-20071025.tar.bz2 60483 |
|
| 2 |
-RMD160 3097b088eae160f1196f21abb1488cf54b349ba1 gentoo-apache-2.2.6-r3-20071025.tar.bz2 60483 |
|
| 3 |
-SHA256 3f2d0b9d210f3bb22c06901dee7df482c26647562d1a4e98f4196cd649f71d58 gentoo-apache-2.2.6-r3-20071025.tar.bz2 60483 |
|
| 4 |
-MD5 203bea91715064f0c787f6499d33a377 httpd-2.2.6.tar.bz2 4717066 |
|
| 5 |
-RMD160 5ae895c6898213e1e3b7e7b02cdfcbe5b36a108f httpd-2.2.6.tar.bz2 4717066 |
|
| 6 |
-SHA256 f27cd9df50a2acd9df8f37520f62f6ce51758689d425ead5883e75ff5ed6548c httpd-2.2.6.tar.bz2 4717066 |
| ... | ... |
@@ -1,6 +0,0 @@ |
| 1 |
-MD5 e5e99f1cb519d71242fa3a7f68e5f28a gentoo-apache-2.2.6-r6-20071215.tar.bz2 60964 |
|
| 2 |
-RMD160 b2ea87d18117566a644fe012d23affd38d1f7ef6 gentoo-apache-2.2.6-r6-20071215.tar.bz2 60964 |
|
| 3 |
-SHA256 e2ec95dbfd3d406d16a5694746ade43863712037c12ac70f3433b16c75bf5638 gentoo-apache-2.2.6-r6-20071215.tar.bz2 60964 |
|
| 4 |
-MD5 203bea91715064f0c787f6499d33a377 httpd-2.2.6.tar.bz2 4717066 |
|
| 5 |
-RMD160 5ae895c6898213e1e3b7e7b02cdfcbe5b36a108f httpd-2.2.6.tar.bz2 4717066 |
|
| 6 |
-SHA256 f27cd9df50a2acd9df8f37520f62f6ce51758689d425ead5883e75ff5ed6548c httpd-2.2.6.tar.bz2 4717066 |
|
| 7 | 0 |