mirror of
https://github.com/openwrt/packages.git
synced 2026-12-03 02:45:30 +04:00
udns is maintained again: 0.5 (March 2024) and 0.6 (July 2024) were the first releases in ten years, and 0.7 followed in October 2026. 0.7 fixes several bugs in DNS name parsing, among them a heap buffer overflow: a reply whose first name contained a compression pointer made dns_stdrr_size() undersize a buffer that dns_stdrr_finish() then wrote past. It also fixes dns_cancel() leaking the cancelled query. 0.5 and 0.6 fix repeated queries for non-existing domains and the inet_ntop()/inet_pton() checks, among others. The autotools patch only needs its AC_INIT version bumped; the set of source files is unchanged. Release notes: https://www.corpit.ru/mjt/udns/NEWS Signed-off-by: Sander van Deijck <sander@vandeijck.com>
75 lines
1.9 KiB
Makefile
75 lines
1.9 KiB
Makefile
#
|
|
# Copyright (C) 2017 Yousong Zhou <yszhou4tech@gmail.com>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=udns
|
|
PKG_VERSION:=0.7
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_HASH:=69df35dc42b6d11710ce1abdf4a0e1613feba8fca009f9c9a93d1716926ccac3
|
|
PKG_SOURCE_URL:=https://www.corpit.ru/mjt/udns
|
|
PKG_LICENSE:=LGPL-2.1
|
|
PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libudns
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=DNS Resolver Library
|
|
URL:=https://www.corpit.ru/mjt/udns.html
|
|
endef
|
|
|
|
define Package/libudns/description
|
|
UDNS is a stub DNS resolver library with ability to perform both synchronous
|
|
and asynchronous DNS queries.
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib
|
|
endef
|
|
|
|
define Package/libudns/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libudns.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
define udns-utility-template
|
|
define Package/udns-$(1)
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:= $(2)
|
|
URL:=https://www.corpit.ru/mjt/udns.html
|
|
DEPENDS:=+libudns
|
|
endef
|
|
|
|
define Package/udns-$(1)/install
|
|
$(INSTALL_DIR) $$(1)/usr/bin
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin/
|
|
endef
|
|
|
|
endef
|
|
|
|
CONFIGURE_ARGS += $(DISABLE_IPV6)
|
|
|
|
$(eval $(call udns-utility-template,dnsget,a simple DNS query tool))
|
|
$(eval $(call udns-utility-template,rblcheck,a simple DNSBL lookups tool))
|
|
$(eval $(call udns-utility-template,ex-rdns,a parallel rDNS resolver))
|
|
|
|
$(eval $(call BuildPackage,libudns))
|
|
$(eval $(call BuildPackage,udns-dnsget))
|
|
$(eval $(call BuildPackage,udns-rblcheck))
|
|
$(eval $(call BuildPackage,udns-ex-rdns))
|