2020-11-18 21:22:58 +01:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=whois
|
2024-03-15 14:04:48 +01:00
|
|
|
PKG_VERSION:=5.5.21
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2020-11-18 21:22:58 +01:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/w/whois
|
2024-03-15 14:04:48 +01:00
|
|
|
PKG_HASH:=760ab584beae76acdcc89c6aec2e91cff571185bccc2bee8e4412a3f8e70be77
|
2020-11-18 21:22:58 +01:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
PKG_BUILD_DEPENDS:=perl/host
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
|
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/whois
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Intelligent WHOIS client
|
|
|
|
URL:=https://github.com/rfc1036/whois
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/whois/description
|
|
|
|
This client is intelligent and can automatically select the appropriate whois
|
|
|
|
server for most queries.
|
|
|
|
|
|
|
|
The internal database is often more accurate than IANA's published one, but
|
|
|
|
please send me any information you have regarding domains and network resources
|
|
|
|
which are not correctly handled by the program.
|
|
|
|
endef
|
|
|
|
|
|
|
|
EXTRA_CFLAGS+=-DHAVE_GETOPT_LONG
|
|
|
|
MAKE_FLAGS += PERL=$(STAGING_DIR_HOSTPKG)/usr/bin/perl
|
|
|
|
|
|
|
|
define Package/whois/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whois $(1)/usr/bin/whois
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,whois))
|