kenzok8-package/ddnsto/Makefile

69 lines
1.7 KiB
Makefile
Raw Normal View History

2021-09-08 15:15:02 +08:00
#
# Copyright (C) 2015-2016 OpenWrt.org
# Copyright (C) 2020 jjm2473@gmail.com
#
# This is free software, licensed under the GNU General Public License v3.
#
include $(TOPDIR)/rules.mk
PKG_ARCH_DDNSTO:=$(ARCH)
PKG_NAME:=ddnsto
2023-08-25 16:21:54 +08:00
PKG_VERSION:=3.0.4
2023-05-10 16:22:46 +08:00
PKG_RELEASE:=$(PKG_ARCH_DDNSTO)-7
2021-09-08 15:15:02 +08:00
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
2021-12-04 09:01:13 +08:00
PKG_SOURCE_URL:=http://fw.koolcenter.com/binary/ddnsto/
2023-08-25 16:21:54 +08:00
PKG_HASH:=486aa15a5e026b5a3aca72f1850746e127a7e86ef11db8a7c498dad29545eaf6
2021-09-08 15:15:02 +08:00
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1
2023-04-09 18:14:32 +08:00
PKG_USE_MIPS16:=0
2021-09-08 15:15:02 +08:00
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=net
CATEGORY:=Network
SUBMENU:=Web Servers/Proxies
TITLE:=DDNS.to - the reverse proxy
DEPENDS:=
2022-06-02 20:21:36 +08:00
PKGARCH:=all
2021-09-08 15:15:02 +08:00
URL:=https://www.ddnsto.com/
endef
define Package/$(PKG_NAME)/description
DDNS.to is a reverse proxy
endef
define Package/$(PKG_NAME)/conffiles
/etc/config/ddnsto
endef
2021-12-04 09:01:13 +08:00
define Package/$(PKG_NAME)/postinst
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
[ -f /etc/uci-defaults/ddnsto ] && /etc/uci-defaults/ddnsto && rm -f /etc/uci-defaults/ddnsto
2024-12-11 14:17:01 +08:00
exit 0
2021-12-04 09:01:13 +08:00
fi
endef
2021-09-08 15:15:02 +08:00
define Build/Configure
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d $(1)/etc/uci-defaults
2022-08-15 20:21:08 +08:00
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ddnsto.$(PKG_ARCH_DDNSTO) $(1)/usr/sbin/ddnstod
2022-06-20 20:22:04 +08:00
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ddwebdav.$(PKG_ARCH_DDNSTO) $(1)/usr/sbin/ddwebdav
2021-09-08 15:15:02 +08:00
$(INSTALL_CONF) ./files/ddnsto.config $(1)/etc/config/ddnsto
$(INSTALL_BIN) ./files/ddnsto.init $(1)/etc/init.d/ddnsto
$(INSTALL_BIN) ./files/ddnsto.uci-default $(1)/etc/uci-defaults/ddnsto
2022-08-24 20:21:47 +08:00
$(LN) /usr/sbin/ddnstod $(1)/usr/sbin/ddnsto
2021-09-08 15:15:02 +08:00
endef
$(eval $(call BuildPackage,$(PKG_NAME)))