aboutsummaryrefslogtreecommitdiffstats
path: root/package/rrdcollect/Makefile
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-08-15 01:27:08 +0000
committerNicolas Thill <nico@openwrt.org>2005-08-15 01:27:08 +0000
commit85bc26a939380f2c829d20286820ad5bb8ca99c2 (patch)
treea59a1eeb09139fb8ade0b381df4cb105b0933687 /package/rrdcollect/Makefile
parentc007542fa9e4fd31b5900df1bbe5fae803461fa7 (diff)
downloadupstream-85bc26a939380f2c829d20286820ad5bb8ca99c2.tar.gz
upstream-85bc26a939380f2c829d20286820ad5bb8ca99c2.tar.bz2
upstream-85bc26a939380f2c829d20286820ad5bb8ca99c2.zip
add a package providing a default working (i hope) setup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1676 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/rrdcollect/Makefile')
-rw-r--r--package/rrdcollect/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/package/rrdcollect/Makefile b/package/rrdcollect/Makefile
index 4bf899b512..94dea16a30 100644
--- a/package/rrdcollect/Makefile
+++ b/package/rrdcollect/Makefile
@@ -17,6 +17,7 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(TOPDIR)/package/rules.mk
$(eval $(call PKG_template,RRDCOLLECT,rrdcollect,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+$(eval $(call PKG_template,RRDCOLLECT_EXAMPLE,rrdcollect-example,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
@@ -64,13 +65,22 @@ $(PKG_BUILD_DIR)/.built:
touch $@
$(IPKG_RRDCOLLECT):
- install -d -m0755 $(IDIR_RRDCOLLECT)/etc
- install -m0644 ./files/rrdcollect.conf $(IDIR_RRDCOLLECT)/etc
- install -d -m0755 $(IDIR_RRDCOLLECT)/etc/init.d
- install -m0755 ./files/rrdcollect.init $(IDIR_RRDCOLLECT)/etc/init.d/rrdcollect
- ln -sf rrdcollect $(IDIR_RRDCOLLECT)/etc/init.d/S98rrdcollect
install -d -m0755 $(IDIR_RRDCOLLECT)/usr/sbin
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/rrdcollect $(IDIR_RRDCOLLECT)/usr/sbin/
$(RSTRIP) $(IDIR_RRDCOLLECT)
$(IPKG_BUILD) $(IDIR_RRDCOLLECT) $(PACKAGE_DIR)
+$(IPKG_RRDCOLLECT_EXAMPLE):
+ install -d -m0755 $(IDIR_RRDCOLLECT_EXAMPLE)/etc
+ install -m0644 ./files/rrd.conf $(IDIR_RRDCOLLECT_EXAMPLE)/etc/
+ install -m0644 ./files/rrdcollect.conf $(IDIR_RRDCOLLECT_EXAMPLE)/etc/
+ install -d -m0755 $(IDIR_RRDCOLLECT_EXAMPLE)/etc/init.d
+ install -m0755 ./files/rrdcollect.init $(IDIR_RRDCOLLECT_EXAMPLE)/etc/init.d/S98rrdcollect
+ install -d -m0755 $(IDIR_RRDCOLLECT_EXAMPLE)/usr/bin
+ install -m0755 ./files/rrd.sh $(IDIR_RRDCOLLECT_EXAMPLE)/usr/bin/
+ install -d -m0755 $(IDIR_RRDCOLLECT_EXAMPLE)/www/cgi-bin
+ ln -sf /var/lib/rrdcollect/rrd.cgi $(IDIR_RRDCOLLECT_EXAMPLE)/www/cgi-bin/rrd.cgi
+ ln -sf /var/lib/rrdcollect/img $(IDIR_RRDCOLLECT_EXAMPLE)/www/img
+ $(RSTRIP) $(IDIR_RRDCOLLECT_EXAMPLE)
+ $(IPKG_BUILD) $(IDIR_RRDCOLLECT_EXAMPLE) $(PACKAGE_DIR)
+