2019-06-24 16:32:47 +00:00
|
|
|
zedconfdir = $(sysconfdir)/zfs/zed.d
|
|
|
|
dist_zedconf_DATA = \
|
2022-04-09 02:09:55 +00:00
|
|
|
%D%/zed-functions.sh \
|
|
|
|
%D%/zed.rc
|
2022-01-07 00:07:54 +00:00
|
|
|
|
2019-06-24 16:32:47 +00:00
|
|
|
zedexecdir = $(zfsexecdir)/zed.d
|
|
|
|
|
|
|
|
dist_zedexec_SCRIPTS = \
|
2022-04-09 02:09:55 +00: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 16:32:47 +00:00
|
|
|
|
2020-07-11 23:35:58 +00:00
|
|
|
SUBSTFILES += $(nodist_zedexec_SCRIPTS)
|
2019-06-24 16:32:47 +00:00
|
|
|
|
|
|
|
zedconfdefaults = \
|
|
|
|
all-syslog.sh \
|
|
|
|
data-notify.sh \
|
2019-06-02 20:29:37 +00:00
|
|
|
history_event-zfs-list-cacher.sh \
|
2022-04-09 02:09:55 +00:00
|
|
|
pool_import-led.sh \
|
2019-06-24 16:32:47 +00:00
|
|
|
resilver_finish-notify.sh \
|
2022-04-09 02:09:55 +00:00
|
|
|
resilver_finish-start-scrub.sh \
|
2019-06-24 16:32:47 +00:00
|
|
|
scrub_finish-notify.sh \
|
|
|
|
statechange-led.sh \
|
|
|
|
statechange-notify.sh \
|
|
|
|
vdev_attach-led.sh \
|
2022-04-09 02:09:55 +00:00
|
|
|
vdev_clear-led.sh
|
|
|
|
|
2022-05-26 16:24:50 +00:00
|
|
|
dist_noinst_DATA += %D%/README
|
2019-06-24 16:32:47 +00:00
|
|
|
|
2022-04-09 02:09:55 +00:00
|
|
|
INSTALL_DATA_HOOKS += zed-install-data-hook
|
|
|
|
zed-install-data-hook:
|
2019-06-24 16:32:47 +00:00
|
|
|
$(MKDIR_P) "$(DESTDIR)$(zedconfdir)"
|
2022-04-09 02:09:55 +00: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 16:32:47 +00:00
|
|
|
done
|
2021-05-14 02:18:20 +00:00
|
|
|
|
2022-04-09 02:09:55 +00: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 02:18:20 +00:00
|
|
|
# False positive: 1>&"${ZED_FLOCK_FD}" looks suspiciously similar to a >&filename bash extension
|
2022-04-09 02:09:55 +00: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}"'
|