Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion net/ddns-scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=ddns-scripts
PKG_VERSION:=2.8.4
PKG_RELEASE:=2
PKG_RELEASE:=3

PKG_LICENSE:=GPL-2.0

Expand Down Expand Up @@ -68,6 +68,27 @@ define Package/ddns-scripts-utils/description
endef


define Package/ddns-scripts-getlease6
$(call Package/ddns-scripts/Default)
TITLE:=ip_script helper for IPv6 hosts behind the router
DEPENDS:=ddns-scripts +ucode +ucode-mod-ubus +ucode-mod-log
MAINTAINER:=Tieu Long <long025733@gmail.com>
endef

define Package/ddns-scripts-getlease6/description
Resolves the current global IPv6 address of a LAN host from its DHCPv6
lease, so that an AAAA record can follow a host behind the router when the
delegated prefix changes. Installed as /usr/sbin/getlease6 and used as an
IP source script:
option ip_source 'script'
option ip_script '/usr/sbin/getlease6 myhost'
The host is selected by hostname or by DUID, narrowed by IAID when it holds
a lease per NIC, and an upstream interface can be named when the router holds
more than one delegation. Run without a host to list the current leases.
Requires odhcpd.
endef


define Package/ddns-scripts-luadns
$(call Package/ddns-scripts/Default)
TITLE:=Extension for LuaDNS API v1
Expand Down Expand Up @@ -510,6 +531,13 @@ define Package/ddns-scripts-utils/install
endef


define Package/ddns-scripts-getlease6/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/usr/sbin/getlease6.uc \
$(1)/usr/sbin/getlease6
endef


define Package/ddns-scripts-luadns/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_luadns_v1.sh \
Expand Down Expand Up @@ -1016,6 +1044,7 @@ endef
$(eval $(call BuildPackage,ddns-scripts))
$(eval $(call BuildPackage,ddns-scripts-services))
$(eval $(call BuildPackage,ddns-scripts-utils))
$(eval $(call BuildPackage,ddns-scripts-getlease6))
$(eval $(call BuildPackage,ddns-scripts-luadns))
$(eval $(call BuildPackage,ddns-scripts-cloudflare))
$(eval $(call BuildPackage,ddns-scripts-gcp))
Expand Down
Loading