1 | PortSystem 1.0 |
---|
2 | name mod_hfs_apple |
---|
3 | version 1 |
---|
4 | categories www |
---|
5 | maintainers bchesneau@mac.com |
---|
6 | description mod_hfs_apple Apache module (enforce casing in URLs which need it) |
---|
7 | platforms darwin |
---|
8 | master_sites http://distfiles.opendarwin.org/ |
---|
9 | distfiles mod_hfs_apple.c |
---|
10 | worksrcdir mod_hfs_apple |
---|
11 | checksums mod_hfs_apple.c md5 98c628a2a8b9e971fb77d497af14b621 |
---|
12 | |
---|
13 | set apache_path ${prefix}/${name}-${version} |
---|
14 | #set apache_path ${prefix} |
---|
15 | |
---|
16 | depends_lib path:${apache_path}/sbin/apxs:apache |
---|
17 | |
---|
18 | |
---|
19 | use_configure no |
---|
20 | extract { |
---|
21 | file mkdir ${worksrcpath} |
---|
22 | system "cp ${distpath}/mod_hfs_apple.c ${worksrcpath}" |
---|
23 | } |
---|
24 | |
---|
25 | build { |
---|
26 | cd ${worksrcpath} |
---|
27 | system "${apache_path}/sbin/apxs -c -o mod_hfs_apple.so mod_hfs_apple.c" |
---|
28 | } |
---|
29 | |
---|
30 | destroot { |
---|
31 | file mkdir ${destroot}${apache_path}/libexec/apache |
---|
32 | system "install -m 755 ${worksrcpath}/mod_hfs_apple.so ${destroot}${apache_path}/libexec/apache/" |
---|
33 | } |
---|
34 | |
---|
35 | post-destroot { |
---|
36 | system "apxs -i -a -n \"hfs_apple\" ${worksrcpath}/mod_hfs_apple.so" |
---|
37 | } |
---|