Merge pull request #4948 from ldir-EDB0/remwireguard
[feed/packages.git] / libs / ldns / Makefile
1 #
2 # Copyright (C) 2011-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ldns
11 PKG_VERSION:=1.6.17
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.nlnetlabs.nl/downloads/ldns
16 PKG_HASH:=8b88e059452118e8949a2752a55ce59bc71fa5bc414103e17f5b6b06f9bcc8cd
17
18 PKG_LICENSE:=BSD-3-Clause
19 PKG_LICENSE_FILES:=LICENSE
20 PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libldns/Default
28 URL:=http://www.nlnetlabs.nl/projects/ldns/
29 DEPENDS:=+libopenssl
30 endef
31
32 define Package/libldns
33 $(call Package/libldns/Default)
34 SECTION:=libs
35 CATEGORY:=Libraries
36 TITLE:=A library to simplify DNS programming
37 endef
38
39 define Package/libldns/description
40 The goal of ldns is to simplify DNS programming, it supports recent RFCs like
41 the DNSSEC documents, and allows developers to easily create software
42 conforming to current RFCs, and experimental software for current Internet
43 Drafts.
44 endef
45
46 define Package/drill
47 $(call Package/libldns/Default)
48 SECTION:=net
49 CATEGORY:=Network
50 SUBMENU:=IP Addresses and Names
51 TITLE:=DNS(SEC) information tool
52 DEPENDS+= +libldns
53 endef
54
55 define Package/drill/description
56 drill is a tool to designed to get all sorts of information out of the DNS. It
57 is specificly designed to be used with DNSSEC.
58 endef
59
60 CONFIGURE_ARGS += \
61 --disable-ecdsa \
62 --disable-gost \
63 --with-drill \
64 --with-ssl="$(STAGING_DIR)/usr"
65
66 define Build/InstallDev
67 $(INSTALL_DIR) $(1)/usr/include
68 $(CP) $(PKG_INSTALL_DIR)/usr/include/ldns $(1)/usr/include/
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.{a,so*} $(1)/usr/lib/
71 endef
72
73 define Package/libldns/install
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.so.* $(1)/usr/lib/
76 endef
77
78 define Package/drill/install
79 $(INSTALL_DIR) $(1)/usr/bin
80 $(CP) $(PKG_INSTALL_DIR)/usr/bin/drill $(1)/usr/bin/
81 endef
82
83 $(eval $(call BuildPackage,libldns))
84 $(eval $(call BuildPackage,drill))