Ticket #689: Portfile

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

updated Portfile

Line 
1# $Id: Portfile,v 1.1 2003/06/05 10:07:02 fkr Exp $
2
3PortSystem 1.0
4name            apache2
5version         2.0.47
6categories      www
7platforms       darwin freebsd
8maintainers     jcorley1@nc.rr.com
9description     The extremely popular second version of the Apache http server
10long_description        Apache is an HTTP server designed as a plug-in replacement for \
11                        the NCSA server version 1.3 (or 1.4). It fixes numerous bugs in \
12                        the NCSA server and includes many frequently requested new \
13                        features, and has an API which allows it to be extended to meet \
14                        users' needs more easily. This is version 2.0.47 of Apache.
15
16master_sites    http://www.tux.org/pub/net/apache/dist/httpd/ \
17                http://apache.mirror.digitalspace.net/httpd/ \
18                http://www.apache.inetcosmos.org/dist/httpd/ \
19                http://www.rge.com/pub/infosystems/apache/httpd/ \
20                http://www.tux.org/pub/net/apache/dist/httpd/ \
21                http://apache.mirror.digitalspace.net/httpd/ \
22                http://www.rge.com/pub/infosystems/apache/httpd/ \
23                http://ftp.epix.net/apache/httpd/
24
25distname        httpd-${version}
26checksums       md5 63f16638c18b140b649fab32b54d7f9c
27depends_lib     lib:libapr-0.0:apr lib:libaprutil-0.0:apr-util
28patchfiles      patch-httpd-std.conf.in
29configure.env   CC=/usr/bin/gcc CPP=/usr/bin/cpp
30configure.args  --with-layout=FreeBSD --with-apr=${prefix}/bin/apr-config \
31                --with-apr-util=${prefix}/bin --prefix=${prefix}/${name} \
32                --enable-mods-shared=all --enable-ssl --with-ssl \
33                --enable-deflate --enable-proxy --enable-proxy-connect \
34                --enable-proxy-http --enable-proxy-ftp
35
36install.args    root=${destroot}
37post-install {  system "touch ${destroot}${prefix}/${name}/logs/.turd"
38                system "test -L ${destroot}${prefix}/${name}/build/libtool \
39                        || ln -s /usr/bin/glibtool \
40                        ${destroot}${prefix}/${name}/build/libtool" }
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                                        ${worksrcdir}/${name}.sh" }
47
48                post-install-append {   file mkdir ${destroot}${prefix}/etc/rc.d/
49                                        system "install -bC ${portpath}/${workdir}/${name}.sh \
50                                                ${destroot}${prefix}/etc/rc.d/"} }