1 | PortSystem 1.0 |
---|
2 | name abyss |
---|
3 | version 0.3 |
---|
4 | categories www |
---|
5 | maintainers pguyot@kallisys.net |
---|
6 | description HTTP/1.1 compliant web server for |
---|
7 | long_description \ |
---|
8 | ABYSS aims to be a fully HTTP/1.1 compliant web server. \ |
---|
9 | Its main design goals are speed, low resource usage and \ |
---|
10 | portability. ABYSS works on most UNIX based systems and \ |
---|
11 | on Win32 systems (Win95/98/2000/NT). |
---|
12 | homepage http://abyss.sourceforge.net/ |
---|
13 | platforms darwin |
---|
14 | master_sites sourceforge:abyss |
---|
15 | checksums md5 ca2dc7618e17dae8eea23c02dd3bbf9d |
---|
16 | patchfiles patch-src-data.c patch-src-server.c patch-conf-abyss.conf patch-src-conn.c |
---|
17 | worksrcdir ${name} |
---|
18 | post-patch { |
---|
19 | reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/conf/abyss.conf |
---|
20 | } |
---|
21 | configure {} |
---|
22 | build { system "cd ${worksrcpath}/src/ && make" } |
---|
23 | |
---|
24 | depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup |
---|
25 | |
---|
26 | destroot { |
---|
27 | system "install -o root -m 0755 -p ${worksrcpath}/bin/abyss ${destroot}${prefix}/sbin/" |
---|
28 | system "install -d -o nobody -m 0755 ${destroot}${prefix}/share/abyss/" |
---|
29 | system "install -d -o nobody -m 0755 ${destroot}${prefix}/share/abyss/log/" |
---|
30 | system "touch ${destroot}${prefix}/share/abyss/log/access.log" |
---|
31 | system "install -d -o nobody -m 0755 ${destroot}${prefix}/share/abyss/conf/" |
---|
32 | system "install -o root -m 0644 -p ${worksrcpath}/conf/* ${destroot}${prefix}/share/abyss/conf/" |
---|
33 | system "install -d -o root -m 0755 ${destroot}${prefix}/share/abyss/htdocs/" |
---|
34 | system "install -o root -m 0644 ${portpath}/files/index.html ${destroot}${prefix}/share/abyss/htdocs/" |
---|
35 | system "install -o root -m 755 -d ${destroot}${prefix}/etc/rc.d" |
---|
36 | system "install -o root -m 755 -c \ |
---|
37 | ${portpath}/files/abyss.sh ${destroot}${prefix}/etc/rc.d" |
---|
38 | reinplace "s|__PREFIX|${prefix}|g" \ |
---|
39 | ${destroot}${prefix}/etc/rc.d/abyss.sh |
---|
40 | } |
---|