From: Jeffery To Date: Thu, 17 Mar 2022 15:46:41 +0000 (+0800) Subject: slide-switch: Update to 1.0.0 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=9f3f7a07c71842f241a60af4dda8b42456aa9fab;p=openwrt-packages.git slide-switch: Update to 1.0.0 Signed-off-by: Jeffery To --- diff --git a/utils/slide-switch/Makefile b/utils/slide-switch/Makefile index 5520bfa26..db74d19b9 100644 --- a/utils/slide-switch/Makefile +++ b/utils/slide-switch/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=slide-switch -PKG_VERSION:=0.9.7 +PKG_VERSION:=1.0.0 PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/jefferyto/openwrt-slide-switch.git -PKG_MIRROR_HASH:=a0bba3e952179d96667be293a230b2ad26b3bfdd7b01962116f2c99428696bc5 +PKG_MIRROR_HASH:=6afa0b444b13fc9cec23643203cfd82526007156b459a4e98b728e1b321edfbd PKG_SOURCE_VERSION:=$(PKG_VERSION) PKG_BUILD_PARALLEL:=1 @@ -40,6 +40,10 @@ slide-switch translates slide switch position changes into normal button presses and releases for OpenWrt devices. endef +define Package/slide-switch/conffiles +/etc/slide-switch/switch-data.json +endef + define Package/slide-switch/install $(INSTALL_DIR) $(1)/etc/hotplug.d/button $(INSTALL_DATA) \ @@ -48,7 +52,8 @@ define Package/slide-switch/install $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) \ - $(PKG_INSTALL_DIR)/etc/init.d/zzz-slide-switch \ + $(PKG_INSTALL_DIR)/etc/init.d/slide-switch \ + $(PKG_INSTALL_DIR)/etc/init.d/zzz-slide-switch-update \ $(1)/etc/init.d $(INSTALL_DIR) $(1)/usr/sbin @@ -63,12 +68,4 @@ define Package/slide-switch/install $(1)/usr/share/slide-switch endef -define Package/slide-switch/postinst -[ -n "$$IPKG_INSTROOT" ] || /usr/sbin/slide-switch clean -endef - -define Package/slide-switch/prerm -[ -n "$$IPKG_INSTROOT" ] || /usr/sbin/slide-switch clean -endef - $(eval $(call BuildPackage,slide-switch))