Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recipe for triggerhappy daemon #130

Closed
wants to merge 1 commit into from

Conversation

markubiak
Copy link
Contributor

First time upstreaming a recipe, attempts were made to clean it up but please let me know if any style conventions are being violated.

Simple recipe for the 'triggerhappy' daemon, which runs shell commands in response to inputs from /dev/input. The debian release from the official repository was used, as it contains an initscript not contained in the master.

Points potentially requiring review:

  • All daemons are, by default, ran as "nobody".
  • My environment uses systemd, sysvinit script should probably be tested for anything debian-specific but on first glance it looks fine.
  • When built with systemd (identified by pkg-config in the Makefile), the service is of type 'notify', requiring linkage to libsystemd. This is the intent of the PACKAGECONFIG section, works fine on my system.

@markubiak
Copy link
Contributor Author

Oops, based this off sumo. I'll rebase to master and reopen.

@markubiak markubiak closed this Mar 26, 2019
@markubiak markubiak deleted the add-triggerhappy branch March 26, 2019 16:39
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Nov 16, 2023
Changelog:

Bugs fixed:

- Fix LIBMTP_STORAGE_SORTBY_MAXSPACE not working (copy-paste mistake)
- fix warnings regarding mismatched parameter docs
- fix comment above sort_storage_bysort_storage_by
- Revert "ptp_pack_string: check string length for no iconv situation"
- remove dependency on ptp.h
- fixed paste error vendor/product id
- libusb-glue: check return value of ptp_init_send_memory_handler
- ptp_pack_string: check string length for no iconv situation
- ptp-pack: fix ucs2str overflow

Features:

- add a LIBMTP_FreeMemory function that wraps free()
- added functions to get device by serial number
- added serial number of device to output of 'mtp-files'
- added optional serial number parameter to 'mtp-getfile'
- added optional serial number parameter to 'mtp-delfile'
- feat: Add LIBMTP_Get_Children() to read the list of raw IDs of a folder.
- merge a patch from google https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/third_party/chromiumos-overlay/media-libs/libmtp/files/libmtp-1.1.20-10_remove_nexus_s_from_device_list.patch

New devices:

- add Garmin Forerunner 955 + mtp-detect log
- added SHARP S7-SH https://sourceforge.net/p/libmtp/bugs/1914/
- added another Lenovo Tab TB-X306F id fixes openembedded#116
- added tolino vsiion 6 reader https://sourceforge.net/p/libmtp/bugs/1921/
- added FLIR C5 camera
- added iBasso DX170 DAP, fixes openembedded#125
- added Lenovo Tab P11 fixes openembedded#127
- aded Sony NW-A105 fixes //github.com/openembedded/issues/130
- added Honor Any-NX1 openembedded#135
- added gopro hero11 black openembedded#136
- removed a dup of a Mediatek MT65xx devices https://sourceforge.net/p/libmtp/bugs/1922/
- rename some LG devices to match reality better
- rename 3 blackberry to correct vendor/product names
- added realme Phone
- updated some mediatek id names, removed some duplicates
- adjusted various id names https://sourceforge.net/p/libmtp/bugs/1926/
- fixed order, https://sourceforge.net/p/libmtp/bugs/1931/
- some more brand renames. https://sourceforge.net/p/libmtp/bugs/1930/
- adjust some device naming https://sourceforge.net/p/libmtp/bugs/1932/
- added Vivo V19 (fixes openembedded#143)
- added Garmin Forerunner 255S Music
- rename and merge, also reshuffle to sorting ... fixes https://sourceforge.net/p/libmtp/bugs/1933/
- added Garmin Forerunner 255M smartwatch, fixes openembedded#150

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Nov 16, 2023
Changelog:

Bugs fixed:

- Fix LIBMTP_STORAGE_SORTBY_MAXSPACE not working (copy-paste mistake)
- fix warnings regarding mismatched parameter docs
- fix comment above sort_storage_bysort_storage_by
- Revert "ptp_pack_string: check string length for no iconv situation"
- remove dependency on ptp.h
- fixed paste error vendor/product id
- libusb-glue: check return value of ptp_init_send_memory_handler
- ptp_pack_string: check string length for no iconv situation
- ptp-pack: fix ucs2str overflow

Features:

- add a LIBMTP_FreeMemory function that wraps free()
- added functions to get device by serial number
- added serial number of device to output of 'mtp-files'
- added optional serial number parameter to 'mtp-getfile'
- added optional serial number parameter to 'mtp-delfile'
- feat: Add LIBMTP_Get_Children() to read the list of raw IDs of a folder.
- merge a patch from google https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/third_party/chromiumos-overlay/media-libs/libmtp/files/libmtp-1.1.20-10_remove_nexus_s_from_device_list.patch

New devices:

- add Garmin Forerunner 955 + mtp-detect log
- added SHARP S7-SH https://sourceforge.net/p/libmtp/bugs/1914/
- added another Lenovo Tab TB-X306F id fixes openembedded#116
- added tolino vsiion 6 reader https://sourceforge.net/p/libmtp/bugs/1921/
- added FLIR C5 camera
- added iBasso DX170 DAP, fixes openembedded#125
- added Lenovo Tab P11 fixes openembedded#127
- aded Sony NW-A105 fixes //github.com/openembedded/issues/130
- added Honor Any-NX1 openembedded#135
- added gopro hero11 black openembedded#136
- removed a dup of a Mediatek MT65xx devices https://sourceforge.net/p/libmtp/bugs/1922/
- rename some LG devices to match reality better
- rename 3 blackberry to correct vendor/product names
- added realme Phone
- updated some mediatek id names, removed some duplicates
- adjusted various id names https://sourceforge.net/p/libmtp/bugs/1926/
- fixed order, https://sourceforge.net/p/libmtp/bugs/1931/
- some more brand renames. https://sourceforge.net/p/libmtp/bugs/1930/
- adjust some device naming https://sourceforge.net/p/libmtp/bugs/1932/
- added Vivo V19 (fixes openembedded#143)
- added Garmin Forerunner 255S Music
- rename and merge, also reshuffle to sorting ... fixes https://sourceforge.net/p/libmtp/bugs/1933/
- added Garmin Forerunner 255M smartwatch, fixes openembedded#150

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Nov 17, 2023
Changelog:

Bugs fixed:

- Fix LIBMTP_STORAGE_SORTBY_MAXSPACE not working (copy-paste mistake)
- fix warnings regarding mismatched parameter docs
- fix comment above sort_storage_bysort_storage_by
- Revert "ptp_pack_string: check string length for no iconv situation"
- remove dependency on ptp.h
- fixed paste error vendor/product id
- libusb-glue: check return value of ptp_init_send_memory_handler
- ptp_pack_string: check string length for no iconv situation
- ptp-pack: fix ucs2str overflow

Features:

- add a LIBMTP_FreeMemory function that wraps free()
- added functions to get device by serial number
- added serial number of device to output of 'mtp-files'
- added optional serial number parameter to 'mtp-getfile'
- added optional serial number parameter to 'mtp-delfile'
- feat: Add LIBMTP_Get_Children() to read the list of raw IDs of a folder.
- merge a patch from google https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/third_party/chromiumos-overlay/media-libs/libmtp/files/libmtp-1.1.20-10_remove_nexus_s_from_device_list.patch

New devices:

- add Garmin Forerunner 955 + mtp-detect log
- added SHARP S7-SH https://sourceforge.net/p/libmtp/bugs/1914/
- added another Lenovo Tab TB-X306F id fixes openembedded#116
- added tolino vsiion 6 reader https://sourceforge.net/p/libmtp/bugs/1921/
- added FLIR C5 camera
- added iBasso DX170 DAP, fixes openembedded#125
- added Lenovo Tab P11 fixes openembedded#127
- aded Sony NW-A105 fixes //github.com/openembedded/issues/130
- added Honor Any-NX1 openembedded#135
- added gopro hero11 black openembedded#136
- removed a dup of a Mediatek MT65xx devices https://sourceforge.net/p/libmtp/bugs/1922/
- rename some LG devices to match reality better
- rename 3 blackberry to correct vendor/product names
- added realme Phone
- updated some mediatek id names, removed some duplicates
- adjusted various id names https://sourceforge.net/p/libmtp/bugs/1926/
- fixed order, https://sourceforge.net/p/libmtp/bugs/1931/
- some more brand renames. https://sourceforge.net/p/libmtp/bugs/1930/
- adjust some device naming https://sourceforge.net/p/libmtp/bugs/1932/
- added Vivo V19 (fixes openembedded#143)
- added Garmin Forerunner 255S Music
- rename and merge, also reshuffle to sorting ... fixes https://sourceforge.net/p/libmtp/bugs/1933/
- added Garmin Forerunner 255M smartwatch, fixes openembedded#150

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Nov 17, 2023
Changelog:

Bugs fixed:

- Fix LIBMTP_STORAGE_SORTBY_MAXSPACE not working (copy-paste mistake)
- fix warnings regarding mismatched parameter docs
- fix comment above sort_storage_bysort_storage_by
- Revert "ptp_pack_string: check string length for no iconv situation"
- remove dependency on ptp.h
- fixed paste error vendor/product id
- libusb-glue: check return value of ptp_init_send_memory_handler
- ptp_pack_string: check string length for no iconv situation
- ptp-pack: fix ucs2str overflow

Features:

- add a LIBMTP_FreeMemory function that wraps free()
- added functions to get device by serial number
- added serial number of device to output of 'mtp-files'
- added optional serial number parameter to 'mtp-getfile'
- added optional serial number parameter to 'mtp-delfile'
- feat: Add LIBMTP_Get_Children() to read the list of raw IDs of a folder.
- merge a patch from google https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/third_party/chromiumos-overlay/media-libs/libmtp/files/libmtp-1.1.20-10_remove_nexus_s_from_device_list.patch

New devices:

- add Garmin Forerunner 955 + mtp-detect log
- added SHARP S7-SH https://sourceforge.net/p/libmtp/bugs/1914/
- added another Lenovo Tab TB-X306F id fixes openembedded#116
- added tolino vsiion 6 reader https://sourceforge.net/p/libmtp/bugs/1921/
- added FLIR C5 camera
- added iBasso DX170 DAP, fixes openembedded#125
- added Lenovo Tab P11 fixes openembedded#127
- aded Sony NW-A105 fixes //github.com/openembedded/issues/130
- added Honor Any-NX1 openembedded#135
- added gopro hero11 black openembedded#136
- removed a dup of a Mediatek MT65xx devices https://sourceforge.net/p/libmtp/bugs/1922/
- rename some LG devices to match reality better
- rename 3 blackberry to correct vendor/product names
- added realme Phone
- updated some mediatek id names, removed some duplicates
- adjusted various id names https://sourceforge.net/p/libmtp/bugs/1926/
- fixed order, https://sourceforge.net/p/libmtp/bugs/1931/
- some more brand renames. https://sourceforge.net/p/libmtp/bugs/1930/
- adjust some device naming https://sourceforge.net/p/libmtp/bugs/1932/
- added Vivo V19 (fixes openembedded#143)
- added Garmin Forerunner 255S Music
- rename and merge, also reshuffle to sorting ... fixes https://sourceforge.net/p/libmtp/bugs/1933/
- added Garmin Forerunner 255M smartwatch, fixes openembedded#150

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant