Patchwork Added build configuration for Network UPS Tools (nut) package. Signed-off-by: Dallas Clement <dallas.a.clement@gmail.com>

login
register
mail settings
Submitter Dallas Clement
Date Sept. 25, 2012, 3:41 p.m.
Message ID <CAE9DZUTZPXWobHm=FYzE2Ph-CkLmtQ5CF4uHC54mqY2eiyJ8oA@mail.gmail.com>
Download mbox | patch
Permalink /patch/186840/
State Superseded
Headers show

Comments

Dallas Clement - Sept. 25, 2012, 3:41 p.m.
package/Config.in     |    1 +
 package/nut/Config.in |    6 ++++++
 package/nut/nut.mk    |   10 ++++++++++
 3 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 package/nut/Config.in
 create mode 100644 package/nut/nut.mk
Arnout Vandecappelle - Oct. 3, 2012, 9:35 a.m.
On 25/09/12 17:41, Dallas Clement wrote:
> package/Config.in     |    1 +
>   package/nut/Config.in |    6 ++++++
>   package/nut/nut.mk    |   10 ++++++++++
>   3 files changed, 17 insertions(+), 0 deletions(-)
>   create mode 100644 package/nut/Config.in
>   create mode 100644 package/nut/nut.mk

  I don't know which mailer you're using, but your patches don't come
through correctly.  You should have:

Subject: [PATH] nut: new package

Body:

Signed-off-by: Dallas Clement <...>
---
<diffstat>
diff --git ...

  And if you want additional comments (e.g. patch changelog) it should
go below your SOB, separated by a line containing three dashes.


[snip]
> diff --git a/package/nut/nut.mk b/package/nut/nut.mk
> new file mode 100644
> index 0000000..7a0b7c6
> --- /dev/null
> +++ b/package/nut/nut.mk
> @@ -0,0 +1,10 @@
> +#############################################################
> +#
> +# nut
> +#
> +#############################################################
> +NUT_VERSION = 2.4.3
> +NUT_SOURCE = nut-$(NUT_VERSION).tar.gz
> +NUT_SITE = http://www.networkupstools.org/source/2.4/
> +
> +$(eval $(autotools-package))

  On uClibc toolchain, it misses -lm so you should add:

NUT_CONF_ENV = LDFLAGS="$(TARGET_LDFLAGS) -lm"


  Regards,
  Arnout

Patch

diff --git a/package/Config.in b/package/Config.in
index 083cad8..bf26419 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -590,6 +590,7 @@  source "package/noip/Config.in"
 source "package/ngircd/Config.in"
 source "package/ngrep/Config.in"
 source "package/ntp/Config.in"
+source "package/nut/Config.in"
 source "package/nuttcp/Config.in"
 source "package/olsr/Config.in"
 source "package/openntpd/Config.in"
diff --git a/package/nut/Config.in b/package/nut/Config.in
new file mode 100644
index 0000000..18b2aed
--- /dev/null
+++ b/package/nut/Config.in
@@ -0,0 +1,6 @@ 
+config BR2_PACKAGE_NUT
+       bool "nut"
+       help
+         Network UPS tools
+
+         www.networkupstools.org
diff --git a/package/nut/nut.mk b/package/nut/nut.mk
new file mode 100644
index 0000000..7a0b7c6
--- /dev/null
+++ b/package/nut/nut.mk
@@ -0,0 +1,10 @@ 
+#############################################################
+#
+# nut
+#
+#############################################################
+NUT_VERSION = 2.4.3
+NUT_SOURCE = nut-$(NUT_VERSION).tar.gz
+NUT_SITE = http://www.networkupstools.org/source/2.4/
+
+$(eval $(autotools-package))