# $Id: Portfile 24600 2007-04-29 00:22:11Z pguyot@kallisys.net $ PortSystem 1.0 name yaws version 1.68 categories www maintainers pguyot@kallisys.net platforms darwin description Webserver for dynamic content written in Erlang long_description Yaws is a high performance HTTP server for dynamic content \ written in Erlang. Pages can be dynamic with embedded erlang \ code. Yaws also features a built-in Wiki. homepage http://yaws.hyber.org/ master_sites http://yaws.hyber.org/download/ checksums md5 c39407752d0cd44508ef9f022b11d549 \ sha1 699de1f0ead3dcb6d68ad87d66a4b36a8e180170 \ rmd160 d1ef0eb66bc376f09c39c1513cba9f3ab8cf4f6a depends_build port:erlang extract.post_args | tar -xf - --exclude \ "${name}-${version}/www/testdir/xx*xx.jpg" patchfiles patch-man-yaws.1 \ patch-man-yaws_api.5 \ patch-man-yaws.conf.5 \ patch-scripts-Install \ patch-scripts-Makefile \ patch-scripts-yaws.conf.template post-patch { reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/man/yaws.1 reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/man/yaws.conf.5 reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/man/yaws_api.5 reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/scripts/yaws.conf.template reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/src/yaws_config.erl } configure.args --prefix=${prefix} \ --sysconfdir=${prefix}/etc \ --localstatedir=${prefix}/var post-destroot { xinstall -d "${destroot}${prefix}/var/log/yaws/" system "touch ${destroot}${prefix}/var/log/yaws/.turd" file rename "${destroot}${prefix}/etc/yaws.conf" "${destroot}${prefix}/etc/yaws.conf.template" } post-install { ui_msg "Copy and customize ${prefix}/etc/yaws.conf.template to ${prefix}/etc/yaws.conf" } startupitem.create yes startupitem.name yaws startupitem.start "${prefix}/bin/yaws --daemon --heart --conf ${prefix}/etc/yaws.conf" startupitem.stop "${prefix}/bin/yaws --stop" livecheck.check regex livecheck.url http://yaws.hyber.org/download/ livecheck.regex {
Yaws (.*) Server at yaws.hyber.org
}