|
|||||||||
Saturday the 22nd of November, 2008 |
|||||||||
apache2 most recent diffversion 2.2.10
Scroll down toward the bottom of the page to get installation instructions for apache2. The raw portfile for apache2 2.2.10 is located here: http://apache2.darwinports.com/dports/www/apache2/Portfile Find related portfiles with the unique DarwinPorts.com search feature. Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/apache2 # $Id: Portfile 41709 2008-11-09 16:18:08Z nox PortSystem 1.0 Name: apache2 Version: 2.2.10 Category: www Maintainers: imajes 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. Homepage: http://httpd.apache.org/ Platform: darwin freebsd openbsd master_sites apache:httpd distname httpd-${version} use_bzip2 yes use_parallel_build yes checksums md5 6697772ba5f8d34988fe297417ccaacc sha1 3a71f4904e359603c3338b07a1178ddfacfaa8c6 rmd160 30f240222a775efa14b104a2b8df1e1dc65f4b8a depends_lib port:apr port:apr-util port:expat port:openssl port:pcre post-patch { reinplace -E "s/(User|Group) daemon/\\1 www/" ${worksrcpath}/docs/conf/httpd.conf.in } platform darwin { post-patch { # Customize userdir naming to match darwin reinplace "s|/home/|/Users/|g" ${worksrcpath}/docs/conf/extra/httpd-userdir.conf.in reinplace "s|public_html|Sites|g" ${worksrcpath}/docs/conf/extra/httpd-userdir.conf.in } # HFS can be case insensitive, so protect for this as in # http://docs.info.apple.com/article.html?artnum=300422 patchfiles-append patch-httpd.conf.in-sensitive-files.diff } platform darwin 7 { pre-configure { system "cd ${worksrcpath} && glibtoolize --force" } } platform darwin 9 { post-extract { reinplace "s|-export-symbols-regex ssl_module||g" ${worksrcpath}/configure } } configure.pre_args --prefix=${prefix}/${name} configure.args --with-apr=${prefix}/bin/apr-1-config --with-apr-util=${prefix}/bin/apu-1-config --libdir=${prefix}/lib --with-expat=${prefix} --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 } destroot.violate_mtree yes post-destroot { set confDir ${destroot}${prefix}/apache2/conf move -force ${confDir}/httpd.conf ${confDir}/httpd.conf.sample destroot.keepdirs ${destroot}${prefix}/apache2/logs # fix libtool path reinplace "s|/apache2/build/libtool|/share/apr-1/build/libtool|g" ${destroot}${prefix}/apache2/build/config_vars.mk set docdir ${prefix}/share/doc/apache-${version} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} ABOUT_APACHE CHANGES LICENSE NOTICE README README.platforms ROADMAP VERSIONING ${destroot}${docdir} } 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 } # This mpm is experimental Variant: eventmpm { configure.args-append --with-mpm=event } Variant: no_startupitem { startupitem.create no } startupitem.create yes startupitem.start "\[ -x ${prefix}/apache2/bin/apachectl \] && ${prefix}/apache2/bin/apachectl start > /dev/null" startupitem.stop "\[ -r ${prefix}/apache2/logs/httpd.pid \] && ${prefix}/apache2/bin/apachectl stop > /dev/null" startupitem.restart "${prefix}/apache2/bin/apachectl restart > /dev/null" livecheck.check regex livecheck.url ${homepage} livecheck.regex {Apache (\d+(?:\.\d+)*) Released} If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page. Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:
% cd /opt/local/bin/portslocation/dports/apache2You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to: Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using apache2 with these commands: % man apache2 Where to find more information:
|
![]() |
![]() Digg apache2 on MacOSX
Other Helpful SitesMacOSForgeDebian Packages MacPorts - SVN Freshports - FreeBSD Fink Package List RPM for MacOSX Port Categories
aqua
archivers audio benchmarks cad comms cross databases devel editors emulators games genealogy gnome gnustep graphics irc java kde lang math multimedia net news palm perl python ruby science security shells sysutils textproc www x11 xfce zope
Current CVS DownloadsDarwin Ports Current :nightly CVS snapshot OpenDarwin CVSWeb SSH Key Gen |
|||||||
| |



