source: trunk/dports/www/apache/Portfile

Last change on this file was 128962, checked in by ionic@…, 3 years ago

apache: also increment revision, as this change is affecting all darwin users (even though it's only meant as recent-OS build fix.)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# $Id: Portfile 128962 2014-12-01 05:06:45Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                apache
6version             1.3.41
7revision            1
8categories          www
9license             Apache-2
10platforms           darwin freebsd
11maintainers         ryandesign openmaintainer
12use_parallel_build  yes
13description         The extremely popular Apache http server
14long_description \
15  Apache is an HTTP server designed as a plug-in replacement for \
16  the NCSA server version 1.3 (or 1.4). It fixes numerous bugs in \
17  the NCSA server and includes many frequently requested new \
18  features, and has an API which allows it to be extended to meet \
19  users' needs more easily.
20homepage            http://httpd.apache.org/
21master_sites        http://archive.apache.org/dist/httpd/ \
22                    apache:httpd
23
24distname            ${name}_${version}
25checksums           md5     f7f00b635243f03a787ca9f4d4c85651 \
26                    sha1    3bbd4c4bc648e6ad5b696bb83420533f4d23daf8 \
27                    rmd160  74786c65c143af123f1d13e9d93dd5ff07e9a201
28
29# Both apache and apache2 want to install dbmmanage.1 and other manpages.
30conflicts           apache2
31
32
33platform darwin {
34        if { ![variant_isset apache_layout] } {
35                configure.args-append   --with-layout=FreeBSD  --logfiledir=${prefix}/var/log/httpd --runtimedir=${prefix}/var/run
36        }
37
38    patchfiles              patch-src_Configure-remove-flat_namespace.diff \
39                            patch-src_support_htdigest_htpasswd_logresolve.c-remove-rename-static-getline-functions.diff
40    configure.cflags-append -std=c89
41}
42
43variant apache_layout {
44        destroot.violate_mtree  yes
45        configure.pre_args      --prefix=${prefix}/apache
46        configure.args-append   --with-layout=Apache --logfiledir=${prefix}/apache/var/log/httpd --runtimedir=${prefix}/apache/var/run
47}
48
49configure.env       LD_SHLIB=${configure.cc}
50
51configure.pre_args  --prefix=${prefix} --datadir=${prefix}/var/www/data --cgidir=${prefix}/var/www/cgi-bin --iconsdir=${prefix}/var/www/icons --mandir=${prefix}/share/man
52
53configure.args      --server-uid=www \
54                    --server-gid=www \
55                    --enable-module=most \
56                    --enable-shared=max \
57                    --disable-rule=expat
58
59configure.universal_args-delete --disable-dependency-tracking
60
61destroot.args           root=${destroot}
62
63startupitem.create      yes
64if { [variant_isset apache_layout] } {
65        startupitem.init        \
66                "CTL=${prefix}/apache/bin/apachectl\nPID=${prefix}/apache/run/httpd.pid"
67} else {
68        startupitem.init        \
69                "CTL=${prefix}/sbin/apachectl\nPID=${prefix}/var/run/httpd.pid"
70}
71startupitem.start       \
72"\[ -x \${CTL} \] && \${CTL} start >/dev/null"
73startupitem.stop        \
74"\[ -r \${PID} \] && \${CTL} stop >/dev/null"
75startupitem.restart     \
76"\[ -x \${CTL} \] && \${CTL} restart >/dev/null"
77
78post-destroot      {
79        if { [variant_isset apache_layout] } {
80                 xinstall -m 755 -d ${destroot}${prefix}/apache/log \
81                        ${destroot}${prefix}/apache/run
82                 destroot.keepdirs ${destroot}${prefix}/apache/log \
83                        ${destroot}${prefix}/apache/run
84        } else {
85                xinstall -m 755 -d ${destroot}${prefix}/var/log/httpd \
86                                ${destroot}${prefix}/var/run
87                destroot.keepdirs ${destroot}${prefix}/var/log/httpd \
88                                ${destroot}${prefix}/var/run
89        }
90}
91
92notes "
93Apache 1 is obsolete. Please update to Apache 2 (the apache2 port).\
94For information on how to update your web server configuration, please see\
95http://httpd.apache.org/docs/2.0/upgrading.html
96"
97
98livecheck.type  regex
99livecheck.url   ${homepage}
100livecheck.regex {Apache (1\.\d+(?:\.\d+)*) Released}
Note: See TracBrowser for help on using the repository browser.