From 55a71626efb790d1d6e2d8e097f7b1caa4f35649 Mon Sep 17 00:00:00 2001 From: RISCi_ATOM Date: Tue, 17 Sep 2019 22:15:06 -0400 Subject: [PATCH] Add hnsd from LTS --- package/network/services/hnsd/Makefile | 63 ++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 package/network/services/hnsd/Makefile 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)) -- 2.25.1