gdk-pixbuf-csource-native (2.12.11): Switch to FILESPATHPKG
[openembedded.git] / recipes / wview / wview-common.inc
blob713c45522082d29fe96d00cccddd2a1c2d5ad1a1
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"
7 SRC_URI = "${SOURCEFORGE_MIRROR}/wview/wview-${PV}.tar.gz \
8         file://Makefile.am.patch"
10 S = "${WORKDIR}/wview-${PV}"
12 inherit autotools
14 EXTRA_OECONF += "--prefix=${D} --enable-wunderground" 
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
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
34                 D="-r ${D}"
35         else
36                 D=""
37         fi
38         update-rc.d $D wview defaults 95 15