mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
ddns-scripts_aliyun: cleanup makefile
This commit is contained in:
parent
330392e0a7
commit
edc9e5d733
@ -11,17 +11,17 @@ PKG_BUILD_PARALLEL:=1
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/$(PKG_NAME)
|
define Package/ddns-scripts_aliyun
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
SUBMENU:=IP Addresses and Names
|
SUBMENU:=IP Addresses and Names
|
||||||
TITLE:=DDNS extension for AliYun.com
|
TITLE:=DDNS extension for AliYun.com
|
||||||
PKGARCH:=all
|
PKGARCH:=all
|
||||||
DEPENDS:=+ddns-scripts +wget-ssl +openssl-util
|
DEPENDS:=+ddns-scripts +wget-ssl +openssl-util
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/description
|
define Package/ddns-scripts_aliyun/description
|
||||||
Dynamic DNS Client scripts extension for AliYun.com
|
Dynamic DNS Client scripts extension for AliYun.com
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
@ -31,19 +31,19 @@ define Build/Compile
|
|||||||
$(CP) ./*.sh $(PKG_BUILD_DIR)
|
$(CP) ./*.sh $(PKG_BUILD_DIR)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/preinst
|
define Package/ddns-scripts_aliyun/preinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# if NOT run buildroot then stop service
|
# if NOT run buildroot then stop service
|
||||||
[ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
|
[ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
|
||||||
exit 0 # suppress errors
|
exit 0 # suppress errors
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/install
|
define Package/ddns-scripts_aliyun/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/update_aliyun_com.sh $(1)/usr/lib/ddns
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/update_aliyun_com.sh $(1)/usr/lib/ddns
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/postinst
|
define Package/ddns-scripts_aliyun/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# remove old services file entries
|
# remove old services file entries
|
||||||
/bin/sed -i '/aliyun\.com/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
|
/bin/sed -i '/aliyun\.com/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
|
||||||
@ -59,7 +59,7 @@ define Package/$(PKG_NAME)/postinst
|
|||||||
exit 0 # suppress errors
|
exit 0 # suppress errors
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/prerm
|
define Package/ddns-scripts_aliyun/prerm
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# if NOT run buildroot then stop service
|
# if NOT run buildroot then stop service
|
||||||
[ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
|
[ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
|
||||||
@ -69,4 +69,4 @@ define Package/$(PKG_NAME)/prerm
|
|||||||
exit 0 # suppress errors
|
exit 0 # suppress errors
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
$(eval $(call BuildPackage,ddns-scripts_aliyun))
|
||||||
|
Loading…
Reference in New Issue
Block a user