Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/vnstat: New package
@ 2015-01-10 13:38 Bernd Kuhls
  2015-01-10 14:46 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2015-01-10 13:38 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/Config.in          |    1 +
 package/vnstat/Config.in   |   11 +++++++++++
 package/vnstat/vnstat.hash |    2 ++
 package/vnstat/vnstat.mk   |   28 ++++++++++++++++++++++++++++
 4 files changed, 42 insertions(+)
 create mode 100644 package/vnstat/Config.in
 create mode 100644 package/vnstat/vnstat.hash
 create mode 100644 package/vnstat/vnstat.mk

diff --git a/package/Config.in b/package/Config.in
index 8476773..8bc413c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1170,6 +1170,7 @@ endif
 	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"
diff --git a/package/vnstat/Config.in b/package/vnstat/Config.in
new file mode 100644
index 0000000..0df4982
--- /dev/null
+++ b/package/vnstat/Config.in
@@ -0,0 +1,11 @@
+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
diff --git a/package/vnstat/vnstat.hash b/package/vnstat/vnstat.hash
new file mode 100644
index 0000000..a3334d6
--- /dev/null
+++ b/package/vnstat/vnstat.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256	af1050d9c1b22d4b9742fe0d1818de9eb1037b8e7f9ba67b962e108d8527be69	vnstat-1.12.tar.gz
diff --git a/package/vnstat/vnstat.mk b/package/vnstat/vnstat.mk
new file mode 100644
index 0000000..d4f7c55
--- /dev/null
+++ b/package/vnstat/vnstat.mk
@@ -0,0 +1,28 @@
+################################################################################
+#
+# 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
+VNSTAT_INSTALL_VNSTATI = $(INSTALL) -D -m 0755 $(@D)/src/vnstati $(TARGET_DIR)/usr/bin
+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
+	$(INSTALL) -D -m 0755 $(@D)/src/vnstatd $(TARGET_DIR)/usr/sbin
+	$(VNSTAT_INSTALL_VNSTATI)
+endef
+
+$(eval $(generic-package))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-10 14:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-10 13:38 [Buildroot] [PATCH 1/1] package/vnstat: New package Bernd Kuhls
2015-01-10 14:46 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox