2015-01-10 14:38:46 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# vnstat
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-12-23 16:38:56 +01:00
|
|
|
VNSTAT_VERSION = 1.15
|
2015-01-10 14:38:46 +01:00
|
|
|
VNSTAT_SITE = http://humdi.net/vnstat
|
|
|
|
VNSTAT_LICENSE = GPLv2
|
|
|
|
VNSTAT_LICENSE_FILES = COPYING
|
2016-04-11 21:49:52 +02:00
|
|
|
VNSTAT_DEPENDENCIES = host-pkgconf
|
2015-12-23 16:38:56 +01:00
|
|
|
# We're patching configure.ac, so we need to autoreconf
|
|
|
|
VNSTAT_AUTORECONF = YES
|
2015-01-10 14:38:46 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
|
2016-04-11 21:49:52 +02:00
|
|
|
VNSTAT_DEPENDENCIES += gd
|
2015-12-23 16:38:56 +01:00
|
|
|
VNSTAT_CONF_OPTS = --enable-image-output
|
|
|
|
else
|
|
|
|
VNSTAT_CONF_OPTS = --disable-image-output
|
2015-01-10 14:38:46 +01:00
|
|
|
endif
|
|
|
|
|
2015-12-23 16:38:56 +01:00
|
|
|
# vnStat declares an 'install-data-hook' rule that tries to run
|
|
|
|
# 'vnstat --showconfig' on the host to generate a default config file.
|
|
|
|
# That obviously doesn't work when cross-compiling, so avoid it
|
|
|
|
# entirely.
|
|
|
|
VNSTAT_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec
|
2015-01-10 14:38:46 +01:00
|
|
|
|
2015-12-23 16:38:56 +01:00
|
|
|
$(eval $(autotools-package))
|