source: trunk/dports/www/abyss/Portfile @ 87969

Last change on this file since 87969 was 86303, checked in by ryandesign@…, 8 years ago

rewrite master_sites to avoid redirects

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 86303 2011-10-24 12:26:54Z ryandesign@macports.org $
2
3PortSystem 1.0
4name                    abyss
5version                 0.3
6categories              www
7maintainers             nomaintainer
8description             Light HTTP/1.1 compliant web server.
9long_description        \
10                                ABYSS aims to be a fully HTTP/1.1 compliant web server. \
11                                Its main design goals are speed, low resource usage and \
12                                portability. ABYSS works on most UNIX based systems and \
13                                on Win32 systems (Win95/98/2000/NT).
14homepage                http://abyss.sourceforge.net/
15platforms               darwin
16master_sites    sourceforge:project/abyss/abyss/${version}
17checksums               md5 ca2dc7618e17dae8eea23c02dd3bbf9d
18patchfiles              patch-src-data.c patch-src-server.c patch-conf-abyss.conf patch-src-conn.c
19        worksrcdir              ${name}
20post-patch {
21        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/conf/abyss.conf
22}
23use_configure   no
24build { system "cd ${worksrcpath}/src/ && make" }
25
26destroot {
27        xinstall -o root -m 0755 -p "${worksrcpath}/bin/abyss" "${destroot}${prefix}/sbin/"
28        xinstall -d -o nobody -m 0755 "${destroot}${prefix}/share/abyss/"
29        xinstall -d -o nobody -m 0755 "${destroot}${prefix}/share/abyss/log/"
30        system "touch ${destroot}${prefix}/share/abyss/log/access.log"
31        xinstall -d -o nobody -m 0755 ${destroot}${prefix}/share/abyss/conf/"
32        xinstall -o root -m 0644 -p "${worksrcpath}/conf/abyss.conf" \
33                "${destroot}${prefix}/share/abyss/conf/"
34        xinstall -o root -m 0644 -p "${worksrcpath}/conf/mime.types" \
35                "${destroot}${prefix}/share/abyss/conf/"
36        xinstall -d -o root -m 0755 "${destroot}${prefix}/share/abyss/htdocs/"
37        xinstall -o root -m 0644 "${portpath}/files/index.html" \
38                "${destroot}${prefix}/share/abyss/htdocs/"
39        xinstall -o root -m 755 -d "${destroot}${prefix}/etc/rc.d"
40        xinstall -o root -m 755 -c \
41                "${portpath}/files/abyss.sh" "${destroot}${prefix}/etc/rc.d"
42        reinplace "s|__PREFIX|${prefix}|g" \
43                "${destroot}${prefix}/etc/rc.d/abyss.sh"
44}
45
46startupitem.create      yes
47startupitem.name        abyss
48startupitem.pidfile     "clean ${prefix}/share/abyss/abyss.pid"
49startupitem.start       "${prefix}/etc/rc.d/abyss.sh start"
50startupitem.stop        "${prefix}/etc/rc.d/abyss.sh start"
Note: See TracBrowser for help on using the repository browser.