Ticket #14069: apache2-2.2.8.diff
File apache2-2.2.8.diff, 2.4 KB (added by nox@…, 17 years ago) |
---|
-
files/patch-httpd-std.conf.in
1 --- docs/conf/httpd.conf.in.orig 2005-12-05 13:41:59.000000000 -05002 +++ docs/conf/httpd.conf.in 2005-12-05 13:42:11.000000000 -05003 @@ -63,8 +63,8 @@4 # It is usually good practice to create a dedicated user and group for5 # running httpd, as with most system services.6 #7 -User daemon8 -Group daemon9 +User www10 +Group www11 </IfModule>12 </IfModule> -
Portfile
1 1 # $Id$ 2 2 3 PortSystem 1.0 3 PortSystem 1.0 4 4 5 name apache2 5 version 2.2. 66 version 2.2.8 6 7 7 8 categories www 8 9 maintainers imajes@macports.org … … 18 19 19 20 master_sites apache:httpd 20 21 distname httpd-${version} 21 checksums md5 203bea91715064f0c787f6499d33a377 \22 sha1 e6ef926ecd1f9a412af8c266239f0a6f58c6385423 22 use_bzip2 yes 24 23 24 checksums md5 76d2598a4797163d07cd50e5304aa7cd \ 25 sha1 5074904435d3d942ce2dc96c44b07294b8eaca77 \ 26 rmd160 0736ea9617bafaa1c8cd34ce4fc1c7a659afea57 27 25 28 depends_lib port:apr \ 26 29 port:apr-util \ 27 30 port:expat \ 28 31 port:openssl \ 29 32 port:pcre 30 33 31 patchfiles patch-httpd-std.conf.in 34 post-patch { 35 reinplace -E "s/(User|Group) daemon/\\1 www/" ${worksrcpath}/docs/conf/httpd.conf.in 36 } 32 37 33 38 platform darwin { 34 39 post-patch { … … 79 84 80 85 post-destroot { 81 86 set confDir ${destroot}${prefix}/apache2/conf 82 file rename -force ${confDir}/httpd.conf ${confDir}/httpd.conf.sample87 move -force ${confDir}/httpd.conf ${confDir}/httpd.conf.sample 83 88 84 89 destroot.keepdirs ${destroot}${prefix}/apache2/logs 85 90 86 91 # fix libtool path 87 reinplace "s|/apache2/build/libtool|/share/apr-0/build/libtool|g" \92 reinplace "s|/apache2/build/libtool|/share/apr-1/build/libtool|g" \ 88 93 ${destroot}${prefix}/apache2/build/config_vars.mk 94 95 set docdir ${prefix}/share/doc/apache-${version} 96 xinstall -d ${destroot}${docdir} 97 xinstall -m 0644 -W ${worksrcpath} ABOUT_APACHE CHANGES LICENSE NOTICE README \ 98 README.platforms ROADMAP VERSIONING ${destroot}${docdir} 89 99 } 90 100 91 101 variant openbsd {