contrib/package: make luci-app-statistics depend on a few collectd plugins

applications/luci-statistics: implement a workaround for broken permissions on /tmp
This commit is contained in:
Jo-Philipp Wich 2009-02-16 17:43:43 +00:00
parent 695361877c
commit cb0e180448
2 changed files with 14 additions and 7 deletions

View file

@ -18,14 +18,17 @@ start() {
ln -s ${imagepath:-/tmp/rrdimg}/ /www/rrdimg
fi
### flush LuCI index cache
test -f /var/luci-indexcache && rm /var/luci-indexcache
### flush LuCI index cache
test -f /var/luci-indexcache && rm /var/luci-indexcache
### workaround broken permissions on /tmp
chmod 1777 /tmp
}
restart() {
### regenerate config / prepare environment
start
### regenerate config / prepare environment
start
### restart collectd
/etc/init.d/collectd restart
### restart collectd
/etc/init.d/collectd restart
}

View file

@ -415,7 +415,11 @@ endef
define Package/luci-app-statistics
$(call Package/luci/webtemplate)
DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
+PACKAGE_luci-app-statistics:collectd-mod-rrdtool1 +PACKAGE_luci-app-statistics:rrdtool1
+PACKAGE_luci-app-statistics:rrdtool1 \
+PACKAGE_luci-app-statistics:collectd-mod-rrdtool1 \
+PACKAGE_luci-app-statistics:collectd-mod-wireless \
+PACKAGE_luci-app-statistics:collectd-mod-interfaces \
+PACKAGE_luci-app-statistics:collectd-mod-load
TITLE:=LuCI Statistics Application
endef