[net] IP Addresses and Names: Moved unbound DNS resolver to IP Addresses and Names...
[openwrt/svn-archive/archive.git] / net / unbound / Makefile
1 #
2 # Copyright (C) 2010 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:=unbound
11 PKG_VERSION:=1.4.5
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.unbound.net/downloads
16 PKG_MD5SUM:=f1f6c97b90b15ca503a80b888c311d6c
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20 PKG_LIBTOOL_PATHS:= ./libtool ./ldns-src/libtool
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/unbound
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=IP Addresses and Names
28 TITLE:=A validating, recursive, and caching DNS resolver
29 URL:=http://www.unbound.net/
30 DEPENDS:=+libopenssl
31 endef
32
33 CONFIGURE_ARGS += \
34 --with-ssl="$(STAGING_DIR)/usr" \
35 --without-pthreads \
36
37 define Package/unbound/conffiles
38 /etc/unbound/unbound.conf
39 endef
40
41 define Package/unbound/install
42 $(INSTALL_DIR) $(1)/usr/lib
43 $(CP) \
44 $(PKG_INSTALL_DIR)/usr/lib/libunbound.so.* \
45 $(1)/usr/lib/
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(CP) \
48 $(PKG_INSTALL_DIR)/usr/sbin/unbound \
49 $(PKG_INSTALL_DIR)/usr/sbin/unbound-checkconf \
50 $(PKG_INSTALL_DIR)/usr/sbin/unbound-control \
51 $(PKG_INSTALL_DIR)/usr/sbin/unbound-host \
52 $(1)/usr/sbin/
53 $(INSTALL_DIR) $(1)/etc/unbound
54 $(INSTALL_CONF) ./files/unbound.conf $(1)/etc/unbound/
55 $(INSTALL_CONF) ./files/root.autokey $(1)/etc/unbound/
56 $(INSTALL_CONF) ./files/named.cache $(1)/etc/unbound/
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/unbound.init $(1)/etc/init.d/unbound
59 endef
60
61 $(eval $(call BuildPackage,unbound))
62