1 | --- Portfile 2005-10-15 17:37:30.000000000 +0200 |
---|
2 | +++ Portfile.new 2005-10-15 17:35:02.000000000 +0200 |
---|
3 | @@ -2,8 +2,7 @@ |
---|
4 | |
---|
5 | PortSystem 1.0 |
---|
6 | name apache2 |
---|
7 | -version 2.0.54 |
---|
8 | -revision 4 |
---|
9 | +version 2.0.55 |
---|
10 | categories www |
---|
11 | maintainers james@imajes.info |
---|
12 | description The extremely popular second version of the Apache http server |
---|
13 | @@ -18,18 +17,15 @@ |
---|
14 | |
---|
15 | master_sites apache:httpd |
---|
16 | distname httpd-${version} |
---|
17 | -checksums md5 4ae8a38c6b5db9046616ce10a0d551a2 |
---|
18 | +checksums md5 f1b5b65c8661db9ffe38b5a4a865a0e2 |
---|
19 | use_bzip2 yes |
---|
20 | |
---|
21 | -depends_lib lib:libapr.0:apr \ |
---|
22 | - lib:libaprutil.0:apr-util \ |
---|
23 | - lib:libexpat.0:expat \ |
---|
24 | +depends_lib port:apr \ |
---|
25 | + port:apr-util \ |
---|
26 | + port:expat \ |
---|
27 | port:openssl |
---|
28 | |
---|
29 | -patchfiles patch-httpd-std.conf.in \ |
---|
30 | - patch-modules-ssl-ssl_engine_vars.c \ |
---|
31 | - patch-modules-ssl-ssl_toolkit_compat.h |
---|
32 | - |
---|
33 | +patchfiles patch-httpd-std.conf.in |
---|
34 | |
---|
35 | platform darwin 7 { |
---|
36 | pre-configure { |
---|
37 | @@ -65,25 +61,18 @@ |
---|
38 | |
---|
39 | destroot.keepdirs ${destroot}${prefix}/apache2/logs |
---|
40 | |
---|
41 | - # Install startup script. |
---|
42 | - set rcDir ${destroot}${prefix}/etc/rc.d |
---|
43 | - set rcFile ${name}.sh |
---|
44 | - |
---|
45 | - xinstall -m 755 -d ${rcDir} |
---|
46 | - xinstall -m 644 ${filespath}/${rcFile} ${rcDir} |
---|
47 | - reinplace "s|@@PREFIX@@|${prefix}|g" ${rcDir}/${rcFile} |
---|
48 | - |
---|
49 | # fix libtool path |
---|
50 | reinplace "s|/apache2/build/libtool|/share/apr-0/build/libtool|g" \ |
---|
51 | ${destroot}${prefix}/apache2/build/config_vars.mk |
---|
52 | } |
---|
53 | |
---|
54 | -post-install { |
---|
55 | - ui_msg "" |
---|
56 | - ui_msg "In order for apache2 to start on system boot," |
---|
57 | - ui_msg "make sure DarwinPortsStartup is installed." |
---|
58 | - ui_msg "" |
---|
59 | -} |
---|
60 | +startupitem.create yes |
---|
61 | +startupitem.start \ |
---|
62 | +"\[ -x ${prefix}/apache2/bin/apachectl \] && ${prefix}/apache2/bin/apachectl start > /dev/null" |
---|
63 | +startupitem.stop \ |
---|
64 | +"\[ -r ${prefix}/apache2/logs/httpd.pid \] && ${prefix}/apache2/bin/apachectl stop > /dev/null" |
---|
65 | +startupitem.restart \ |
---|
66 | +"\[ -r ${prefix}/apache2/logs/httpd.pid \] && ${prefix}/apache2/bin/apachectl restart > /dev/null" |
---|
67 | |
---|
68 | variant openbsd { |
---|
69 | build.env-append "LD_LIBRARY_PATH=${prefix}/lib" |
---|