From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] whois: new package
Date: Wed, 25 Jun 2014 07:37:29 +0200 [thread overview]
Message-ID: <53AA6019.5010703@mind.be> (raw)
In-Reply-To: <1403644615-11634-1-git-send-email-gustavo@zacarias.com.ar>
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
next prev parent reply other threads:[~2014-06-25 5:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-24 21:16 [Buildroot] [PATCH] whois: new package Gustavo Zacarias
2014-06-25 5:37 ` Arnout Vandecappelle [this message]
2014-06-25 15:03 ` Peter Korsgaard
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=53AA6019.5010703@mind.be \
--to=arnout@mind.be \
--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.