mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
udns: initial version 0.4
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
#
|
||||
# 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.4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://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:=http://www.corpit.ru/mjt/udns.html
|
||||
endef
|
||||
|
||||
define Package/libudns/description
|
||||
UDNS is a stub DNS resolver library with ability to perform both syncronous
|
||||
and asyncronous 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:=http://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))
|
||||
Reference in New Issue
Block a user