From: RISCi_ATOM Date: Wed, 18 Sep 2019 02:15:06 +0000 (-0400) Subject: Add hnsd from LTS X-Git-Tag: v1.5.0-rc2~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=55a71626efb790d1d6e2d8e097f7b1caa4f35649;p=librecmc%2Flibrecmc.git Add hnsd from LTS --- diff --git a/package/network/services/hnsd/Makefile b/package/network/services/hnsd/Makefile new file mode 100644 index 0000000000..11e10a6da5 --- /dev/null +++ b/package/network/services/hnsd/Makefile @@ -0,0 +1,63 @@ +# +# Copyright (c) 2018 libreCMC Project +# Copyright (c) 2018 Robert Call +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=hnsd +PKG_VERSION:=0.1 +PKG_RELEASE:=1 +PKG_LICENSE:=MIT + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_VERSION:=HEAD +PKG_SOURCE_URL:=https://github.com/handshake-org/hnsd +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +PKG_FIXUP:=autoreconf +include $(INCLUDE_DIR)/package.mk + +define Package/hnsd + SECTION:=net + CATEGORY:=Network + TITLE:=Handshake SPV + DEPENDS:=+libunbound +libunbound + MAINTAINER:=Robert Call + URL:=https://handshake.org +endef + +define Package/hnsd/description +SPV resolver daemon for the Handshake network. +endef + +define Build/Configure + ( cd $(PKG_BUILD_DIR); ./autogen.sh ) + $(call Build/Configure/Default) +endef + +define Build/Compile + +$(MAKE) -C $(PKG_BUILD_DIR) \ + CC="$(TARGET_CC)" \ + CXXFLAGS="$(TARGET_CXX)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + LD="$(TARGET_CC)" \ + LDLIBS="$(LDLIBS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" + CROSS_COMPILE="$(TARGET_CROSS)" \ + ARCH="$(ARCH)" + +endef + +define Package/hnsd/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/hnsd $(1)/usr/sbin/ + +endef + +$(eval $(call BuildPackage,hnsd))