Ticket #583: Portfile

File Portfile, 2.8 KB (added by jcorley1@…, 21 years ago)

Portfile

Line 
1PortSystem 1.0
2name                apache2
3version             2.0.45
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 1f33e9a2e2de06da190230fa72738d75
22
23depends_lib         lib:libapr-0.0:apr lib:libaprutil-0.0:apr-util
24
25patchfiles          patch-httpd-std.conf.in
26
27configure.args      --with-layout=FreeBSD --with-apr=${prefix}/bin \
28                      --with-apr-util=${prefix}/bin --prefix=${prefix}/${name} \
29                      --enable-mods-shared=all --enable-ssl --with-ssl \
30                      --enable-deflate --enable-proxy --enable-proxy-connect \
31                      --enable-proxy-http --enable-proxy-ftp
32
33install.args        root=${destroot}
34
35post-install      { system "touch ${destroot}${prefix}/${name}/logs/.keep"
36                    system "test -L ${destroot}${prefix}/${name}/build/libtool \
37                        || ln -s /usr/bin/glibtool \
38                        ${destroot}${prefix}/${name}/build/libtool"
39                  }
40
41variant activate_server {
42    post-patch    { system "sed -e \"s=%%PREFIX%%=${prefix}/${name}=g\" \
43                      ${filespath}/${name}.sh > \
44                      ${portpath}/${workdir}/${name}.sh"
45                  }
46
47    post-install  { system "touch ${destroot}${prefix}/${name}/logs/.keep"
48                    system "test -L ${destroot}${prefix}/${name}/build/libtool \
49                      || ln -s /usr/bin/glibtool \
50                      ${destroot}${prefix}/${name}/build/libtool"
51                    file mkdir ${destroot}${prefix}/etc/rc.d/
52                    system "install -bC ${portpath}/${workdir}/${name}.sh \
53                      ${destroot}${prefix}/etc/rc.d/"
54                  }
55                        }
56
57long_description \
58  Apache is an HTTP server designed as a plug-in replacement for \
59  the NCSA server version 1.3 (or 1.4). It fixes numerous bugs in \
60  the NCSA server and includes many frequently requested new \
61  features, and has an API which allows it to be extended to meet \
62  users' needs more easily. This is version 2.0.45 of Apache.