2 # Copyright (C) 2008-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://humdi.net
/vnstat
16 PKG_MD5SUM
:=5652b955e16716cec48da464b083c76f
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/vnstati
23 DEPENDS
:=+vnstat
+libgd
24 TITLE
:=vnStat image output
- png image output support for vnStat
25 URL
:=http
://humdi.net
/vnstat
/
28 define Package
/vnstati
/description
29 The purpose of vnstati is to provide image output support for statistics
30 collected using vnstat
(1). However
, the image file format is limited to
31 png. All basic outputs of vnStat are supported excluding live traffic
32 features. The image can be outputted either to a file or to standard
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 $(TARGET_CONFIGURE_OPTS
) \
39 CFLAGS
+="$(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib"
42 define Package
/vnstati
/install
43 $(INSTALL_DIR
) $(1)/usr
/bin
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/vnstati
$(1)/usr
/bin
/
47 $(eval
$(call BuildPackage
,vnstati
))