increase dvbapp PR
[vuplus_openembedded] / recipes / wview / wview-common.inc
1 SECTION = "apps"
2 LICENSE = "GPL"
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"
6
7 SRC_URI = "${SOURCEFORGE_MIRROR}/wview/wview-${PV}.tar.gz \
8         file://Makefile.am.patch;patch=1"
9
10 S = "${WORKDIR}/wview-${PV}"
11
12 inherit autotools
13
14 EXTRA_OECONF += "--prefix=${D} --enable-wunderground" 
15
16 do_install_append() {
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
25
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
32
33         if test "x${D}" != "x"; then
34                 D="-r ${D}"
35         else
36                 D=""
37         fi
38         update-rc.d $D wview defaults 95 15
39 }