diff options
Diffstat (limited to 'packages/whois')
-rw-r--r-- | packages/whois/whois.inc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/whois/whois.inc b/packages/whois/whois.inc index e69de29bb2..9587920fcc 100644 --- a/packages/whois/whois.inc +++ b/packages/whois/whois.inc @@ -0,0 +1,22 @@ +DEPENDS += "gettext-native virtual/libintl" +DESCRIPTION = "whois is an improved whois client" +LICENSE = "GPL" +MAINTAINER = "Chris Larson <kergoth@handhelds.org>" +HOMEPAGE = "http://www.linux.it/~md/software/" +SECTION = "net" + +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 +} |