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
:=d3912fe53d2f6a60d20767a8dc5041333f8b5386b7d23d959b4de872d12b5024
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
21 GO_PKG_LDFLAGS_X
:=main.version
=$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
24 include ..
/..
/lang
/golang
/golang-package.mk
26 define Package
/overture
29 SUBMENU
:=IP Addresses and Names
30 TITLE
:=A customized DNS forwarder written in Go
31 URL
:=https
://github.com
/shawn1m
/overture
32 DEPENDS
:=$(GO_ARCH_DEPENDS
)
35 define Package
/overture
/description
36 Overture is a DNS server
/forwarder
/dispatcher written in Go.
39 define Package
/overture
/conffiles
43 define Package
/overture
/install
44 $(call GoPackage
/Package
/Install
/Bin
,$(PKG_INSTALL_DIR
))
46 $(INSTALL_DIR
) $(1)/usr
/bin
47 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/main
$(1)/usr
/bin
/overture
48 $(INSTALL_DIR
) $(1)/etc
/overture
49 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/config.sample.yml
$(1)/etc
/overture
/config.yml
50 $(SED
) 's@\.\(/[^[:space:]]\{1,\}_sample\)@/etc/overture\1@g;s/^\(bindAddress:[[:space:]]\{0,\}\)[^[:space:]]\{0,\}$$$$/\1127.0.0.3:53/' $(1)/etc
/overture
/config.yml
51 $(INSTALL_DATA
) .
/files
/*_sample
$(1)/etc
/overture
52 $(INSTALL_DIR
) $(1)/etc
/init.d
53 $(INSTALL_BIN
) .
/files
/overture.init
$(1)/etc
/init.d
/overture
56 $(eval
$(call GoBinPackage
,overture
))
57 $(eval
$(call BuildPackage
,overture
))