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