Files
mirror_zfs/cmd/zed/zed.d/Makefile.am
T

61 lines
1.9 KiB
Makefile
Raw Normal View History

# SPDX-License-Identifier: CDDL-1.0
2019-06-24 09:32:47 -07:00
zedconfdir = $(sysconfdir)/zfs/zed.d
dist_zedconf_DATA = \
%D%/zed-functions.sh \
%D%/zed.rc
2022-01-07 01:07:54 +01:00
2019-06-24 09:32:47 -07:00
zedexecdir = $(zfsexecdir)/zed.d
dist_zedexec_SCRIPTS = \
%D%/all-debug.sh \
%D%/all-syslog.sh \
%D%/data-notify.sh \
2025-09-11 11:34:07 -07:00
%D%/deadman-sync-slot_off.sh \
%D%/generic-notify.sh \
2025-09-11 11:34:07 -07:00
%D%/pool_import-sync-led.sh \
%D%/resilver_finish-notify.sh \
%D%/resilver_finish-start-scrub.sh \
%D%/scrub_finish-notify.sh \
2025-09-11 11:34:07 -07:00
%D%/statechange-sync-led.sh \
%D%/statechange-notify.sh \
2025-09-11 11:34:07 -07:00
%D%/statechange-sync-slot_off.sh \
%D%/trim_finish-notify.sh \
2025-09-11 11:34:07 -07:00
%D%/vdev_attach-sync-led.sh \
%D%/vdev_clear-sync-led.sh
nodist_zedexec_SCRIPTS = \
%D%/history_event-zfs-list-cacher.sh
2019-06-24 09:32:47 -07:00
2020-07-11 19:35:58 -04:00
SUBSTFILES += $(nodist_zedexec_SCRIPTS)
2019-06-24 09:32:47 -07:00
zedconfdefaults = \
all-syslog.sh \
data-notify.sh \
2025-09-11 11:34:07 -07:00
deadman-sync-slot_off.sh \
2019-06-02 14:29:37 -06:00
history_event-zfs-list-cacher.sh \
2025-09-11 11:34:07 -07:00
pool_import-sync-led.sh \
2019-06-24 09:32:47 -07:00
resilver_finish-notify.sh \
resilver_finish-start-scrub.sh \
2019-06-24 09:32:47 -07:00
scrub_finish-notify.sh \
2025-09-11 11:34:07 -07:00
statechange-sync-led.sh \
2019-06-24 09:32:47 -07:00
statechange-notify.sh \
2025-09-11 11:34:07 -07:00
statechange-sync-slot_off.sh \
vdev_attach-sync-led.sh \
vdev_clear-sync-led.sh
2022-05-26 09:24:50 -07:00
dist_noinst_DATA += %D%/README
2019-06-24 09:32:47 -07:00
INSTALL_DATA_HOOKS += zed-install-data-hook
zed-install-data-hook:
2019-06-24 09:32:47 -07:00
$(MKDIR_P) "$(DESTDIR)$(zedconfdir)"
set -x; for f in $(zedconfdefaults); do \
[ -f "$(DESTDIR)$(zedconfdir)/$${f}" ] ||\
[ -L "$(DESTDIR)$(zedconfdir)/$${f}" ] || \
$(LN_S) "$(zedexecdir)/$${f}" "$(DESTDIR)$(zedconfdir)"; \
2019-06-24 09:32:47 -07:00
done
2021-05-14 04:18:20 +02:00
SHELLCHECKSCRIPTS += $(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)
$(call SHELLCHECK_OPTS,$(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)): SHELLCHECK_SHELL = sh
2021-05-14 04:18:20 +02:00
# False positive: 1>&"${ZED_FLOCK_FD}" looks suspiciously similar to a >&filename bash extension
$(call SHELLCHECK_OPTS,$(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)): CHECKBASHISMS_IGNORE = -e 'should be >word 2>&1' -e '&"$${ZED_FLOCK_FD}"'