dabd0678eefaa80466528e1665126aa47acdf2ad
[openwrt/svn-archive/packages.git] / libs / ldns / Makefile
1 #
2 # Copyright (C) 2011-2012 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.12
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.nlnetlabs.nl/downloads/ldns
16 PKG_MD5SUM:=e7428ed0d19baed02459e2c55660c9b3
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libldns/Default
24 URL:=http://www.nlnetlabs.nl/projects/ldns/
25 DEPENDS:=+libopenssl
26 endef
27
28 define Package/libldns
29 $(call Package/libldns/Default)
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=A library to simplify DNS programming
33 endef
34
35 define Package/libldns/description
36 The goal of ldns is to simplify DNS programming, it supports recent RFCs like
37 the DNSSEC documents, and allows developers to easily create software
38 conforming to current RFCs, and experimental software for current Internet
39 Drafts.
40 endef
41
42 define Package/drill
43 $(call Package/libldns/Default)
44 SECTION:=net
45 CATEGORY:=Network
46 SUBMENU:=IP Addresses and Names
47 TITLE:=DNS(SEC) information tool
48 DEPENDS+= +libldns
49 endef
50
51 define Package/drill/description
52 drill is a tool to designed to get all sorts of information out of the DNS. It
53 is specificly designed to be used with DNSSEC.
54 endef
55
56 CONFIGURE_ARGS += \
57 --disable-gost \
58 --with-drill \
59 --with-ssl="$(STAGING_DIR)/usr"
60
61 define Build/InstallDev
62 $(INSTALL_DIR) $(1)/usr/include
63 $(CP) $(PKG_INSTALL_DIR)/usr/include/ldns $(1)/usr/include/
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.{a,so*} $(1)/usr/lib/
66 endef
67
68 define Package/libldns/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.so.* $(1)/usr/lib/
71 endef
72
73 define Package/drill/install
74 $(INSTALL_DIR) $(1)/usr/bin
75 $(CP) $(PKG_INSTALL_DIR)/usr/bin/drill $(1)/usr/bin/
76 endef
77
78 $(eval $(call BuildPackage,libldns))
79 $(eval $(call BuildPackage,drill))