From 7976b2028bf50cdde35a7a231c5ef4d4bed5d442 Mon Sep 17 00:00:00 2001 From: Yanase Yuki Date: Mon, 24 Nov 2025 18:49:53 +0900 Subject: [PATCH] triggerhappy: remove package The latest upstream commit is 9 years ago. It seems this package is no longer maintained. No packages depends on this. Signed-off-by: Yanase Yuki --- utils/triggerhappy/Makefile | 58 ------------------- .../files/triggerhappy-example.conf | 14 ----- utils/triggerhappy/files/triggerhappy.hotplug | 15 ----- utils/triggerhappy/files/triggerhappy.init | 10 ---- 4 files changed, 97 deletions(-) delete mode 100644 utils/triggerhappy/Makefile delete mode 100644 utils/triggerhappy/files/triggerhappy-example.conf delete mode 100644 utils/triggerhappy/files/triggerhappy.hotplug delete mode 100644 utils/triggerhappy/files/triggerhappy.init diff --git a/utils/triggerhappy/Makefile b/utils/triggerhappy/Makefile deleted file mode 100644 index 107ae8e572..0000000000 --- a/utils/triggerhappy/Makefile +++ /dev/null @@ -1,58 +0,0 @@ -# -# Copyright (C) 2014-2015 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=triggerhappy -PKG_VERSION:=0.5.0 -PKG_RELEASE:=2 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://github.com/wertarbyte/$(PKG_NAME)/archive/release/$(PKG_VERSION)/ -PKG_HASH:=af0fc196202f2d35153be401769a9ad9107b5b6387146cfa8895ae9cafad631c - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION) - -PKG_MAINTAINER:=Ted Hess -PKG_LICENSE:=GPL-3.0 -PKG_LICENSE_FILES:=COPYING - -include $(INCLUDE_DIR)/package.mk - -define Package/triggerhappy - SECTION:=utils - CATEGORY:=Utilities - TITLE:=handle input events and run configured programs - URL:=http://github.com/wertarbyte/triggerhappy -endef - -define Package/triggerhappy/description - triggerhappy - handle input events and run configured programs - The daemon thd can handle hotplugged input devices and is configured through - simple configuration files in /etc/triggerhappy/triggers.d/. -endef - -MAKE_FLAGS += \ - thd th-cmd \ - $(TARGET_CONFIGURE_OPTS) \ - $(1) - -define Package/triggerhappy/install - $(INSTALL_DIR) $(1)/usr/sbin - $(INSTALL_DIR) $(1)/etc - $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_DIR) $(1)/etc/triggerhappy - $(INSTALL_DIR) $(1)/etc/triggerhappy/triggers.d/ - $(INSTALL_DIR) $(1)/etc/hotplug.d/input/ - $(INSTALL_BIN) $(PKG_BUILD_DIR)/thd $(1)/usr/sbin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/th-cmd $(1)/usr/sbin - $(INSTALL_BIN) ./files/triggerhappy.init $(1)/etc/init.d/triggerhappy - $(INSTALL_BIN) ./files/triggerhappy.hotplug $(1)/etc/hotplug.d/input/10-triggerhappy - $(INSTALL_BIN) ./files/triggerhappy-example.conf $(1)/etc/triggerhappy/triggers.d/example.conf -endef - -$(eval $(call BuildPackage,triggerhappy)) diff --git a/utils/triggerhappy/files/triggerhappy-example.conf b/utils/triggerhappy/files/triggerhappy-example.conf deleted file mode 100644 index 3a8017a7a4..0000000000 --- a/utils/triggerhappy/files/triggerhappy-example.conf +++ /dev/null @@ -1,14 +0,0 @@ -# This is an example configuration for the triggerhappy daemon (thd) -# please note that every file to be processed must end in ".conf" -# -# To view a list of supported event codes, use "thd --listevents" or -# "thd --dump /dev/input/event*" -# -# Format: -# -# -# values for key events are 1 (pressed), 0 (released) or 2 (held) -# -## control an mpd instance -# KEY_NEXTSONG 1 /usr/bin/mpc next -# KEY_PREVSONG 1 /usr/bin/mpc prev diff --git a/utils/triggerhappy/files/triggerhappy.hotplug b/utils/triggerhappy/files/triggerhappy.hotplug deleted file mode 100644 index 78ad3496f6..0000000000 --- a/utils/triggerhappy/files/triggerhappy.hotplug +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -THD_SOCKET=/tmp/triggerhappy.socket -[ -S "$THD_SOCKET" ] || exit - -case "$ACTION" in - add) - DEVICE="/dev/$DEVNAME" - [ -c "$DEVICE" ] || exit - # offer device to triggerhappy daemon - /usr/sbin/th-cmd --socket "$THD_SOCKET" --add "$DEVICE" - ;; - remove) - # nothing to do - ;; -esac diff --git a/utils/triggerhappy/files/triggerhappy.init b/utils/triggerhappy/files/triggerhappy.init deleted file mode 100644 index e846d29a7d..0000000000 --- a/utils/triggerhappy/files/triggerhappy.init +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh /etc/rc.common -START=93 - -start() { - /usr/sbin/thd --socket /tmp/triggerhappy.socket --triggers /etc/triggerhappy/triggers.d/ --daemon /dev/input/event* -} - -stop() { - /usr/sbin/th-cmd --socket /tmp/triggerhappy.socket --quit -} -- 2.30.2