All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] whois: new package
@ 2014-06-24 21:16 Gustavo Zacarias
  2014-06-25  5:37 ` Arnout Vandecappelle
  2014-06-25 15:03 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2014-06-24 21:16 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/Config.in       |  1 +
 package/whois/Config.in |  7 +++++++
 package/whois/whois.mk  | 40 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 48 insertions(+)
 create mode 100644 package/whois/Config.in
 create mode 100644 package/whois/whois.mk

diff --git a/package/Config.in b/package/Config.in
index b839512..838e822 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1047,6 +1047,7 @@ endif
 	source "package/vtun/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/wget/Config.in"
+	source "package/whois/Config.in"
 endif
 	source "package/wireless-regdb/Config.in"
 	source "package/wireless_tools/Config.in"
diff --git a/package/whois/Config.in b/package/whois/Config.in
new file mode 100644
index 0000000..40b6590
--- /dev/null
+++ b/package/whois/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_WHOIS
+	bool "whois"
+	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
+	help
+	  Improved whois client.
+
+	  http://www.linux.it/~md/software/
diff --git a/package/whois/whois.mk b/package/whois/whois.mk
new file mode 100644
index 0000000..24f5167
--- /dev/null
+++ b/package/whois/whois.mk
@@ -0,0 +1,40 @@
+################################################################################
+#
+# whois
+#
+################################################################################
+
+WHOIS_VERSION = 5.1.3
+WHOIS_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/w/whois
+WHOIS_SOURCE = whois_$(WHOIS_VERSION).tar.xz
+# busybox whois is very bad so step on it
+WHOIS_DEPENDENCIES = host-gettext $(if $(BR2_PACKAGE_BUSYBOX),busybox)
+WHOIS_MAKE_ENV = $(TARGET_MAKE_ENV)
+WHOIS_MAKE_OPT = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)"
+WHOIS_LICENSE = GPLv2+
+WHOIS_LICENSE_FILES = COPYING
+
+ifeq ($(BR2_NEEDS_GETTEXT),y)
+WHOIS_DEPENDENCIES += gettext
+WHOIS_MAKE_OPT += LIBS="-lintl"
+endif
+
+ifeq ($(BR2_PACKAGE_LIBICONV),y)
+WHOIS_DEPENDENCIES += libiconv
+WHOIS_MAKE_ENV += HAVE_ICONV=1
+endif
+
+ifeq ($(BR2_PACKAGE_LIBIDN),y)
+WHOIS_DEPENDENCIES += libidn
+WHOIS_MAKE_ENV += HAVE_LIBIDN=1
+endif
+
+define WHOIS_BUILD_CMDS
+	$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPT) -C $(@D)
+endef
+
+define WHOIS_INSTALL_TARGET_CMDS
+	$(WHOIS_MAKE_ENV) $(MAKE) BASEDIR="$(TARGET_DIR)" install -C $(@D)
+endef
+
+$(eval $(generic-package))
-- 
1.8.5.5

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

* [Buildroot] [PATCH] whois: new package
  2014-06-24 21:16 [Buildroot] [PATCH] whois: new package Gustavo Zacarias
@ 2014-06-25  5:37 ` Arnout Vandecappelle
  2014-06-25 15:03 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2014-06-25  5:37 UTC (permalink / raw)
  To: buildroot

On 24/06/14 23:16, Gustavo Zacarias wrote:
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

 Still, two small remarks...

> ---
>  package/Config.in       |  1 +
>  package/whois/Config.in |  7 +++++++
>  package/whois/whois.mk  | 40 ++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 48 insertions(+)
>  create mode 100644 package/whois/Config.in
>  create mode 100644 package/whois/whois.mk
> 
> diff --git a/package/Config.in b/package/Config.in
> index b839512..838e822 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1047,6 +1047,7 @@ endif
>  	source "package/vtun/Config.in"
>  if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
>  	source "package/wget/Config.in"
> +	source "package/whois/Config.in"
>  endif
>  	source "package/wireless-regdb/Config.in"
>  	source "package/wireless_tools/Config.in"
> diff --git a/package/whois/Config.in b/package/whois/Config.in
> new file mode 100644
> index 0000000..40b6590
> --- /dev/null
> +++ b/package/whois/Config.in
> @@ -0,0 +1,7 @@
> +config BR2_PACKAGE_WHOIS
> +	bool "whois"
> +	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
> +	help
> +	  Improved whois client.
> +
> +	  http://www.linux.it/~md/software/
> diff --git a/package/whois/whois.mk b/package/whois/whois.mk
> new file mode 100644
> index 0000000..24f5167
> --- /dev/null
> +++ b/package/whois/whois.mk
> @@ -0,0 +1,40 @@
> +################################################################################
> +#
> +# whois
> +#
> +################################################################################
> +
> +WHOIS_VERSION = 5.1.3
> +WHOIS_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/w/whois
> +WHOIS_SOURCE = whois_$(WHOIS_VERSION).tar.xz
> +# busybox whois is very bad so step on it

 I don't think there's a need for such emotional comments :-)

> +WHOIS_DEPENDENCIES = host-gettext $(if $(BR2_PACKAGE_BUSYBOX),busybox)
> +WHOIS_MAKE_ENV = $(TARGET_MAKE_ENV)
> +WHOIS_MAKE_OPT = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)"
> +WHOIS_LICENSE = GPLv2+
> +WHOIS_LICENSE_FILES = COPYING
> +
> +ifeq ($(BR2_NEEDS_GETTEXT),y)
> +WHOIS_DEPENDENCIES += gettext
> +WHOIS_MAKE_OPT += LIBS="-lintl"
> +endif
> +
> +ifeq ($(BR2_PACKAGE_LIBICONV),y)
> +WHOIS_DEPENDENCIES += libiconv
> +WHOIS_MAKE_ENV += HAVE_ICONV=1
> +endif
> +
> +ifeq ($(BR2_PACKAGE_LIBIDN),y)
> +WHOIS_DEPENDENCIES += libidn
> +WHOIS_MAKE_ENV += HAVE_LIBIDN=1
> +endif
> +
> +define WHOIS_BUILD_CMDS
> +	$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPT) -C $(@D)
> +endef
> +
> +define WHOIS_INSTALL_TARGET_CMDS
> +	$(WHOIS_MAKE_ENV) $(MAKE) BASEDIR="$(TARGET_DIR)" install -C $(@D)

 Isn't it better to include $(WHOIS_MAKE_OPT) here as well? Just in case the
package decides to recompile something during installation...


 Regards,
 Arnout


> +endef
> +
> +$(eval $(generic-package))
> 


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [Buildroot] [PATCH] whois: new package
  2014-06-24 21:16 [Buildroot] [PATCH] whois: new package Gustavo Zacarias
  2014-06-25  5:37 ` Arnout Vandecappelle
@ 2014-06-25 15:03 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2014-06-25 15:03 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 > Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
 > ---
 >  package/Config.in       |  1 +
 >  package/whois/Config.in |  7 +++++++
 >  package/whois/whois.mk  | 40 ++++++++++++++++++++++++++++++++++++++++
 >  3 files changed, 48 insertions(+)
 >  create mode 100644 package/whois/Config.in
 >  create mode 100644 package/whois/whois.mk

 > diff --git a/package/Config.in b/package/Config.in
 > index b839512..838e822 100644
 > --- a/package/Config.in
 > +++ b/package/Config.in
 > @@ -1047,6 +1047,7 @@ endif
 >  	source "package/vtun/Config.in"
 >  if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 >  	source "package/wget/Config.in"
 > +	source "package/whois/Config.in"

Committed with Arnout's feedback taken into consideration, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2014-06-25 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-24 21:16 [Buildroot] [PATCH] whois: new package Gustavo Zacarias
2014-06-25  5:37 ` Arnout Vandecappelle
2014-06-25 15:03 ` Peter Korsgaard

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.