windy-packages/ddns-go/Makefile

60 lines
1.7 KiB
Makefile
Raw Normal View History

2023-11-18 15:46:16 +08:00
# 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
2024-09-23 07:01:23 +08:00
PKG_VERSION:=6.7.0
PKG_RELEASE:=60
2023-11-18 15:46:16 +08:00
2024-03-06 03:22:06 +08:00
PKG_SOURCE_PROTO:=git
2023-11-18 15:46:16 +08:00
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
2024-03-06 03:22:06 +08:00
PKG_SOURCE_URL:=https://github.com/jeessy2/ddns-go.git
PKG_MIRROR_HASH:=skip
2024-09-23 07:01:23 +08:00
PKG_SOURCE_VERSION:=67372c09641b57c06b498c107a4c7c98f1ab185d
2023-11-18 15:46:16 +08:00
2024-03-06 03:22:06 +08:00
PKG_LICENSE:=AGPL-3.0-only
2023-11-18 15:46:16 +08:00
PKG_LICENSE_FILES:=LICENSE
2024-03-06 03:22:06 +08:00
PKG_MAINTAINER:=herboy2008 <herboy2008@gmail.com>
2023-11-18 15:46:16 +08:00
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_BUILD_FLAGS:=no-mips16
2024-02-06 08:46:59 +08:00
GO_PKG:=github.com/jeessy2/ddns-go/v6
2023-11-18 15:46:16 +08:00
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
2024-01-25 13:45:29 +08:00
$(INSTALL_BIN) $(CURDIR)/file/ddns-go.init $(1)/etc/init.d/ddns-go
2023-11-18 15:46:16 +08:00
$(INSTALL_DIR) $(1)/etc/uci-defaults
2024-01-25 13:45:29 +08:00
$(INSTALL_BIN) $(CURDIR)/file/luci-ddns-go.uci-default $(1)/etc/uci-defaults/luci-ddns-go
2023-11-18 15:46:16 +08:00
endef
$(eval $(call GoBinPackage,ddns-go))
$(eval $(call BuildPackage,ddns-go))