From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/whois/whois.inc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 recipes/whois/whois.inc (limited to 'recipes/whois/whois.inc') diff --git a/recipes/whois/whois.inc b/recipes/whois/whois.inc new file mode 100644 index 0000000000..15af5e8454 --- /dev/null +++ b/recipes/whois/whois.inc @@ -0,0 +1,21 @@ +DEPENDS += "gettext-native virtual/libintl" +DESCRIPTION = "whois is an improved whois client" +LICENSE = "GPL" +HOMEPAGE = "http://www.linux.it/~md/software/" +SECTION = "network" + +def whois_intl(bb, d): + # FIXME: This is ugly.. we already have the virtual for this, + # but there's no way to ask bb who the current selected provider of + # a given virtual/ is. + if (bb.data.getVar('TARGET_OS', d, 1) or '').endswith('-uclibc'): + return ' -lintl' + return '' + +EXTRA_OEMAKE = '"OPTS=${CFLAGS} -DCONFIG_FILE=\\\"/etc/whois.conf\\\"" \ + "CC=${CC}" "LDFLAGS=${LDFLAGS}${@whois_intl(bb, d)}"' + +do_install () { + install -D -m 0755 whois ${D}${bindir}/whois + install -D -m 0644 whois.1 ${D}${mandir}/man1/whois.1 +} -- cgit v1.2.3