|
@@ -0,0 +1,131 @@
|
|
1
|
+#
|
|
2
|
+# Copyright (C) 2006-2014 OpenWrt.org
|
|
3
|
+#
|
|
4
|
+# This is free software, licensed under the GNU General Public License v2.
|
|
5
|
+# See /LICENSE for more information.
|
|
6
|
+#
|
|
7
|
+
|
|
8
|
+include $(TOPDIR)/rules.mk
|
|
9
|
+
|
|
10
|
+PKG_NAME:=rrdtool1
|
|
11
|
+PKG_VERSION:=1.0.50
|
|
12
|
+PKG_RELEASE:=2
|
|
13
|
+
|
|
14
|
+PKG_BUILD_DIR:=$(BUILD_DIR)/rrdtool-$(PKG_VERSION)
|
|
15
|
+PKG_SOURCE:=rrdtool-$(PKG_VERSION).tar.gz
|
|
16
|
+PKG_SOURCE_URL:= \
|
|
17
|
+ http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.0.x \
|
|
18
|
+ http://www.fastmirrors.org/rrdtool/rrdtool-1.0.x \
|
|
19
|
+ ftp://ftp.sunet.se/pub/network/monitoring/rrdtool/rrdtool-1.0.x
|
|
20
|
+PKG_MD5SUM:=c466e2e7df95fa8e318e46437da87686
|
|
21
|
+
|
|
22
|
+PKG_FIXUP:=autoreconf
|
|
23
|
+
|
|
24
|
+include $(INCLUDE_DIR)/package.mk
|
|
25
|
+
|
|
26
|
+define Package/rrdtool1/Default
|
|
27
|
+ TITLE:=Round Robin Database (RRD)
|
|
28
|
+ URL:=http://oss.oetiker.ch/rrdtool/
|
|
29
|
+endef
|
|
30
|
+
|
|
31
|
+define Package/rrdtool1/description/Default
|
|
32
|
+ RRD is the Acronym for Round Robin Database. RRD is a system to store and
|
|
33
|
+ display time-series data (i.e. network bandwidth, machine-room temperature,
|
|
34
|
+ server load average). It stores the data in a very compact way that will
|
|
35
|
+ not expand over time, and it presents useful graphs by processing the data
|
|
36
|
+ to enforce a certain data density. It can be used either via simple wrapper
|
|
37
|
+ scripts (from shell or Perl) or via frontends that poll network devices and
|
|
38
|
+ put friendly user interface on it.
|
|
39
|
+
|
|
40
|
+ This is version 1.0.x with cgilib-0.4, gd1.3 and libpng-1.0.9 linked into
|
|
41
|
+ librrd.so. The library is much smaller compared to the 1.2.x version with
|
|
42
|
+ separate dynamic linked libraries.
|
|
43
|
+endef
|
|
44
|
+
|
|
45
|
+define Package/librrd1
|
|
46
|
+$(call Package/rrdtool1/Default)
|
|
47
|
+ SECTION:=libs
|
|
48
|
+ CATEGORY:=Libraries
|
|
49
|
+ DEPENDS:=+zlib
|
|
50
|
+ TITLE+= management library
|
|
51
|
+endef
|
|
52
|
+
|
|
53
|
+define Package/librrd1/description
|
|
54
|
+$(call Package/rrdtool1/description/Default)
|
|
55
|
+ This package contains a shared library, used by other programs.
|
|
56
|
+endef
|
|
57
|
+
|
|
58
|
+define Package/rrdcgi1
|
|
59
|
+$(call Package/rrdtool1/Default)
|
|
60
|
+ SECTION:=utils
|
|
61
|
+ CATEGORY:=Utilities
|
|
62
|
+ DEPENDS:=+librrd1
|
|
63
|
+ TITLE+= CGI graphing tool
|
|
64
|
+endef
|
|
65
|
+
|
|
66
|
+define Package/rrdcgi1/description
|
|
67
|
+$(call Package/rrdtool1/description/Default)
|
|
68
|
+ This package contains the rrdcgi tool used to create web pages containing
|
|
69
|
+ RRD graphs based on templates.
|
|
70
|
+endef
|
|
71
|
+
|
|
72
|
+define Package/rrdtool1
|
|
73
|
+$(call Package/rrdtool1/Default)
|
|
74
|
+ SECTION:=utils
|
|
75
|
+ CATEGORY:=Utilities
|
|
76
|
+ DEPENDS:=+librrd1
|
|
77
|
+ TITLE+= management tools
|
|
78
|
+endef
|
|
79
|
+
|
|
80
|
+define Package/rrdtool1/description
|
|
81
|
+$(call Package/rrdtool1/description/Default)
|
|
82
|
+ This package contains command line tools used to manage RRDs.
|
|
83
|
+endef
|
|
84
|
+
|
|
85
|
+TARGET_CFLAGS += $(FPIC) --std=c99
|
|
86
|
+
|
|
87
|
+CONFIGURE_ARGS += \
|
|
88
|
+ $(DISABLE_NLS) \
|
|
89
|
+ --enable-shared=yes \
|
|
90
|
+ --enable-static=yes \
|
|
91
|
+ --disable-rpath \
|
|
92
|
+ --with-gnu-ld \
|
|
93
|
+ --enable-local-zlib
|
|
94
|
+
|
|
95
|
+CONFIGURE_VARS += \
|
|
96
|
+ ac_cv_path_PERL=no \
|
|
97
|
+ rd_cv_ieee_works=yes \
|
|
98
|
+ shrext_cmds=".so"
|
|
99
|
+
|
|
100
|
+define Build/Compile
|
|
101
|
+ $(MAKE) -C $(PKG_BUILD_DIR) \
|
|
102
|
+ DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
103
|
+ shrext_cmds=".so" \
|
|
104
|
+ all install
|
|
105
|
+endef
|
|
106
|
+
|
|
107
|
+define Package/rrdtool1/install
|
|
108
|
+ $(INSTALL_DIR) $(1)/usr/bin
|
|
109
|
+ $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrd{tool,update} $(1)/usr/bin/
|
|
110
|
+endef
|
|
111
|
+
|
|
112
|
+define Package/rrdcgi1/install
|
|
113
|
+ $(INSTALL_DIR) $(1)/usr/bin
|
|
114
|
+ $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(1)/usr/bin/
|
|
115
|
+endef
|
|
116
|
+
|
|
117
|
+define Package/librrd1/install
|
|
118
|
+ $(INSTALL_DIR) $(1)/usr/lib
|
|
119
|
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(1)/usr/lib/
|
|
120
|
+endef
|
|
121
|
+
|
|
122
|
+define Build/InstallDev
|
|
123
|
+ $(INSTALL_DIR) $(1)/usr/lib/rrdtool-1.0/include
|
|
124
|
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/rrd.h $(1)/usr/lib/rrdtool-1.0/include/
|
|
125
|
+ $(INSTALL_DIR) $(1)/usr/lib/rrdtool-1.0/lib
|
|
126
|
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.{a,so*} $(1)/usr/lib/rrdtool-1.0/lib/
|
|
127
|
+endef
|
|
128
|
+
|
|
129
|
+$(eval $(call BuildPackage,librrd1))
|
|
130
|
+$(eval $(call BuildPackage,rrdcgi1))
|
|
131
|
+$(eval $(call BuildPackage,rrdtool1))
|