Merge pull request #2106 from jefferyto/obfsproxy
[feed/packages.git] / utils / rrdtool1 / Makefile
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 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
22
23 PKG_FIXUP:=autoreconf
24 PKG_CHECK_FORMAT_SECURITY:=0
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/rrdtool1/Default
29 TITLE:=Round Robin Database (RRD)
30 URL:=http://oss.oetiker.ch/rrdtool/
31 endef
32
33 define Package/rrdtool1/description/Default
34 RRD is the Acronym for Round Robin Database. RRD is a system to store and
35 display time-series data (i.e. network bandwidth, machine-room temperature,
36 server load average). It stores the data in a very compact way that will
37 not expand over time, and it presents useful graphs by processing the data
38 to enforce a certain data density. It can be used either via simple wrapper
39 scripts (from shell or Perl) or via frontends that poll network devices and
40 put friendly user interface on it.
41
42 This is version 1.0.x with cgilib-0.4, gd1.3 and libpng-1.0.9 linked into
43 librrd.so. The library is much smaller compared to the 1.2.x version with
44 separate dynamic linked libraries.
45 endef
46
47 define Package/librrd1
48 $(call Package/rrdtool1/Default)
49 SECTION:=libs
50 CATEGORY:=Libraries
51 DEPENDS:=+zlib
52 TITLE+= management library
53 endef
54
55 define Package/librrd1/description
56 $(call Package/rrdtool1/description/Default)
57 This package contains a shared library, used by other programs.
58 endef
59
60 define Package/rrdcgi1
61 $(call Package/rrdtool1/Default)
62 SECTION:=utils
63 CATEGORY:=Utilities
64 DEPENDS:=+librrd1
65 TITLE+= CGI graphing tool
66 endef
67
68 define Package/rrdcgi1/description
69 $(call Package/rrdtool1/description/Default)
70 This package contains the rrdcgi tool used to create web pages containing
71 RRD graphs based on templates.
72 endef
73
74 define Package/rrdtool1
75 $(call Package/rrdtool1/Default)
76 SECTION:=utils
77 CATEGORY:=Utilities
78 DEPENDS:=+librrd1
79 TITLE+= management tools
80 endef
81
82 define Package/rrdtool1/description
83 $(call Package/rrdtool1/description/Default)
84 This package contains command line tools used to manage RRDs.
85 endef
86
87 TARGET_CFLAGS += $(FPIC) --std=c99
88
89 CONFIGURE_ARGS += \
90 $(DISABLE_NLS) \
91 --enable-shared=yes \
92 --enable-static=yes \
93 --disable-rpath \
94 --with-gnu-ld \
95 --enable-local-zlib
96
97 CONFIGURE_VARS += \
98 ac_cv_path_PERL=no \
99 rd_cv_ieee_works=yes \
100 shrext_cmds=".so"
101
102 define Build/Compile
103 $(MAKE) -C $(PKG_BUILD_DIR) \
104 DESTDIR="$(PKG_INSTALL_DIR)" \
105 shrext_cmds=".so" \
106 all install
107 endef
108
109 define Package/rrdtool1/install
110 $(INSTALL_DIR) $(1)/usr/bin
111 $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrd{tool,update} $(1)/usr/bin/
112 endef
113
114 define Package/rrdcgi1/install
115 $(INSTALL_DIR) $(1)/usr/bin
116 $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(1)/usr/bin/
117 endef
118
119 define Package/librrd1/install
120 $(INSTALL_DIR) $(1)/usr/lib
121 $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(1)/usr/lib/
122 endef
123
124 define Build/InstallDev
125 $(INSTALL_DIR) $(1)/usr/lib/rrdtool-1.0/include
126 $(CP) $(PKG_INSTALL_DIR)/usr/include/rrd.h $(1)/usr/lib/rrdtool-1.0/include/
127 $(INSTALL_DIR) $(1)/usr/lib/rrdtool-1.0/lib
128 $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.{a,so*} $(1)/usr/lib/rrdtool-1.0/lib/
129 endef
130
131 $(eval $(call BuildPackage,librrd1))
132 $(eval $(call BuildPackage,rrdcgi1))
133 $(eval $(call BuildPackage,rrdtool1))