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