2022-05-26 20:49:36 +08:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#
|
|
|
|
# Copyright (C) 2022 ImmortalWrt.org
|
|
|
|
|
2022-05-12 20:52:49 +08:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=dns2tcp
|
2024-07-12 00:26:52 +08:00
|
|
|
PKG_VERSION:=1.1.2
|
2024-06-05 00:27:29 +08:00
|
|
|
PKG_RELEASE:=1
|
2022-05-12 20:52:49 +08:00
|
|
|
|
2024-05-23 21:41:03 +08:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/zfl9/dns2tcp/tar.gz/v$(PKG_VERSION)?
|
2024-07-12 00:26:52 +08:00
|
|
|
PKG_HASH:=5e8c6302a1d32c16ae7d4b8e39cd9aad1f2d7e68fe18813e76cb1e48ec5940d2
|
2022-05-26 20:49:36 +08:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
|
|
|
PKG_LICENSE:=AGPL-3.0-only
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2022-05-12 20:52:49 +08:00
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2024-06-05 00:27:29 +08:00
|
|
|
PKG_USE_MIPS16:=0
|
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
2022-05-12 20:52:49 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/dns2tcp
|
2022-05-26 20:49:36 +08:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=IP Addresses and Names
|
|
|
|
TITLE:=utility to convert dns query from udp to tcp
|
|
|
|
URL:=https://github.com/zfl9/dns2tcp
|
2022-05-12 20:52:49 +08:00
|
|
|
endef
|
|
|
|
|
2024-06-05 00:27:29 +08:00
|
|
|
TARGET_CFLAGS+= $(FPIC) -Wl,--gc-sections -flto
|
2022-05-26 20:49:36 +08:00
|
|
|
MAKE_FLAGS+= \
|
|
|
|
CFLAGS="-std=c99 $(TARGET_CFLAGS)" \
|
|
|
|
EVCFLAGS="$(TARGET_CFLAGS)"
|
2022-05-12 20:52:49 +08:00
|
|
|
|
|
|
|
define Package/dns2tcp/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2022-05-26 20:49:36 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dns2tcp $(1)/usr/bin/
|
2022-05-12 20:52:49 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,dns2tcp))
|