1 zedconfdir = $(sysconfdir)/zfs/zed.d
6 zedexecdir = $(zfsexecdir)/zed.d
8 dist_zedexec_SCRIPTS = \
12 %D%/deadman-slot_off.sh \
13 %D%/generic-notify.sh \
14 %D%/pool_import-led.sh \
15 %D%/resilver_finish-notify.sh \
16 %D%/resilver_finish-start-scrub.sh \
17 %D%/scrub_finish-notify.sh \
18 %D%/statechange-led.sh \
19 %D%/statechange-notify.sh \
20 %D%/statechange-slot_off.sh \
21 %D%/trim_finish-notify.sh \
22 %D%/vdev_attach-led.sh \
25 nodist_zedexec_SCRIPTS = \
26 %D%/history_event-zfs-list-cacher.sh
28 SUBSTFILES += $(nodist_zedexec_SCRIPTS)
34 history_event-zfs-list-cacher.sh \
36 resilver_finish-notify.sh \
37 resilver_finish-start-scrub.sh \
38 scrub_finish-notify.sh \
40 statechange-notify.sh \
41 statechange-slot_off.sh \
45 dist_noinst_DATA += %D%/README
47 INSTALL_DATA_HOOKS += zed-install-data-hook
48 zed-install-data-hook:
49 $(MKDIR_P) "$(DESTDIR)$(zedconfdir)"
50 set -x; for f in $(zedconfdefaults); do \
51 [ -f "$(DESTDIR)$(zedconfdir)/$${f}" ] ||\
52 [ -L "$(DESTDIR)$(zedconfdir)/$${f}" ] || \
53 $(LN_S) "$(zedexecdir)/$${f}" "$(DESTDIR)$(zedconfdir)"; \
56 SHELLCHECKSCRIPTS += $(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)
57 $(call SHELLCHECK_OPTS,$(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)): SHELLCHECK_SHELL = sh
58 # False positive: 1>&"${ZED_FLOCK_FD}" looks suspiciously similar to a >&filename bash extension
59 $(call SHELLCHECK_OPTS,$(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)): CHECKBASHISMS_IGNORE = -e 'should be >word 2>&1' -e '&"$${ZED_FLOCK_FD}"'