Ticket #9374: unbound-1.4.9.diff

File unbound-1.4.9.diff, 2.2 KB (added by Cybjit <Cybjit@…>, 7 years ago)

upgrade and split unbound

  • net/unbound/Makefile

    diff --git a/net/unbound/Makefile b/net/unbound/Makefile
    index 5f9948e..f8c3e4e 100644
    a b  
    88include $(TOPDIR)/rules.mk 
    99 
    1010PKG_NAME:=unbound 
    11 PKG_VERSION:=1.4.5 
    12 PKG_RELEASE:=3 
     11PKG_VERSION:=1.4.9 
     12PKG_RELEASE:=1 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1515PKG_SOURCE_URL:=http://www.unbound.net/downloads 
    16 PKG_MD5SUM:=f1f6c97b90b15ca503a80b888c311d6c 
     16PKG_MD5SUM:=7079e75210c656761d3804a9f2ac7b9f 
    1717 
    1818PKG_FIXUP:=libtool 
    1919PKG_INSTALL:=1 
    define Package/unbound 
    3030  DEPENDS:=+libopenssl 
    3131endef 
    3232 
     33define Package/unbound-utils 
     34  SECTION:=net 
     35  CATEGORY:=Network 
     36  SUBMENU:=IP Addresses and Names 
     37  TITLE:=Unbound utilities 
     38  URL:=http://www.unbound.net/ 
     39  DEPENDS:=+unbound 
     40endef 
     41 
     42define Package/libunbound2 
     43  SECTION:=net 
     44  CATEGORY:=Network 
     45  SUBMENU:=IP Addresses and Names 
     46  TITLE:=Unbound libs 
     47  URL:=http://www.unbound.net/ 
     48  DEPENDS:=+libopenssl 
     49endef 
     50 
    3351CONFIGURE_ARGS += \ 
    3452        --with-ssl="$(STAGING_DIR)/usr" \ 
    3553        --without-pthreads \ 
     54        --disable-gost \ 
     55        --with-ldns-builtin \ 
    3656 
    3757define Package/unbound/conffiles 
    3858/etc/unbound/unbound.conf 
    3959endef 
    4060 
    4161define Package/unbound/install 
    42         $(INSTALL_DIR) $(1)/usr/lib 
    43         $(CP) \ 
    44                 $(PKG_INSTALL_DIR)/usr/lib/libunbound.so.* \ 
    45                 $(1)/usr/lib/ 
    4662        $(INSTALL_DIR) $(1)/usr/sbin 
    4763        $(CP) \ 
    4864                $(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 \ 
    5265                $(1)/usr/sbin/ 
    5366        $(INSTALL_DIR) $(1)/etc/unbound 
    5467        $(INSTALL_CONF) ./files/unbound.conf $(1)/etc/unbound/ 
    define Package/unbound/install 
    5871        $(INSTALL_BIN) ./files/unbound.init $(1)/etc/init.d/unbound 
    5972endef 
    6073 
     74define Package/unbound-utils/install 
     75        $(INSTALL_DIR) $(1)/usr/sbin 
     76        $(CP) \ 
     77                $(PKG_INSTALL_DIR)/usr/sbin/unbound-checkconf \ 
     78                $(PKG_INSTALL_DIR)/usr/sbin/unbound-control \ 
     79                $(PKG_INSTALL_DIR)/usr/sbin/unbound-host \ 
     80                $(1)/usr/sbin/ 
     81endef 
     82 
     83define Package/libunbound2/install 
     84        $(INSTALL_DIR) $(1)/usr/lib 
     85        $(CP) \ 
     86                $(PKG_INSTALL_DIR)/usr/lib/libunbound.so.* \ 
     87                $(1)/usr/lib/ 
     88endef 
     89 
     90 
    6191$(eval $(call BuildPackage,unbound)) 
     92$(eval $(call BuildPackage,unbound-utils)) 
     93$(eval $(call BuildPackage,libunbound2)) 
    6294