Ticket #803: mod_hfs_apple-portfile-20031001

File mod_hfs_apple-portfile-20031001, 1012 bytes (added by bchesneau@…, 21 years ago)

New portfile

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