1 DESCRIPTION = "statistics & graphing for nylon"
7 PV = "1.0.0+cvs${SRCDATE}"
10 SRC_URI = "http://meshcube.org/download/${PN}_${SRCDATE}.tgz"
11 S = "${WORKDIR}/${PN}"
12 INHIBIT_PACKAGE_STRIP = "1"
15 install -d ${D}/srv/www/cgi-bin
16 install -d ${D}/${sbindir}
17 ln -s /var/tmp ${D}/srv/www/rrd-img
18 install -m 755 ${S}/*.html ${D}/srv/www/cgi-bin
19 ln -s /var/tmp/nav.inc.html ${D}/srv/www/cgi-bin
20 install -m 755 ${S}/collect.sh ${D}/${sbindir}
24 if test "x$D" != "x"; then
27 if ! grep -q collect.sh /etc/cron/crontabs/root; then
29 test -d /etc/cron/crontabs || mkdir -p /etc/cron/crontabs
30 echo "*/5 * * * * ${sbindir}/collect.sh" >> /etc/cron/crontabs/root
32 update-rc.d -s busybox-cron defaults
33 /etc/init.d/busybox-cron reload
34 if [ ! -e /etc/httpd.conf ]; then
35 echo "A:*" > /etc/httpd.conf
37 update-rc.d -s busybox-httpd defaults
39 if ! grep -q "/var/lib/rrd/" /etc/nylon/backup.list; then
40 echo "adding to backup list"
41 echo "/var/lib/rrd/" >> /etc/nylon/backup.list