[22493] trunk/dports/www
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 2 13:58:18 PST 2007
Revision: 22493
http://trac.macosforge.org/projects/macports/changeset/22493
Author: blair at macports.org
Date: 2007-03-02 13:58:17 -0800 (Fri, 02 Mar 2007)
Log Message:
-----------
Add a port for Apache 2.0.59. This was based off the apache2 port and
installs into ${prefix}/apache20. It has no conflicts with the
apache2 port.
Added Paths:
-----------
trunk/dports/www/apache20/
trunk/dports/www/apache20/Portfile
trunk/dports/www/apache20/files/
trunk/dports/www/apache20/files/patch-httpd-std.conf.in
Added: trunk/dports/www/apache20/Portfile
===================================================================
--- trunk/dports/www/apache20/Portfile (rev 0)
+++ trunk/dports/www/apache20/Portfile 2007-03-02 21:58:17 UTC (rev 22493)
@@ -0,0 +1,129 @@
+# $Id$
+
+PortSystem 1.0
+name apache20
+version 2.0.59
+
+categories www
+maintainers blair at orcaware.com
+description The extremely popular second version of the Apache http \
+ server
+long_description Apache is an HTTP server designed as a plug-in replacement \
+ for the NCSA server version 1.3 (or 1.4). It fixes \
+ numerous bugs in the NCSA server and includes many \
+ frequently requested new features, and has an API \
+ which allows it to be extended to meet users' needs \
+ more easily. This Portfile is not the latest version \
+ of the Apache web server, see the apache2 port.
+homepage http://httpd.apache.org/
+platforms darwin freebsd openbsd
+
+master_sites apache:httpd
+distname httpd-${version}
+checksums md5 b0200a497d1c89daad680c676d32a6df
+use_bzip2 yes
+
+depends_lib port:apr0 \
+ port:apr-util0 \
+ port:expat \
+ port:openssl \
+ port:pcre
+
+patchfiles patch-httpd-std.conf.in
+
+platform darwin {
+ post-patch {
+ # Customize userdir naming to match darwin
+ reinplace "s|/home/|/Users/|g" ${worksrcpath}/docs/conf/httpd-std.conf.in
+ reinplace "s|public_html|Sites|g" ${worksrcpath}/docs/conf/httpd-std.conf.in
+ }
+}
+
+platform darwin 7 {
+ pre-configure {
+ system "cd ${worksrcpath} && glibtoolize --force"
+ }
+}
+
+configure.pre_args --prefix=${prefix}/${name}
+configure.args --with-apr=${prefix}/bin/apr-config \
+ --with-apr-util=${prefix}/bin/apu-config \
+ --libdir=${prefix}/lib \
+ --with-pcre=${prefix} \
+ --mandir=${prefix}/share/man \
+ --enable-mods-shared=all \
+ --enable-ssl \
+ --with-ssl=${prefix} \
+ --enable-cache \
+ --enable-disk_cache \
+ --enable-file_cache \
+ --enable-mem_cache \
+ --enable-deflate \
+ --enable-proxy \
+ --enable-proxy-connect \
+ --enable-proxy-http \
+ --enable-proxy-ftp
+
+post-configure {
+ # Setting DYLD_FALLBACK_LIBRARY_PATH instead of DYLD_LIBRARY_PATH
+ # avoids issues with library collisions (bug #3013)
+ reinplace "s|DYLD_LIBRARY_PATH|DYLD_FALLBACK_LIBRARY_PATH|g" \
+ ${worksrcpath}/support/envvars-std
+}
+
+post-destroot {
+ set confDir ${destroot}${prefix}/apache20/conf
+ file rename -force ${confDir}/httpd.conf ${confDir}/httpd.conf.sample
+
+ destroot.keepdirs ${destroot}${prefix}/apache20/logs
+
+ # fix libtool path
+ reinplace "s|/apache20/build/libtool|/share/apr-0/build/libtool|g" \
+ ${destroot}${prefix}/apache20/build/config_vars.mk
+
+ set mandir ${destroot}${prefix}/share/man/man1
+ file rename -force ${mandir}/dbmmanage.1 ${mandir}/dbmmanage20.1
+ file rename -force ${mandir}/htdbm.1 ${mandir}/htdbm20.1
+ file rename -force ${mandir}/htdigest.1 ${mandir}/htdigest20.1
+ file rename -force ${mandir}/htpasswd.1 ${mandir}/htpasswd20.1
+
+ set mandir ${destroot}${prefix}/share/man/man8
+ file rename -force ${mandir}/ab.8 ${mandir}/ab20.8
+ file rename -force ${mandir}/apachectl.8 ${mandir}/apachectl20.8
+ file rename -force ${mandir}/apxs.8 ${mandir}/apxs20.8
+ file rename -force ${mandir}/httpd.8 ${mandir}/httpd20.8
+ file rename -force ${mandir}/logresolve.8 ${mandir}/logresolve20.8
+ file rename -force ${mandir}/rotatelogs.8 ${mandir}/rotatelog20.8
+ file rename -force ${mandir}/suexec.8 ${mandir}/suexec20.8
+}
+
+variant openbsd {
+ build.env-append "LD_LIBRARY_PATH=${prefix}/lib"
+}
+
+variant openldap {
+ configure.args-append --enable-ldap --enable-authnz-ldap
+ depends_lib-append port:openldap
+}
+
+# This ends up being the default mpm if no other is chosen
+variant preforkmpm {
+ configure.args-append --with-mpm=prefork
+}
+
+# This mpm is probably preferred (maybe we should make it a default variant?)
+variant workermpm {
+ configure.args-append --with-mpm=worker
+}
+
+variant no_startupitem {
+ startupitem.create no
+}
+
+startupitem.create yes
+startupitem.start \
+"\[ -x ${prefix}/apache20/bin/apachectl \] && ${prefix}/apache20/bin/apachectl start > /dev/null"
+startupitem.stop \
+"\[ -r ${prefix}/apache20/logs/httpd.pid \] && ${prefix}/apache20/bin/apachectl stop > /dev/null"
+startupitem.restart \
+"\[ -r ${prefix}/apache20/logs/httpd.pid \] && ${prefix}/apache20/bin/apachectl restart > /dev/null"
Property changes on: trunk/dports/www/apache20/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/www/apache20/files/patch-httpd-std.conf.in
===================================================================
--- trunk/dports/www/apache20/files/patch-httpd-std.conf.in (rev 0)
+++ trunk/dports/www/apache20/files/patch-httpd-std.conf.in 2007-03-02 21:58:17 UTC (rev 22493)
@@ -0,0 +1,13 @@
+--- docs/conf/httpd-std.conf.in.orig 2005-11-13 09:13:06.000000000 -0800
++++ docs/conf/httpd-std.conf.in 2007-03-01 22:33:20.000000000 -0800
+@@ -265,8 +265,8 @@
+ # when the value of (unsigned)Group is above 60000;
+ # don't use Group #-1 on these systems!
+ #
+-User nobody
+-Group #-1
++User www
++Group www
+ </IfModule>
+ </IfModule>
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070302/052ae374/attachment.html
More information about the macports-changes
mailing list