nuke $Id$ in /packages as well
[packages.git] / net / vnstati / Makefile
1
2 # Copyright (C) 2008 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:=vnstati
11 PKG_VERSION:=beta3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://humdi.net/vnstat
16 PKG_MD5SUM:=5652b955e16716cec48da464b083c76f
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/vnstati
21   SECTION:=net
22   CATEGORY:=Network
23   DEPENDS:=+vnstat +libgd
24   TITLE:=vnStat image output - png image output support for vnStat
25   URL:=http://humdi.net/vnstat/
26 endef
27
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
33         output.
34 endef
35
36 define Build/Compile
37         $(MAKE) -C $(PKG_BUILD_DIR) \
38                 $(TARGET_CONFIGURE_OPTS) \
39                 CFLAGS+="-I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib"
40 endef
41
42 define Package/vnstati/install  
43         $(INSTALL_DIR) $(1)/usr/bin
44         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/vnstati $(1)/usr/bin/
45 endef
46
47 $(eval $(call BuildPackage,vnstati))