slide-switch: Update to 1.0.0
authorJeffery To <jeffery.to@gmail.com>
Thu, 17 Mar 2022 15:46:41 +0000 (23:46 +0800)
committerRosen Penev <rosenp@gmail.com>
Thu, 17 Mar 2022 18:39:20 +0000 (11:39 -0700)
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
utils/slide-switch/Makefile

index 5520bfa2640ad00513651197e9a654230d13e570..db74d19b9c75771684424ebdd216906a846c258b 100644 (file)
@@ -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))