Ticket #583: Portfile.3

File Portfile.3, 2.2 KB (added by fkr@…, 21 years ago)

updated Portfile

Line 
1PortSystem 1.0
2name            apache2
3version         2.0.46
4categories      www
5platforms       darwin freebsd
6maintainers     jcorley1@nc.rr.com
7description     The extremely popular second version of the Apache http server
8long_description        Apache is an HTTP server designed as a plug-in replacement for \
9                        the NCSA server version 1.3 (or 1.4). It fixes numerous bugs in \
10                        the NCSA server and includes many frequently requested new \
11                        features, and has an API which allows it to be extended to meet \
12                        users' needs more easily. This is version 2.0.45 of Apache.
13
14master_sites    http://www.tux.org/pub/net/apache/dist/httpd/ \
15                http://apache.mirror.digitalspace.net/httpd/ \
16                http://www.apache.inetcosmos.org/dist/httpd/ \
17                http://www.rge.com/pub/infosystems/apache/httpd/ \
18                http://www.tux.org/pub/net/apache/dist/httpd/ \
19                http://apache.mirror.digitalspace.net/httpd/ \
20                http://www.rge.com/pub/infosystems/apache/httpd/ \
21                http://ftp.epix.net/apache/httpd/
22
23distname        httpd-${version}
24checksums       md5 ff682f82f0808eb01df60824d959ebe8
25depends_lib     lib:libapr-0.0:apr lib:libaprutil-0.0:apr-util
26patchfiles      patch-httpd-std.conf.in
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}
35post-install {  system "touch ${destroot}${prefix}/${name}/logs/.turd"
36                system "test -L ${destroot}${prefix}/${name}/build/libtool \
37                        || ln -s /usr/bin/glibtool \
38                        ${destroot}${prefix}/${name}/build/libtool" }
39
40variant activate_server {
41                depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
42                post-patch {    system "sed -e \"s=%%PREFIX%%=${prefix}/${name}=g\" \
43                                        ${filespath}/${name}.sh > \
44                                        ${worksrcdir}/${name}.sh" }
45
46                post-install-append {   file mkdir ${destroot}${prefix}/etc/rc.d/
47                                        system "install -bC ${portpath}/${workdir}/${name}.sh \
48                                                ${destroot}${prefix}/etc/rc.d/"} }