]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/whois/whois.inc
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / whois / whois.inc
1 DEPENDS += "gettext-native virtual/libintl"
2 DESCRIPTION = "whois is an improved whois client"
3 LICENSE = "GPL"
4 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
5 HOMEPAGE = "http://www.linux.it/~md/software/"
6 SECTION = "network"
7
8 def whois_intl(bb, d):
9         # FIXME: This is ugly.. we already have the virtual for this,
10         # but there's no way to ask bb who the current selected provider of
11         # a given virtual/ is.
12         if (bb.data.getVar('TARGET_OS', d, 1) or '').endswith('-uclibc'):
13                 return ' -lintl'
14         return ''
15
16 EXTRA_OEMAKE = '"OPTS=${CFLAGS} -DCONFIG_FILE=\\\"/etc/whois.conf\\\"" \
17                 "CC=${CC}" "LDFLAGS=${LDFLAGS}${@whois_intl(bb, d)}"'
18
19 do_install () {
20         install -D -m 0755 whois ${D}${bindir}/whois
21         install -D -m 0644 whois.1 ${D}${mandir}/man1/whois.1
22 }