1 | # $Id: Portfile,v 1.1 2003/06/05 10:07:02 fkr Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name apache2 |
---|
5 | version 2.0.47 |
---|
6 | categories www |
---|
7 | platforms darwin freebsd |
---|
8 | maintainers jcorley1@nc.rr.com |
---|
9 | description The extremely popular second version of the Apache http server |
---|
10 | long_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 | |
---|
16 | master_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 | |
---|
25 | distname httpd-${version} |
---|
26 | checksums md5 63f16638c18b140b649fab32b54d7f9c |
---|
27 | depends_lib lib:libapr-0.0:apr lib:libaprutil-0.0:apr-util |
---|
28 | patchfiles patch-httpd-std.conf.in |
---|
29 | configure.env CC=/usr/bin/gcc CPP=/usr/bin/cpp |
---|
30 | configure.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 | |
---|
36 | install.args root=${destroot} |
---|
37 | post-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 | |
---|
42 | variant 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/"} } |
---|