source "package/ushare/Config.in"
source "package/ussp-push/Config.in"
source "package/vde2/Config.in"
+ source "package/vnstat/Config.in"
source "package/vpnc/Config.in"
source "package/vsftpd/Config.in"
source "package/vtun/Config.in"
--- /dev/null
+config BR2_PACKAGE_VNSTAT
+ bool "vnstat"
+ depends on BR2_USE_MMU # fork()
+ help
+ vnStat is a console-based network traffic monitor that keeps a log of
+ network traffic for the selected interface(s). It uses the network
+ interface statistics provided by the kernel as information source.
+ This means that vnStat won't actually be sniffing any traffic and also
+ ensures light use of system resources.
+
+ http://humdi.net/vnstat
--- /dev/null
+################################################################################
+#
+# 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))