Fetching contributors…
Cannot retrieve contributors at this time
51 lines (47 sloc) 1.97 KB
PortSystem 1.0
name abyss
version 0.3
categories www
license BSD
maintainers nomaintainer
description Light HTTP/1.1 compliant web server.
long_description \
ABYSS aims to be a fully HTTP/1.1 compliant web server. \
Its main design goals are speed, low resource usage and \
portability. ABYSS works on most UNIX based systems and \
on Win32 systems (Win95/98/2000/NT).
platforms darwin
master_sites sourceforge:project/abyss/abyss/${version}
checksums md5 ca2dc7618e17dae8eea23c02dd3bbf9d
patchfiles patch-src-data.c patch-src-server.c patch-conf-abyss.conf patch-src-conn.c
worksrcdir ${name}
post-patch {
reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/conf/abyss.conf
use_configure no
build { system "cd ${worksrcpath}/src/ && make" }
destroot {
xinstall -o root -m 0755 -p "${worksrcpath}/bin/abyss" "${destroot}${prefix}/sbin/"
xinstall -d -o nobody -m 0755 "${destroot}${prefix}/share/abyss/"
xinstall -d -o nobody -m 0755 "${destroot}${prefix}/share/abyss/log/"
system "touch ${destroot}${prefix}/share/abyss/log/access.log"
xinstall -d -o nobody -m 0755 ${destroot}${prefix}/share/abyss/conf/"
xinstall -o root -m 0644 -p "${worksrcpath}/conf/abyss.conf" \
xinstall -o root -m 0644 -p "${worksrcpath}/conf/mime.types" \
xinstall -d -o root -m 0755 "${destroot}${prefix}/share/abyss/htdocs/"
xinstall -o root -m 0644 "${filespath}/index.html" \
xinstall -o root -m 755 -d "${destroot}${prefix}/etc/rc.d"
xinstall -o root -m 755 -c \
"${filespath}/" "${destroot}${prefix}/etc/rc.d"
reinplace "s|__PREFIX|${prefix}|g" \
startupitem.create yes abyss
startupitem.pidfile "clean ${prefix}/share/abyss/"
startupitem.start "${prefix}/etc/rc.d/ start"
startupitem.stop "${prefix}/etc/rc.d/ start"