You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=overture
  3. PKG_VERSION:=1.6
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/shawn1m/overture/tar.gz/v${PKG_VERSION}?
  7. PKG_HASH:=a7a568cc65f2a1714f036c555b95d3be27234b98ae951cb748198fecce1bb1e4
  8. PKG_MAINTAINER:=Richard Yu <yurichard3839@gmail.com>
  9. PKG_LICENSE:=MIT
  10. PKG_LICENSE_FILES:=LICENSE
  11. PKG_BUILD_DEPENDS:=golang/host
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_USE_MIPS16:=0
  14. GO_PKG:=github.com/shawn1m/overture
  15. GO_PKG_BUILD_PKG:=$(GO_PKG)/main
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../lang/golang/golang-package.mk
  18. define Package/overture
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=IP Addresses and Names
  22. TITLE:=A customized DNS forwarder written in Go
  23. URL:=https://github.com/shawn1m/overture
  24. DEPENDS:=$(GO_ARCH_DEPENDS)
  25. endef
  26. define Package/overture/description
  27. Overture is a DNS server/forwarder/dispatcher written in Go.
  28. endef
  29. define Package/overture/install
  30. $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
  31. $(INSTALL_DIR) $(1)/usr/bin/
  32. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/main $(1)/usr/bin/$(PKG_NAME)
  33. $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)/
  34. $(INSTALL_DATA) $(PKG_BUILD_DIR)/config.sample.json $(1)/etc/$(PKG_NAME)/config.json
  35. $(INSTALL_DATA) ./files/*_sample $(1)/etc/$(PKG_NAME)/
  36. $(INSTALL_DIR) $(1)/etc/init.d/
  37. $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  38. endef
  39. $(eval $(call GoBinPackage,overture))
  40. $(eval $(call BuildPackage,overture))