Skip to contentSkip to conversation

bandwidthd: new package

PATCH New Nathaniel Roach 2 participants 2 messages Jul 31, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 bandwidthd: new package

---
Changes v2 to v3
- Bump version (solved issues with the db stuff)

Changes v1 to v2

- Misc tweaks as recommended by Thomas Petazzoni
- Added sqlite toggle
- Bump version

---
 package/Config.in                |  1 +
 package/bandwidthd/Config.in     | 48 ++++++++++++++++++++++++++++++++++++++++
 package/bandwidthd/bandwidthd.mk | 32 +++++++++++++++++++++++++++
 3 files changed, 81 insertions(+)
 create mode 100644 package/bandwidthd/Config.in
 create mode 100644 package/bandwidthd/bandwidthd.mk
package/Config.in +1 -0
index 29b8e6b..ee158fa 100644
@@ -939,6 +939,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"
package/bandwidthd/Config.in new file +48 -0

48 lines not on this page · raw message

package/bandwidthd/bandwidthd.mk new file +32 -0
new file mode 100644
index 0000000..f85fefc
@@ -0,0 +1,32 @@
+################################################################################
+#
+# bandwidthd
+#
+################################################################################
+
+BANDWIDTHD_VERSION = v2.0.1-auto-r07
+BANDWIDTHD_SITE = $(call github,nroach44,bandwidthd,$(BANDWIDTHD_VERSION))
+
+#Specified as "any version of the GPL that is current as of your download."
+# by upstream.
+BANDWIDTHD_LICENSE = GPL
+
+BANDWIDTHD_DEPENDENCIES += gd libpng 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
+
+ifeq ($(BR2_PACKAGE_BANDWIDTHD_SQLITE3),y)
+BANDWIDTHD_DEPENDENCIES += sqlite
+BANDWIDTHD_CONF_OPT += --with-sqlite-storage=true
+else
+BANDWIDTHD_CONF_OPT += --with-sqlite-storage=false
+endif
+
+$(eval $(autotools-package))
Signature · 1 line
2.0.1
#1 lore raw

PATCH v3 1/1 bandwidthd: new package

Dear Nathaniel Roach,

Quoted 9 lines · Nathaniel Roach

---
Changes v2 to v3
- Bump version (solved issues with the db stuff)

Changes v1 to v2

- Misc tweaks as recommended by Thomas Petazzoni
- Added sqlite toggle
- Bump version

Quoted 7 lines
---
 package/Config.in                |  1 +
 package/bandwidthd/Config.in     | 48 ++++++++++++++++++++++++++++++++++++++++
 package/bandwidthd/bandwidthd.mk | 32 +++++++++++++++++++++++++++
 3 files changed, 81 insertions(+)
 create mode 100644 package/bandwidthd/Config.in
 create mode 100644 package/bandwidthd/bandwidthd.mk

Thanks, I've applied the patch after doing some minor formatting fixes (removing trailing whitespace, rewrapping too long help text, etc.).

Make sure to monitor http://autobuild.buildroot.org in the coming days to see if your package appears in red. In which case, you're invited to investigate the build failures caused by your new package, and provide patches to fix them! :-)

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com