1 include $(TOPDIR
)/rules.mk
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
11 PKG_MAINTAINER
:=Richard Yu
<yurichard3839@gmail.com
>
13 PKG_LICENSE_FILES
:=LICENSE
15 PKG_BUILD_DEPENDS
:=golang
/host
19 GO_PKG
:=github.com
/shawn1m
/overture
20 GO_PKG_BUILD_PKG
:=$(GO_PKG
)/main
22 include $(INCLUDE_DIR
)/package.mk
23 include ..
/..
/lang
/golang
/golang-package.mk
25 define Package
/overture
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
)
34 define Package
/overture
/description
35 Overture is a DNS server
/forwarder
/dispatcher written in Go.
38 define Package
/overture
/install
39 $(call GoPackage
/Package
/Install
/Bin
,$(PKG_INSTALL_DIR
))
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
)
50 $(eval
$(call GoBinPackage
,overture
))
51 $(eval
$(call BuildPackage
,overture
))