Ticket #583: Portfile.2

File Portfile.2, 2.9 KB (added by jcorley1@…, 21 years ago)

Portfile upgrade to 2.0.46 to avoid DoS in 2.0.45

Line 
1PortSystem 1.0
2name                apache2
3version             2.0.46
4revision            1.0
5categories          www
6platforms           darwin freebsd
7maintainers         jcorley1@nc.rr.com
8description         The extremely popular second version of the Apache http \
9                      server
10master_sites        http://www.tux.org/pub/net/apache/dist/httpd/ \
11                      http://apache.mirror.digitalspace.net/httpd/ \
12                      http://www.apache.inetcosmos.org/dist/httpd/ \
13                      http://www.rge.com/pub/infosystems/apache/httpd/ \
14                      http://www.tux.org/pub/net/apache/dist/httpd/ \
15                      http://apache.mirror.digitalspace.net/httpd/ \
16                      http://www.rge.com/pub/infosystems/apache/httpd/ \
17                      http://ftp.epix.net/apache/httpd/
18
19
20distname            httpd-${version}
21checksums           md5 ff682f82f0808eb01df60824d959ebe8
22
23depends_lib         lib:libapr-0.0:apr lib:libaprutil-0.0:apr-util
24
25patchfiles          patch-httpd-std.conf.in
26
27configure.env       CC=/usr/bin/gcc CPP=/usr/bin/cpp
28configure.args      --with-layout=FreeBSD --with-apr=${prefix}/bin/apr-config \
29                      --with-apr-util=${prefix}/bin --prefix=${prefix}/${name} \
30                      --enable-mods-shared=all --enable-ssl --with-ssl \
31                      --enable-deflate --enable-proxy --enable-proxy-connect \
32                      --enable-proxy-http --enable-proxy-ftp
33
34install.args        root=${destroot}
35
36post-install      { system "touch ${destroot}${prefix}/${name}/logs/.keep"
37                    system "test -L ${destroot}${prefix}/${name}/build/libtool \
38                        || ln -s /usr/bin/glibtool \
39                        ${destroot}${prefix}/${name}/build/libtool"
40                  }
41
42variant activate_server {
43    depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
44    post-patch    { system "sed -e \"s=%%PREFIX%%=${prefix}/${name}=g\" \
45                      ${filespath}/${name}.sh > \
46                      ${portpath}/${workdir}/${name}.sh"
47                  }
48
49    post-install  { system "touch ${destroot}${prefix}/${name}/logs/.keep"
50                    system "test -L ${destroot}${prefix}/${name}/build/libtool \
51                      || ln -s /usr/bin/glibtool \
52                      ${destroot}${prefix}/${name}/build/libtool"
53                    file mkdir ${destroot}${prefix}/etc/rc.d/
54                    system "install -bC ${portpath}/${workdir}/${name}.sh \
55                      ${destroot}${prefix}/etc/rc.d/"
56                  }
57                        }
58
59long_description \
60  Apache is an HTTP server designed as a plug-in replacement for \
61  the NCSA server version 1.3 (or 1.4). It fixes numerous bugs in \
62  the NCSA server and includes many frequently requested new \
63  features, and has an API which allows it to be extended to meet \
64  users' needs more easily. This is version 2.0.45 of Apache.