kumquat-buildroot/package/vnstat/vnstat.mk
Bernd Kuhls bc13478bd2 package/vnstat: New package
[Thomas:
  - Rename the VNSTAT_INSTALL_VNSTATI to VNSTAT_INSTALL_VNSTATI_CMDS,
    and use 'define ... endef'.
  - Use full paths for the destinations when using $(INSTALL)]

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-01-10 15:40:50 +01:00

31 lines
847 B
Makefile

################################################################################
#
# vnstat
#
################################################################################
VNSTAT_VERSION = 1.12
VNSTAT_SITE = http://humdi.net/vnstat
VNSTAT_LICENSE = GPLv2
VNSTAT_LICENSE_FILES = COPYING
ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
VNSTAT_DEPENDENCIES = gd
VNSTAT_GD_MAKE_OPT = all
define VNSTAT_INSTALL_VNSTATI_CMDS
$(INSTALL) -D -m 0755 $(@D)/src/vnstati $(TARGET_DIR)/usr/bin/vnstati
endef
endif
define VNSTAT_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(VNSTAT_GD_MAKE_OPT)
endef
define VNSTAT_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/src/vnstat $(TARGET_DIR)/usr/bin/vnstat
$(INSTALL) -D -m 0755 $(@D)/src/vnstatd $(TARGET_DIR)/usr/sbin/vnstatd
$(VNSTAT_INSTALL_VNSTATI_CMDS)
endef
$(eval $(generic-package))