3 DESCRIPTION = "wview is a weather site generator and more for a variety of weather stations"
4 HOMEPAGE = "http://www.wviewweather.com/"
5 DEPENDS += " bash util-linux gd openssl curl update-rc.d"
7 SRC_URI = "${SOURCEFORGE_MIRROR}/wview/wview-${PV}.tar.gz \
8 file://Makefile.am.patch;patch=1"
10 S = "${WORKDIR}/wview-${PV}"
14 EXTRA_OECONF += "--prefix=${D} --enable-wunderground"
17 install -d ${D}/${sysconfdir}/init.d
18 install -d ${D}/${sysconfdir}/wview
19 install -d ${D}/${sysconfdir}/wview/html
20 install -d ${D}/${sysconfdir}/wview/alarms
21 install -m 755 ${S}/examples/NSLU2/wview ${D}/${sysconfdir}/init.d
22 install -m 644 ${S}/examples/conf/*.* ${D}/${sysconfdir}/wview
23 install -m 755 ${S}/examples/alarms/*.sh ${D}/${sysconfdir}/wview/alarms
24 install -m 644 ${S}/examples/html/*.* ${D}/${sysconfdir}/wview/html
26 install -d ${D}/var/wview
27 install -d ${D}/var/wview/archive
28 install -d ${D}/var/wview/alarms
29 install -d ${D}/var/wview/img
30 install -d ${D}/var/wview/noaa
31 install -m 644 ${S}/bin/img/*.* ${D}/var/wview/img
33 if test "x${D}" != "x"; then
38 update-rc.d $D wview defaults 95 15