2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.unbound.net
/downloads
16 PKG_MD5SUM
:=f1f6c97b90b15ca503a80b888c311d6c
20 PKG_LIBTOOL_PATHS
:= .
/libtool .
/ldns-src
/libtool
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/unbound
27 TITLE
:=A validating
, recursive
, and caching DNS resolver
28 URL
:=http
://www.unbound.net
/
33 --with-ssl
="$(STAGING_DIR)/usr" \
36 define Package
/unbound
/conffiles
37 /etc
/unbound
/unbound.conf
40 define Package
/unbound
/install
41 $(INSTALL_DIR
) $(1)/usr
/lib
43 $(PKG_INSTALL_DIR
)/usr
/lib
/libunbound.so.
* \
45 $(INSTALL_DIR
) $(1)/usr
/sbin
47 $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound \
48 $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-checkconf \
49 $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-control \
50 $(PKG_INSTALL_DIR
)/usr
/sbin
/unbound-host \
52 $(INSTALL_DIR
) $(1)/etc
/unbound
53 $(INSTALL_CONF
) .
/files
/unbound.conf
$(1)/etc
/unbound
/
54 $(INSTALL_CONF
) .
/files
/root.autokey
$(1)/etc
/unbound
/
55 $(INSTALL_CONF
) .
/files
/named.cache
$(1)/etc
/unbound
/
56 $(INSTALL_DIR
) $(1)/etc
/init.d
57 $(INSTALL_BIN
) .
/files
/unbound.init
$(1)/etc
/init.d
/unbound
60 $(eval
$(call BuildPackage
,unbound
))