1zedconfdir = $(sysconfdir)/zfs/zed.d 2dist_zedconf_DATA = \ 3 %D%/zed-functions.sh \ 4 %D%/zed.rc 5 6zedexecdir = $(zfsexecdir)/zed.d 7 8dist_zedexec_SCRIPTS = \ 9 %D%/all-debug.sh \ 10 %D%/all-syslog.sh \ 11 %D%/data-notify.sh \ 12 %D%/generic-notify.sh \ 13 %D%/pool_import-led.sh \ 14 %D%/resilver_finish-notify.sh \ 15 %D%/resilver_finish-start-scrub.sh \ 16 %D%/scrub_finish-notify.sh \ 17 %D%/statechange-led.sh \ 18 %D%/statechange-notify.sh \ 19 %D%/trim_finish-notify.sh \ 20 %D%/vdev_attach-led.sh \ 21 %D%/vdev_clear-led.sh 22 23nodist_zedexec_SCRIPTS = \ 24 %D%/history_event-zfs-list-cacher.sh 25 26SUBSTFILES += $(nodist_zedexec_SCRIPTS) 27 28zedconfdefaults = \ 29 all-syslog.sh \ 30 data-notify.sh \ 31 history_event-zfs-list-cacher.sh \ 32 pool_import-led.sh \ 33 resilver_finish-notify.sh \ 34 resilver_finish-start-scrub.sh \ 35 scrub_finish-notify.sh \ 36 statechange-led.sh \ 37 statechange-notify.sh \ 38 vdev_attach-led.sh \ 39 vdev_clear-led.sh 40 41dist_noinst_DATA += %D%/README 42 43INSTALL_DATA_HOOKS += zed-install-data-hook 44zed-install-data-hook: 45 $(MKDIR_P) "$(DESTDIR)$(zedconfdir)" 46 set -x; for f in $(zedconfdefaults); do \ 47 [ -f "$(DESTDIR)$(zedconfdir)/$${f}" ] ||\ 48 [ -L "$(DESTDIR)$(zedconfdir)/$${f}" ] || \ 49 $(LN_S) "$(zedexecdir)/$${f}" "$(DESTDIR)$(zedconfdir)"; \ 50 done 51 52SHELLCHECKSCRIPTS += $(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS) 53$(call SHELLCHECK_OPTS,$(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)): SHELLCHECK_SHELL = sh 54# False positive: 1>&"${ZED_FLOCK_FD}" looks suspiciously similar to a >&filename bash extension 55$(call SHELLCHECK_OPTS,$(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)): CHECKBASHISMS_IGNORE = -e 'should be >word 2>&1' -e '&"$${ZED_FLOCK_FD}"' 56