sg3-utils: add newer buildable version
[openembedded.git] / recipes / whois / whois.inc
1 DEPENDS += "gettext-native virtual/libintl"
2 DESCRIPTION = "whois is an improved whois client"
3 LICENSE = "GPL"
4 HOMEPAGE = "http://www.linux.it/~md/software/"
5 SECTION = "network"
6
7 INC_PR  = "r1"
8
9 SRC_URI = "${DEBIAN_MIRROR}/main/w/whois/whois_${PV}.tar.gz;name=whois"
10
11 S = "${WORKDIR}/whois-${PV}"
12
13 inherit gettext
14
15 def whois_intl(bb, d):
16         # FIXME: This is ugly.. we already have the virtual for this,
17         # but there's no way to ask bb who the current selected provider of
18         # a given virtual/ is.
19         if (bb.data.getVar('TARGET_OS', d, 1) or '').endswith('-uclibc'):
20                 return ' -lintl'
21         return ''
22
23 EXTRA_OEMAKE = '"OPTS=${CFLAGS} -DCONFIG_FILE=\\\"/etc/whois.conf\\\"" \
24                 "CC=${CC}" "LDFLAGS=${LDFLAGS}${@whois_intl(bb, d)}"'
25
26 do_install () {
27         install -D -m 0755 whois ${D}${bindir}/whois
28         install -D -m 0644 whois.1 ${D}${mandir}/man1/whois.1
29 }