treewide: add PKG_CPE_ID for better cvescanner coverage
[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.7.0
12 PKG_RELEASE:=5
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.nlnetlabs.nl/downloads/ldns
16 PKG_HASH:=c19f5b1b4fb374cfe34f4845ea11b1e0551ddc67803bd6ddd5d2a20f0997a6cc
17
18 PKG_LICENSE:=BSD-3-Clause
19 PKG_LICENSE_FILES:=LICENSE
20 PKG_MAINTAINER:=
21 PKG_CPE_ID:=cpe:/a:nlnetlabs:ldns
22
23 PKG_FIXUP:=autoreconf
24 PKG_BUILD_PARALLEL:=1
25 PKG_INSTALL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libldns/Default
30 URL:=http://www.nlnetlabs.nl/projects/ldns/
31 DEPENDS:=+libopenssl
32 endef
33
34 define Package/libldns
35 $(call Package/libldns/Default)
36 SECTION:=libs
37 CATEGORY:=Libraries
38 TITLE:=A library to simplify DNS programming
39 endef
40
41 define Package/libldns/description
42 The goal of ldns is to simplify DNS programming, it supports recent RFCs like
43 the DNSSEC documents, and allows developers to easily create software
44 conforming to current RFCs, and experimental software for current Internet
45 Drafts.
46 endef
47
48 define Package/drill
49 $(call Package/libldns/Default)
50 SECTION:=net
51 CATEGORY:=Network
52 SUBMENU:=IP Addresses and Names
53 TITLE:=DNS(SEC) information tool
54 DEPENDS+= +libldns
55 endef
56
57 define Package/drill/description
58 drill is a tool to designed to get all sorts of information out of the DNS. It
59 is specificly designed to be used with DNSSEC.
60 endef
61
62 CONFIGURE_ARGS += \
63 --disable-dane-ta-usage \
64 --disable-ecdsa \
65 --disable-gost \
66 --with-drill \
67 --with-ssl="$(STAGING_DIR)/usr"
68
69 define Build/InstallDev
70 $(INSTALL_DIR) $(1)/usr/include
71 $(CP) $(PKG_INSTALL_DIR)/usr/include/ldns $(1)/usr/include/
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.{a,so*} $(1)/usr/lib/
74 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
75 $(CP) $(PKG_BUILD_DIR)/packaging/libldns.pc $(1)/usr/lib/pkgconfig
76 endef
77
78 define Package/libldns/install
79 $(INSTALL_DIR) $(1)/usr/lib
80 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.so.* $(1)/usr/lib/
81 endef
82
83 define Package/drill/install
84 $(INSTALL_DIR) $(1)/usr/bin
85 $(CP) $(PKG_INSTALL_DIR)/usr/bin/drill $(1)/usr/bin/
86 endef
87
88 $(eval $(call BuildPackage,libldns))
89 $(eval $(call BuildPackage,drill))