1 DESCRIPTION = "statistics & graphing for nylon"
8 PV = "1.0.0+cvs${SRCDATE}"
11 SRC_URI = "http://download.berlin.freifunk.net/meshcube.org/nylon/stable/sources/${PN}_gruen.4g__${SRCDATE}.tar.gz"
12 S = "${WORKDIR}/${PN}"
13 INHIBIT_PACKAGE_STRIP = "1"
16 install -d ${D}/srv/www/cgi-bin
17 install -d ${D}/${sbindir}
18 ln -s /var/tmp ${D}/srv/www/rrd-img
19 install -m 755 ${S}/*.html ${D}/srv/www/cgi-bin
20 ln -s /var/tmp/nav.inc.html ${D}/srv/www/cgi-bin
21 install -m 755 ${S}/collect.sh ${D}/${sbindir}
25 if test "x$D" != "x"; then
28 if ! grep -q collect.sh /etc/cron/crontabs/root; then
30 test -d /etc/cron/crontabs || mkdir -p /etc/cron/crontabs
31 echo "*/5 * * * * ${sbindir}/collect.sh" >> /etc/cron/crontabs/root
33 update-rc.d -s busybox-cron defaults
34 /etc/init.d/busybox-cron reload
35 if [ ! -e /etc/httpd.conf ]; then
36 echo "A:*" > /etc/httpd.conf
38 update-rc.d -s busybox-httpd defaults
40 if ! grep -q "/var/lib/rrd/" /etc/nylon/backup.list; then
41 echo "adding to backup list"
42 echo "/var/lib/rrd/" >> /etc/nylon/backup.list