1 | --- Portfile-old Sun Jul 27 14:20:44 2003 |
---|
2 | +++ Portfile.new Sun Jul 27 17:20:41 2003 |
---|
3 | @@ -2,7 +2,7 @@ |
---|
4 | |
---|
5 | PortSystem 1.0 |
---|
6 | name apache |
---|
7 | -version 1.3.27 |
---|
8 | +version 1.3.28 |
---|
9 | revision 1.0 |
---|
10 | categories www |
---|
11 | platforms darwin freebsd |
---|
12 | @@ -20,7 +20,7 @@ |
---|
13 | |
---|
14 | |
---|
15 | distname ${name}_${version} |
---|
16 | -checksums ${distname}${extract.sufx} md5 65b89365a65dcad71d4402b4862beeaa |
---|
17 | +checksums ${distname}${extract.sufx} md5 2cdece7b4881d541e072de6a2b65db77 |
---|
18 | configure.pre_args --prefix=${prefix}/${name}-${version} |
---|
19 | configure.args --with-layout=FreeBSD --server-uid=www \ |
---|
20 | --server-gid=www --enable-module=most \ |
---|
21 | @@ -31,27 +31,12 @@ |
---|
22 | |
---|
23 | install.args root=${destroot} |
---|
24 | |
---|
25 | -post-install { file mkdir ${prefix}/${name}-${version}/var/log/httpd |
---|
26 | - file mkdir ${prefix}/${name}-${version}/var/run |
---|
27 | - } |
---|
28 | - |
---|
29 | variant activate_server { |
---|
30 | depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup |
---|
31 | post-patch { system "sed -e \"s=%%PREFIX%%=${prefix}/${name}-${version}=g\" \ |
---|
32 | - ${filespath}/apache.sh >${workpath}/apache.sh" |
---|
33 | - } |
---|
34 | - |
---|
35 | - |
---|
36 | - |
---|
37 | - post-install { file mkdir ${prefix}/${name}-${version}/var/log/httpd |
---|
38 | - file mkdir ${prefix}/${name}-${version}/var/run |
---|
39 | - file mkdir ${prefix}/etc/rc.d/ |
---|
40 | - system "touch ${destroot}${prefix}/${name}-${version}/var/run/.turd \ |
---|
41 | - ${destroot}${prefix}/${name}-${version}/var/log/httpd/.turd" |
---|
42 | - system "install -bC -o root ${workpath}/apache.sh \ |
---|
43 | - ${destroot}${prefix}/etc/rc.d/" |
---|
44 | - } |
---|
45 | -} |
---|
46 | + ${filespath}/apache.sh >${workpath}/apache.sh" |
---|
47 | + } |
---|
48 | +} |
---|
49 | |
---|
50 | variant mod_perl { |
---|
51 | |
---|
52 | @@ -84,15 +69,29 @@ |
---|
53 | INSTALLSITEARCH=${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin \ |
---|
54 | root=${destroot} |
---|
55 | |
---|
56 | - post-install { file mkdir ${prefix}/var/log/httpd ${prefix}/var/run |
---|
57 | - system "touch ${destroot}${prefix}/${name}-${version}/var/log/httpd/.turd \ |
---|
58 | - ${destroot}${prefix}/${name}-${version}/var/run/.turd" |
---|
59 | - cd ${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin/auto/mod_perl/ |
---|
60 | - system "cat .packlist | sed s#${destroot}/##g >.packlist.new" |
---|
61 | - system "mv .packlist.new .packlist" |
---|
62 | - } |
---|
63 | - |
---|
64 | } |
---|
65 | + |
---|
66 | +post-install { |
---|
67 | + |
---|
68 | + file mkdir ${prefix}/${name}-${version}/var/log/httpd |
---|
69 | + file mkdir ${prefix}/${name}-${version}/var/run |
---|
70 | + |
---|
71 | + system "touch ${destroot}${prefix}/${name}-${version}/var/run/.turd \ |
---|
72 | + ${destroot}${prefix}/${name}-${version}/var/log/httpd/.turd" |
---|
73 | + |
---|
74 | + if { [variant_isset activate_server]} { |
---|
75 | + file mkdir ${destroot}${prefix}/etc/rc.d/ |
---|
76 | + system "install -bC -o root ${workpath}/apache.sh \ |
---|
77 | + ${destroot}${prefix}/etc/rc.d/" |
---|
78 | + } |
---|
79 | + |
---|
80 | + if { [variant_isset mod_perl]} { |
---|
81 | + cd ${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin/auto/mod_perl/ |
---|
82 | + system "cat .packlist | sed s#${destroot}/##g >.packlist.new" |
---|
83 | + system "mv .packlist.new .packlist" |
---|
84 | + } |
---|
85 | +} |
---|
86 | + |
---|
87 | |
---|
88 | long_description \ |
---|
89 | Apache is an HTTP server designed as a plug-in replacement for \ |
---|