All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nathaniel Roach <nroach44@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] bandwidthd: new package
Date: Mon, 28 Jul 2014 19:57:29 +0800	[thread overview]
Message-ID: <1406548649-4649-2-git-send-email-nroach44@gmail.com> (raw)
In-Reply-To: <1406548649-4649-1-git-send-email-nroach44@gmail.com>

Signed-off-by: Nathaniel Roach <nroach44@gmail.com>
---
 package/Config.in                |  1 +
 package/bandwidthd/Config.in     | 39 +++++++++++++++++++++++++++++++++++++++
 package/bandwidthd/bandwidthd.mk | 25 +++++++++++++++++++++++++
 3 files changed, 65 insertions(+)
 create mode 100644 package/bandwidthd/Config.in
 create mode 100644 package/bandwidthd/bandwidthd.mk

diff --git a/package/Config.in b/package/Config.in
index 559b895..04d666e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -937,6 +937,7 @@ menu "Networking applications"
 	source "package/autossh/Config.in"
 	source "package/avahi/Config.in"
 	source "package/axel/Config.in"
+	source "package/bandwidthd/Config.in"
 	source "package/bcusdk/Config.in"
 	source "package/bind/Config.in"
 	source "package/bluez_utils/Config.in"
diff --git a/package/bandwidthd/Config.in b/package/bandwidthd/Config.in
new file mode 100644
index 0000000..7305060
--- /dev/null
+++ b/package/bandwidthd/Config.in
@@ -0,0 +1,39 @@
+config BR2_PACKAGE_BANDWIDTHD
+	bool "bandwidthd"
+	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_LIBPNG
+	select BR2_PACKAGE_LIBPCAP
+	select BR2_PACKAGE_GD
+	help
+	  BandwidthD - Bandwidth monitoring
+
+	  Provides a method to measure the bandwidth that travels through the
+	  machine, grouped by subnet and IP. This information can be stored
+	  locally in /var/lib/bandwidthd and can be configured to generate
+	  static HTML pages which can be hosted by a web server.
+
+	  It is highly recommended that the target has some way of retaining the
+	  time between reboots. (e.g. NTP on boot or an RTC)
+	  
+	  It is suggested to install sqlite for logfile storage but works fine
+	  without, and can be completely ignored if the postgresql portion
+	  is used. 
+
+	  As upstream is no longer actively maintained, a fork is available
+	  on github that works on making BandwidthD's build process more
+	  compatible with buildroot's.
+
+	  Upstream: http://bandwidthd.sourceforge.net/
+	  Github fork: http://github.com/nroach44/bandwidthd
+
+if BR2_PACKAGE_BANDWIDTHD
+config BR2_PACKAGE_BANDWIDTHD_POSTGRESQL
+	bool "enable postgresql log target support"
+	select BR2_PACKAGE_POSTGRESQL
+	help
+	  Enable logging the bandwidthd data to a remote (or local) postgresql
+	  server. This can then be accessed through a php site. See 
+	  README in the source code (github.com/nroach44/bandwidthd) for more
+	  information.
+
+endif
diff --git a/package/bandwidthd/bandwidthd.mk b/package/bandwidthd/bandwidthd.mk
new file mode 100644
index 0000000..e294af3
--- /dev/null
+++ b/package/bandwidthd/bandwidthd.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# bandwidthd
+################################################################################
+
+BANDWIDTHD_VERSION = v2.0.1-auto-r03
+BANDWIDTHD_SITE = $(call github,nroach44,bandwidthd,$(BANDWIDTHD_VERSION))
+BANDWIDTHD_CONF_OPT = 
+BANDWIDTHD_CONF_ENV =
+BANDWIDTHD_LICENSE = GPL+
+
+BANDWIDTHD_DEPENDENCIES += gd
+BANDWIDTHD_DEPENDENCIES += libpng
+BANDWIDTHD_DEPENDENCIES += libpcap
+
+BANDWIDTHD_AUTORECONF = YES
+
+ifeq ($(BR2_PACKAGE_BANDWIDTHD_POSTGRESQL),y)
+BANDWIDTHD_DEPENDENCIES += postgresql
+BANDWIDTHD_CONF_OPT += --with-postgresql-logging=true
+else
+BANDWIDTHD_CONF_OPT += --with-postgresql-logging=false
+endif
+
+$(eval $(autotools-package))
-- 
2.0.1

  reply	other threads:[~2014-07-28 11:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-28 11:57 [Buildroot] [PATCH 1/2] Postgresql: Enable staging install for packages that need it to build Nathaniel Roach
2014-07-28 11:57 ` Nathaniel Roach [this message]
2014-07-28 19:00   ` [Buildroot] [PATCH 2/2] bandwidthd: new package Thomas Petazzoni
2014-07-28 18:54 ` [Buildroot] [PATCH 1/2] Postgresql: Enable staging install for packages that need it to build Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1406548649-4649-2-git-send-email-nroach44@gmail.com \
    --to=nroach44@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.