ddns-scripts_dnspod: cleanup makefile
This commit is contained in:
parent
a73ad80ea1
commit
330392e0a7
@ -11,7 +11,7 @@ PKG_BUILD_PARALLEL:=1
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/$(PKG_NAME)
|
define Package/ddns-scripts_dnspod
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
SUBMENU:=IP Addresses and Names
|
SUBMENU:=IP Addresses and Names
|
||||||
@ -20,7 +20,7 @@ define Package/$(PKG_NAME)
|
|||||||
DEPENDS:=+ddns-scripts +wget-ssl +ca-bundle
|
DEPENDS:=+ddns-scripts +wget-ssl +ca-bundle
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/description
|
define Package/ddns-scripts_dnspod/description
|
||||||
Dynamic DNS Client scripts extension for Dnspod.com/Dnspod.cn
|
Dynamic DNS Client scripts extension for Dnspod.com/Dnspod.cn
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -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_dnspod/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_dnspod/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/*.sh $(1)/usr/lib/ddns
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/*.sh $(1)/usr/lib/ddns
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/postinst
|
define Package/ddns-scripts_dnspod/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# remove old services file entries
|
# remove old services file entries
|
||||||
/bin/sed -i '/dnspod\.com/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
|
/bin/sed -i '/dnspod\.com/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
|
||||||
@ -63,7 +63,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_dnspod/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
|
||||||
@ -75,4 +75,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_dnspod))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user