mirror of
https://github.com/coolsnowwolf/packages
synced 2025-01-08 11:17:36 +08:00
42f74cf161
Changelog from upstream (https://github.com/getdnsapi/getdns/releases/tag/v1.7.3): * 2022-12-22: Version 1.7.3 * PR getdnsapi/getdns#532: Increase CMake required version 3.5 -> 3.20, because we need cmake_path for Absolute paths in pkg-config (See Issue getdnsapi/getdns#517) Thanks Gabriel Ganne * Updated to Stubby 0.4.3 quickfix release * 2022-08-19: Version 1.7.2 * Stubby updated to 0.4.2 quickfix release * 2022-08-19: Version 1.7.1 * Always send the `dot` ALPN when using DoT * Strengthen version determination for Libidn2 during cmake processing (thanks jpbion). * Fix for issue in UDP stream selection in case of timeouts. Thanks Shikha Sharma * Fix using asterisk in ipstr for any address. Thanks uzlonewolf. * Issue getdnsapi/stubby#295: rdata not correctly written for validation for certain RR type. Also, set default built type to RelWithDebInfo and expose CFLAGS via GETDNS_BUILD_CFLAGS define and via getdns_context_get_api_information() * Issue getdnsapi/getdns#524: Bug fixes from submodules' upstream? Thanks Johnnyslee * Issue getdnsapi/getdns#517: Allow Absolute path CMAKE_INSTALL_{INCLUDE,LIB}DIR in pkg-config files. Thanks Alex Shpilkin * Issue getdnsapi/getdns#512: Update README.md to show correct PGP key location. Thanks Katze Prior. Signed-off-by: Aquila Cooper <aquila@cpr.is>
80 lines
2.5 KiB
Makefile
80 lines
2.5 KiB
Makefile
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=getdns
|
|
PKG_VERSION:=1.7.3
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_MAINTAINER:=
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://getdnsapi.net/dist/
|
|
PKG_HASH:=f1404ca250f02e37a118aa00cf0ec2cbe11896e060c6d369c6761baea7d55a2c
|
|
|
|
CMAKE_INSTALL:=1
|
|
|
|
PKG_CONFIG_DEPENDS:= \
|
|
CONFIG_GETDNS_BUILD_LIBEVENT2 \
|
|
CONFIG_GETDNS_ENABLE_STUB_ONLY \
|
|
CONFIG_GETDNS_ENABLE_IDN_LIBIDN2
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/getdns/Default
|
|
TITLE:=getdns
|
|
URL:=https://getdnsapi.net/
|
|
endef
|
|
|
|
define Package/getdns
|
|
$(call Package/getdns/Default)
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE+= (library)
|
|
DEPENDS+= +libopenssl +GETDNS_BUILD_LIBEVENT2:libevent2 +!GETDNS_ENABLE_STUB_ONLY:libunbound +GETDNS_ENABLE_IDN_LIBIDN2:libidn2
|
|
MENU:=1
|
|
endef
|
|
|
|
define Package/getdns/description
|
|
This package contains the getdns library (libgetdns).
|
|
This package also contains the "getdns_query" command line wrapper for getdns exposing the features of this implementation (both in the official API and the additional API functions).
|
|
endef
|
|
|
|
define Package/getdns/config
|
|
source "$(SOURCE)/Config.in"
|
|
endef
|
|
|
|
# CMAKE options for GetDNS are described in this document:
|
|
# https://getdnsapi.net/quick-start/cmake-quick-start/
|
|
CMAKE_OPTIONS += -DBUILD_LIBEV=OFF
|
|
CMAKE_OPTIONS += -DBUILD_LIBUV=OFF
|
|
|
|
CMAKE_OPTIONS += -DBUILD_LIBEVENT2=$(if $(CONFIG_GETDNS_BUILD_LIBEVENT2),ON,OFF)
|
|
CMAKE_OPTIONS += -DENABLE_STUB_ONLY=$(if $(CONFIG_GETDNS_ENABLE_STUB_ONLY),ON,OFF)
|
|
CMAKE_OPTIONS += -DUSE_LIBIDN2=$(if $(CONFIG_GETDNS_ENABLE_IDN_LIBIDN2),ON,OFF)
|
|
|
|
# getdns will use libbsd for the functions inet_pton, inet_ntop, strlcpy if
|
|
# present, otherwise it will use builtin code for these functions. In order to
|
|
# force the use of the built in code and remove the libbsd dependency disable
|
|
# the test for libbsd.
|
|
CMAKE_OPTIONS += -DBSD_LIBRARY=OFF
|
|
|
|
# Disable static linking to ensure that utility programs such as getdns_query
|
|
# don't end up as large statically linked binaries.
|
|
CMAKE_OPTIONS += -DENABLE_STATIC=OFF
|
|
CMAKE_OPTIONS += -DENABLE_SHARED=ON # This is the default
|
|
|
|
define Package/getdns/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgetdns.so.* $(1)/usr/lib/
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getdns_query $(1)/usr/sbin/getdns_query
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,getdns))
|