source: trunk/dports/www/abyss/Portfile

Last change on this file was 124951, checked in by jmr@…, 3 years ago

abyss: license

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