63 lines
1.8 KiB
Makefile
63 lines
1.8 KiB
Makefile
|
# SPDX-License-Identifier: GPL-3.0-only
|
||
|
#
|
||
|
# Copyright (C) 2021-2023 sirpdboy <herboy2008@gmail.com>
|
||
|
#
|
||
|
# This is free software, licensed under the Apache License, Version 2.0 .
|
||
|
#
|
||
|
|
||
|
include $(TOPDIR)/rules.mk
|
||
|
|
||
|
PKG_NAME:=ddns-go
|
||
|
PKG_VERSION:=5.6.3
|
||
|
PKG_RELEASE:=1
|
||
|
|
||
|
PKG_SOURCE_PROTO:=git
|
||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||
|
PKG_SOURCE_URL:=https://github.com/jeessy2/ddns-go.git
|
||
|
PKG_MIRROR_HASH:=f0c87a4f9982b85d62295bed4fbd4805671f5d6d45a03857b7cc257c00615bed
|
||
|
PKG_SOURCE_VERSION:=5b77583b498dc2e893cd77533b5a15c0e1620aef
|
||
|
|
||
|
PKG_LICENSE:=AGPL-3.0-only
|
||
|
PKG_LICENSE_FILES:=LICENSE
|
||
|
PKG_MAINTAINER:=herboy2008 <herboy2008@gmail.com>
|
||
|
|
||
|
PKG_BUILD_DEPENDS:=golang/host
|
||
|
PKG_BUILD_PARALLEL:=1
|
||
|
PKG_USE_MIPS16:=0
|
||
|
PKG_BUILD_FLAGS:=no-mips16
|
||
|
|
||
|
GO_PKG:=github.com/jeessy2/ddns-go/v5
|
||
|
GO_PKG_LDFLAGS_X:=main.version=$(PKG_VERSION)
|
||
|
|
||
|
include $(INCLUDE_DIR)/package.mk
|
||
|
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
|
||
|
|
||
|
define Package/ddns-go
|
||
|
TITLE:=A Linux web GUI client of ddns-go
|
||
|
SECTION:=net
|
||
|
CATEGORY:=Network
|
||
|
SUBMENU:=Web Servers/Proxies
|
||
|
DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
|
||
|
URL:=https://github.com/jeessy2/ddns-go
|
||
|
USERID:=ddns-go:ddns-go
|
||
|
endef
|
||
|
|
||
|
define Package/ddns-go/description
|
||
|
ddns-go is a automatically obtain your public IPv4 or IPv6 address and resolve it to the corresponding domain name service,
|
||
|
support Alidns Dnspod Cloudflare Hicloud Callback Baiducloud porkbun GoDaddy Google Domains.
|
||
|
endef
|
||
|
|
||
|
|
||
|
define Package/ddns-go/install
|
||
|
$(call GoPackage/Package/Install/Bin,$(1))
|
||
|
|
||
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||
|
$(INSTALL_BIN) ./file/ddns-go.init $(1)/etc/init.d/ddns-go
|
||
|
|
||
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
||
|
$(INSTALL_BIN) ./file/luci-ddns-go.uci-default $(1)/etc/uci-defaults/luci-ddns-go
|
||
|
endef
|
||
|
|
||
|
$(eval $(call GoBinPackage,ddns-go))
|
||
|
$(eval $(call BuildPackage,ddns-go))
|