source: packages/net/unbound/Makefile @ 20880

Last change on this file since 20880 was 20880, checked in by nico, 7 years ago

[packages] add unbound (closes: #7022)

File size: 1.5 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=unbound
11PKG_VERSION:=1.4.3
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.unbound.net/downloads
16PKG_MD5SUM:=2dffdd42f94b8238447a41835439d129
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20PKG_LIBTOOL_PATHS:= ./libtool ./ldns-src/libtool
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/unbound
25  SECTION:=net
26  CATEGORY:=Network
27  TITLE:=A validating, recursive, and caching DNS resolver
28  URL:=http://www.unbound.net/
29  DEPENDS:=+libopenssl
30endef
31
32CONFIGURE_ARGS += \
33        --with-ssl="$(STAGING_DIR)/usr" \
34        --without-pthreads \
35
36define Package/unbound/conffiles
37/etc/unbound/unbound.conf
38endef
39
40define Package/unbound/install
41        $(INSTALL_DIR) $(1)/usr/lib
42        $(CP) \
43                $(PKG_INSTALL_DIR)/usr/lib/libunbound.so.* \
44                $(1)/usr/lib/
45        $(INSTALL_DIR) $(1)/usr/sbin
46        $(CP) \
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 \
51                $(1)/usr/sbin/
52        $(INSTALL_DIR) $(1)/etc/unbound
53        $(INSTALL_CONF) ./files/unbound.conf $(1)/etc/unbound/
54        $(INSTALL_CONF) ./files/dlv.isc.org.key $(1)/etc/unbound/
55        $(INSTALL_CONF) ./files/anchors.mf $(1)/etc/unbound/
56        $(INSTALL_DIR) $(1)/etc/init.d
57        $(INSTALL_BIN) ./files/unbound.init $(1)/etc/init.d/unbound
58endef
59
60$(eval $(call BuildPackage,unbound))
61
Note: See TracBrowser for help on using the repository browser.