|
@ -8,12 +8,12 @@ |
|
|
include $(TOPDIR)/rules.mk |
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=slide-switch |
|
|
PKG_NAME:=slide-switch |
|
|
PKG_VERSION:=0.9.7 |
|
|
|
|
|
|
|
|
PKG_VERSION:=1.0.0 |
|
|
PKG_RELEASE:=1 |
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git |
|
|
PKG_SOURCE_PROTO:=git |
|
|
PKG_SOURCE_URL:=https://github.com/jefferyto/openwrt-slide-switch.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_SOURCE_VERSION:=$(PKG_VERSION) |
|
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1 |
|
|
PKG_BUILD_PARALLEL:=1 |
|
@ -40,6 +40,10 @@ slide-switch translates slide switch position changes into normal button |
|
|
presses and releases for OpenWrt devices. |
|
|
presses and releases for OpenWrt devices. |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/slide-switch/conffiles |
|
|
|
|
|
/etc/slide-switch/switch-data.json |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
define Package/slide-switch/install |
|
|
define Package/slide-switch/install |
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/button |
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/button |
|
|
$(INSTALL_DATA) \
|
|
|
$(INSTALL_DATA) \
|
|
@ -48,7 +52,8 @@ define Package/slide-switch/install |
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d |
|
|
$(INSTALL_DIR) $(1)/etc/init.d |
|
|
$(INSTALL_BIN) \
|
|
|
$(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 |
|
|
$(1)/etc/init.d |
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin |
|
|
$(INSTALL_DIR) $(1)/usr/sbin |
|
@ -63,12 +68,4 @@ define Package/slide-switch/install |
|
|
$(1)/usr/share/slide-switch |
|
|
$(1)/usr/share/slide-switch |
|
|
endef |
|
|
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)) |
|
|
$(eval $(call BuildPackage,slide-switch)) |