The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / vnstat / vnstat.mk
1 ################################################################################
2 #
3 # vnstat
4 #
5 ################################################################################
6
7 VNSTAT_VERSION = 1.12
8 VNSTAT_SITE = http://humdi.net/vnstat
9 VNSTAT_LICENSE = GPLv2
10 VNSTAT_LICENSE_FILES = COPYING
11
12 ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
13 VNSTAT_DEPENDENCIES = gd
14 VNSTAT_GD_MAKE_OPT = all
15 define VNSTAT_INSTALL_VNSTATI_CMDS
16         $(INSTALL) -D -m 0755 $(@D)/src/vnstati $(TARGET_DIR)/usr/bin/vnstati
17 endef
18 endif
19
20 define VNSTAT_BUILD_CMDS
21         $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(VNSTAT_GD_MAKE_OPT)
22 endef
23
24 define VNSTAT_INSTALL_TARGET_CMDS
25         $(INSTALL) -D -m 0755 $(@D)/src/vnstat $(TARGET_DIR)/usr/bin/vnstat
26         $(INSTALL) -D -m 0755 $(@D)/src/vnstatd $(TARGET_DIR)/usr/sbin/vnstatd
27         $(VNSTAT_INSTALL_VNSTATI_CMDS)
28 endef
29
30 $(eval $(generic-package))