1 DESCRIPTION = "statistics & graphing for nylon"
5 MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
10 SRC_URI = "svn://meshcube.org/svn/application;module=${PN};proto=http"
11 S = "${WORKDIR}/${PN}"
14 install -d ${D}/srv/www/cgi-bin
15 install -d ${D}${sbindir}
16 ln -s /var/tmp ${D}/srv/www/rrd-img
17 install -m 755 ${S}/*.html ${D}/srv/www/cgi-bin
18 ln -s /var/tmp/nav.inc.html ${D}/srv/www/cgi-bin
19 install -m 755 ${S}/collect.sh ${D}${sbindir}
23 if test "x$D" != "x"; then
26 if ! grep -q collect.sh /etc/cron/crontabs/root; then
28 test -d /etc/cron/crontabs || mkdir -p /etc/cron/crontabs
29 echo "*/5 * * * * ${sbindir}/collect.sh" >> /etc/cron/crontabs/root
31 update-rc.d -s busybox-cron defaults
32 /etc/init.d/busybox-cron reload
33 if [ ! -e /etc/httpd.conf ]; then
34 echo "A:*" > /etc/httpd.conf
36 update-rc.d -s busybox-httpd defaults
38 if ! grep -q "/var/lib/rrd/" /etc/nylon/backup.list; then
39 echo "adding to backup list"
40 echo "/var/lib/rrd/" >> /etc/nylon/backup.list