1 | --- Portfile-orig Mon Aug 11 23:42:41 2003 |
---|
2 | +++ Portfile Mon Aug 11 23:39:54 2003 |
---|
3 | @@ -1,48 +1,62 @@ |
---|
4 | +# $Id: Portfile,v 1.3 2003/08/05 09:29:40 jkh Exp $ |
---|
5 | + |
---|
6 | PortSystem 1.0 |
---|
7 | -name apache2 |
---|
8 | -version 2.0.47 |
---|
9 | -categories www |
---|
10 | -platforms darwin freebsd |
---|
11 | -maintainers jcorley1@nc.rr.com |
---|
12 | -description The extremely popular second version of the Apache http server |
---|
13 | -long_description Apache is an HTTP server designed as a plug-in replacement for \ |
---|
14 | - the NCSA server version 1.3 (or 1.4). It fixes numerous bugs in \ |
---|
15 | - the NCSA server and includes many frequently requested new \ |
---|
16 | - features, and has an API which allows it to be extended to meet \ |
---|
17 | - users' needs more easily. This is version 2.0.47 of Apache. |
---|
18 | - |
---|
19 | -master_sites http://www.tux.org/pub/net/apache/dist/httpd/ \ |
---|
20 | - http://apache.mirror.digitalspace.net/httpd/ \ |
---|
21 | - http://www.apache.inetcosmos.org/dist/httpd/ \ |
---|
22 | - http://www.rge.com/pub/infosystems/apache/httpd/ \ |
---|
23 | - http://www.tux.org/pub/net/apache/dist/httpd/ \ |
---|
24 | - http://apache.mirror.digitalspace.net/httpd/ \ |
---|
25 | - http://www.rge.com/pub/infosystems/apache/httpd/ \ |
---|
26 | - http://ftp.epix.net/apache/httpd/ |
---|
27 | - |
---|
28 | -distname httpd-${version} |
---|
29 | -checksums md5 63f16638c18b140b649fab32b54d7f9c |
---|
30 | -depends_lib lib:libapr-0.0:apr lib:libaprutil-0.0:apr-util |
---|
31 | -patchfiles patch-httpd-std.conf.in |
---|
32 | -configure.env CC=/usr/bin/gcc CPP=/usr/bin/cpp |
---|
33 | -configure.args --with-layout=FreeBSD --with-apr=${prefix}/bin/apr-config \ |
---|
34 | - --with-apr-util=${prefix}/bin --prefix=${prefix}/${name} \ |
---|
35 | - --enable-mods-shared=all --enable-ssl --with-ssl \ |
---|
36 | - --enable-deflate --enable-proxy --enable-proxy-connect \ |
---|
37 | - --enable-proxy-http --enable-proxy-ftp |
---|
38 | - |
---|
39 | -destroot.args root=${destroot} |
---|
40 | -post-destroot { system "touch ${destroot}${prefix}/${name}/logs/.turd" |
---|
41 | - system "test -L ${destroot}${prefix}/${name}/build/libtool \ |
---|
42 | +name apache2 |
---|
43 | +version 2.0.47 |
---|
44 | +categories www |
---|
45 | +platforms darwin freebsd |
---|
46 | +maintainers jcorley1@nc.rr.com |
---|
47 | +description The extremely popular second version of the Apache http server |
---|
48 | +long_description Apache is an HTTP server designed as a plug-in replacement for \ |
---|
49 | + the NCSA server version 1.3 (or 1.4). It fixes numerous bugs in \ |
---|
50 | + the NCSA server and includes many frequently requested new \ |
---|
51 | + features, and has an API which allows it to be extended to meet \ |
---|
52 | + users' needs more easily. This is version 2.0.47 of Apache. |
---|
53 | + |
---|
54 | +master_sites http://www.tux.org/pub/net/apache/dist/httpd/ \ |
---|
55 | + http://apache.mirror.digitalspace.net/httpd/ \ |
---|
56 | + http://www.apache.inetcosmos.org/dist/httpd/ \ |
---|
57 | + http://www.rge.com/pub/infosystems/apache/httpd/ \ |
---|
58 | + http://www.tux.org/pub/net/apache/dist/httpd/ \ |
---|
59 | + http://apache.mirror.digitalspace.net/httpd/ \ |
---|
60 | + http://www.rge.com/pub/infosystems/apache/httpd/ \ |
---|
61 | + http://ftp.epix.net/apache/httpd/ |
---|
62 | + |
---|
63 | +distname httpd-${version} |
---|
64 | +checksums md5 63f16638c18b140b649fab32b54d7f9c |
---|
65 | +depends_lib lib:libapr-0.0:apr lib:libaprutil-0.0:apr-util |
---|
66 | +patchfiles patch-httpd-std.conf.in |
---|
67 | +configure.env CC=/usr/bin/gcc CPP=/usr/bin/cpp |
---|
68 | + |
---|
69 | +pre-configure { |
---|
70 | + patchfiles patch-config.layout |
---|
71 | + patch.pre_args -p1 |
---|
72 | + reinplace "s|__PREFIX|${prefix}|g" ${workpath}/${name}_${version}/config.layout |
---|
73 | +} |
---|
74 | + |
---|
75 | +configure.args --with-layout=Opendarwin --with-apr=${prefix}/bin/apr-config \ |
---|
76 | + --with-apr-util=${prefix}/bin --prefix=${prefix}/${name} \ |
---|
77 | + --enable-mods-shared=all --enable-ssl --with-ssl \ |
---|
78 | + --enable-deflate --enable-proxy --enable-proxy-connect \ |
---|
79 | + --enable-proxy-http --enable-proxy-ftp |
---|
80 | + |
---|
81 | +destroot.args root=${destroot} |
---|
82 | +post-destroot { |
---|
83 | + file mkdir ${destroot}${prefix}/${name}/logs |
---|
84 | + file mkdir ${destroot}${prefix}/${name}/run |
---|
85 | + |
---|
86 | + system "touch ${destroot}${prefix}/${name}/log/.turd" |
---|
87 | + system "touch ${destroot}${prefix}/${name}/run/.turd" |
---|
88 | + system "test -L ${destroot}${prefix}/${name}/build/libtool \ |
---|
89 | || ln -s /usr/bin/glibtool \ |
---|
90 | ${destroot}${prefix}/${name}/build/libtool" } |
---|
91 | |
---|
92 | variant activate_server { |
---|
93 | - depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup |
---|
94 | - post-patch { system "sed -e \"s=%%PREFIX%%=${prefix}/${name}=g\" \ |
---|
95 | - ${filespath}/${name}.sh > \ |
---|
96 | - ${worksrcdir}/${name}.sh" } |
---|
97 | - |
---|
98 | - post-destroot-append { file mkdir ${destroot}${prefix}/etc/rc.d/ |
---|
99 | - system "install -bC ${portpath}/${workdir}/${name}.sh \ |
---|
100 | - ${destroot}${prefix}/etc/rc.d/"} } |
---|
101 | + depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup |
---|
102 | + post-patch { system "sed -e \"s=%%PREFIX%%=${prefix}/${name}=g\" \ |
---|
103 | + ${filespath}/${name}.sh > \ |
---|
104 | + ${worksrcdir}/${name}.sh" } |
---|
105 | + |
---|
106 | + post-destroot-append { file mkdir ${destroot}${prefix}/etc/rc.d/ |
---|
107 | + system "install -bC ${portpath}/${workdir}/${name}.sh \ |
---|
108 | + ${destroot}${prefix}/etc/rc.d/"} } |
---|