Ticket #27658: Portfile

File Portfile, 1.7 KB (added by sepp@…, 14 years ago)
Line 
1# $Id:
2
3PortSystem 1.0
4name                    nostromo
5version                 1.9.3
6categories              www
7maintainers             nomaintainer@macports.org
8description             nhttpd is a simple, fast and secure HTTP server.
9long_description nhttpd is a simple, fast and secure HTTP server.
10
11homepage                http://www.nazgul.ch/dev_nostromo.html
12platforms               darwin
13master_sites    http://www.nazgul.ch/dev
14checksums               md5 a6971aeb687282b59d0c89530f5b18a6
15
16use_configure   no
17build.target    all
18
19platform darwin {
20        patchfiles nhttpd.patch tools.patch
21}
22
23destroot {
24        xinstall -W ${worksrcpath} -m 755 src/nhttpd/nhttpd ${destroot}${prefix}/sbin/
25        xinstall -W ${worksrcpath} -m 755 src/tools/crypt ${destroot}${prefix}/sbin/
26
27        xinstall -W ${worksrcpath} src/nhttpd/nhttpd.cat8 ${destroot}${prefix}/share/man/man6/nhttpd.6
28       
29        xinstall -d ${destroot}${prefix}/share/examples/nostromo
30        xinstall -d ${destroot}${prefix}/share/doc/nostromo
31
32        xinstall ${worksrcpath}/ChangeLog ${destroot}${prefix}/share/doc/nostromo
33        xinstall ${worksrcpath}/README ${destroot}${prefix}/share/doc/nostromo
34
35        xinstall -W ${worksrcpath} -m 755 htdocs/cgi-bin/printenv ${destroot}${prefix}/share/examples/nostromo/
36        xinstall -W ${worksrcpath} -m 550 conf/mimes              ${destroot}${prefix}/share/examples/nostromo/
37        xinstall -W ${worksrcpath} -m 750 conf/nhttpd.conf-dist   ${destroot}${prefix}/share/examples/nostromo/
38        xinstall -W ${worksrcpath} -m 750 htdocs/index.html       ${destroot}${prefix}/share/examples/nostromo/
39        xinstall -W ${worksrcpath} -m 750 htdocs/nostromo.gif     ${destroot}${prefix}/share/examples/nostromo/
40        xinstall -W ${worksrcpath} -m 750 icons/dir.gif           ${destroot}${prefix}/share/examples/nostromo/
41        xinstall -W ${worksrcpath} -m 750 icons/file.gif          ${destroot}${prefix}/share/examples/nostromo/
42}