From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] bandwidthd: new package
Date: Mon, 28 Jul 2014 21:00:11 +0200 [thread overview]
Message-ID: <20140728210011.2df538f4@free-electrons.com> (raw)
In-Reply-To: <1406548649-4649-2-git-send-email-nroach44@gmail.com>
Dear Nathaniel Roach,
On Mon, 28 Jul 2014 19:57:29 +0800, Nathaniel Roach wrote:
> 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()
No other toolchain dependency? Can you try building this package with
the following base configuration:
http://autobuild.buildroot.org/toolchains/configs/br-arm-basic.config
> +if BR2_PACKAGE_BANDWIDTHD
Please add an empty new line here.
> +config BR2_PACKAGE_BANDWIDTHD_POSTGRESQL
> + bool "enable postgresql log target support"
> + select BR2_PACKAGE_POSTGRESQL
When selecting a package, you need to propagate its dependencies. Since
postgresql depends on glibc, you need to propagate this dependency here:
depends on BR2_TOOLCHAIN_USES_GLIBC # postgresql
> 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
One new line needed here. See other packages for the format of the
header.
> +################################################################################
> +
> +BANDWIDTHD_VERSION = v2.0.1-auto-r03
> +BANDWIDTHD_SITE = $(call github,nroach44,bandwidthd,$(BANDWIDTHD_VERSION))
> +BANDWIDTHD_CONF_OPT =
> +BANDWIDTHD_CONF_ENV =
Empty variables not needed.
> +BANDWIDTHD_LICENSE = GPL+
It's rather unfortunate that they do not specify the version of the
GPL. So, I don't think the "+" is in order here. Maybe just:
# GPL version unspecified by upstream authors
BANDWIDTHD_LICENSE = GPL
> +BANDWIDTHD_DEPENDENCIES += gd
> +BANDWIDTHD_DEPENDENCIES += libpng
> +BANDWIDTHD_DEPENDENCIES += libpcap
Just one line:
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
> +
> +$(eval $(autotools-package))
Other than that, looks good. Could you resubmit an updated version
fixing those issues?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2014-07-28 19:00 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 ` [Buildroot] [PATCH 2/2] bandwidthd: new package Nathaniel Roach
2014-07-28 19:00 ` Thomas Petazzoni [this message]
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=20140728210011.2df538f4@free-electrons.com \
--to=thomas.petazzoni@free-electrons.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox