2014-06-24 23:16:55 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# whois
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-07-23 18:00:07 +02:00
|
|
|
WHOIS_VERSION = 5.3.2
|
|
|
|
WHOIS_SITE = http://snapshot.debian.org/archive/debian/20180715T153200Z/pool/main/w/whois
|
2014-06-24 23:16:55 +02:00
|
|
|
WHOIS_SOURCE = whois_$(WHOIS_VERSION).tar.xz
|
2018-07-08 11:45:27 +02:00
|
|
|
WHOIS_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
2014-06-24 23:16:55 +02:00
|
|
|
WHOIS_MAKE_ENV = $(TARGET_MAKE_ENV)
|
2014-09-27 21:32:38 +02:00
|
|
|
WHOIS_MAKE_OPTS = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
|
2014-06-26 12:05:31 +02:00
|
|
|
LIBS="$(WHOIS_EXTRA_LIBS)"
|
2017-03-30 15:43:32 +02:00
|
|
|
WHOIS_LICENSE = GPL-2.0+
|
2014-06-24 23:16:55 +02:00
|
|
|
WHOIS_LICENSE_FILES = COPYING
|
2017-07-03 23:23:43 +02:00
|
|
|
WHOIS_EXTRA_LIBS = $(TARGET_NLS_LIBS)
|
2014-06-24 23:16:55 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
|
|
WHOIS_DEPENDENCIES += libiconv
|
2014-06-26 12:05:31 +02:00
|
|
|
WHOIS_EXTRA_LIBS += -liconv
|
2014-06-24 23:16:55 +02:00
|
|
|
WHOIS_MAKE_ENV += HAVE_ICONV=1
|
|
|
|
endif
|
|
|
|
|
2018-05-01 22:40:38 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBIDN2),y)
|
|
|
|
WHOIS_DEPENDENCIES += libidn2
|
|
|
|
WHOIS_MAKE_ENV += HAVE_LIBIDN2=1
|
|
|
|
endif
|
|
|
|
|
2017-08-13 20:34:17 +02:00
|
|
|
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
|
|
|
WHOIS_BUILD_TARGETS =
|
|
|
|
WHOIS_INSTALL_TARGETS = install
|
|
|
|
else
|
|
|
|
WHOIS_BUILD_TARGETS = Makefile.depend whois mkpasswd
|
|
|
|
WHOIS_INSTALL_TARGETS = install-whois install-mkpasswd
|
|
|
|
endif
|
|
|
|
|
2014-06-24 23:16:55 +02:00
|
|
|
define WHOIS_BUILD_CMDS
|
2017-08-13 20:34:17 +02:00
|
|
|
$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) \
|
|
|
|
$(WHOIS_BUILD_TARGETS) -C $(@D)
|
2014-06-24 23:16:55 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define WHOIS_INSTALL_TARGET_CMDS
|
2014-09-27 21:32:38 +02:00
|
|
|
$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) \
|
2017-08-13 20:34:17 +02:00
|
|
|
BASEDIR="$(TARGET_DIR)" $(WHOIS_INSTALL_TARGETS) -C $(@D)
|
2014-06-24 23:16:55 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|