# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers macports.org:mbclark
homepage http://wviewweather.com/
description unix weather application that generates web sites
wview is a collection of linux/unix daemons that interface with a supported \
weather station to retrieve archive records (if generated by the station) and \
current conditions. The archive records are stored in an SQLite3 database. At a \
configurable interval, wview will utilize the archive history and current \
conditions to generate weather images (buckets, dials and graphs) and HTML web \
pages based on user-configurable HTML templates.
master_sites sourceforge:wview
depends_lib port:gd2 port:radlib path:lib/libssl.dylib:openssl port:libpng port:zlib \
port:sqlite3 port:curl port:gawk
checksums md5 a296932574ffb4a3855e505a73daf9c5 \
sha1 f9a09e20633ce0af455df7c91f415db110e243f0 \
rmd160 dd9908ae142c134f4f28dd97acb782c3bfacb4b5
xinstall -d -o root -g wheel -m 755 ${destroot}/Library/StartupItems
xinstall -d -o root -g wheel -m 755 \
${worksrcpath}/examples/MacOSX/wview ${destroot}/Library/StartupItems/wview
xinstall -o root -g wheel -m 755 ${worksrcpath}/examples/MacOSX/wview/wview \
${destroot}/Library/StartupItems/wview/wview
xinstall -o root -g wheel -m 644 \
${worksrcpath}/examples/MacOSX/wview/StartupParameters.plist \
${destroot}/Library/StartupItems/wview/StartupParameters.plist
file rename ${destroot}${prefix}/var/wviewmgmt ${destroot}${prefix}/www/wviewmgmt
reinplace "s|/etc/init.d/wview stop|/sbin/SystemStarter stop wview|" \
${destroot}${prefix}/www/wviewmgmt/wview_control.php
reinplace "s|/etc/init.d/wview start|/sbin/SystemStarter start wview|" \
${destroot}${prefix}/www/wviewmgmt/wview_control.php
reinplace "s|/etc/init.d/wview stop|/sbin/SystemStarter stop wview|" \
${destroot}${prefix}/www/wviewmgmt/wview_upgrade.php
file mkdir ${destroot}${prefix}/share/${name}
file mkdir ${destroot}${prefix}/share/doc/${name}
file mkdir ${destroot}${prefix}/share/${name}/etc