1 zedconfdir = $(sysconfdir)/zfs/zed.d
6 zedexecdir = $(zfsexecdir)/zed.d
8 dist_zedexec_SCRIPTS = \
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%/statechange-slot_off.sh \
20 %D%/trim_finish-notify.sh \
21 %D%/vdev_attach-led.sh \
24 nodist_zedexec_SCRIPTS = \
25 %D%/history_event-zfs-list-cacher.sh
27 SUBSTFILES += $(nodist_zedexec_SCRIPTS)
32 history_event-zfs-list-cacher.sh \
34 resilver_finish-notify.sh \
35 resilver_finish-start-scrub.sh \
36 scrub_finish-notify.sh \
38 statechange-notify.sh \
39 statechange-slot_off.sh \
43 dist_noinst_DATA += %D%/README
45 INSTALL_DATA_HOOKS += zed-install-data-hook
46 zed-install-data-hook:
47 $(MKDIR_P) "$(DESTDIR)$(zedconfdir)"
48 set -x; for f in $(zedconfdefaults); do \
49 [ -f "$(DESTDIR)$(zedconfdir)/$${f}" ] ||\
50 [ -L "$(DESTDIR)$(zedconfdir)/$${f}" ] || \
51 $(LN_S) "$(zedexecdir)/$${f}" "$(DESTDIR)$(zedconfdir)"; \
54 SHELLCHECKSCRIPTS += $(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)
55 $(call SHELLCHECK_OPTS,$(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)): SHELLCHECK_SHELL = sh
56 # False positive: 1>&"${ZED_FLOCK_FD}" looks suspiciously similar to a >&filename bash extension
57 $(call SHELLCHECK_OPTS,$(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)): CHECKBASHISMS_IGNORE = -e 'should be >word 2>&1' -e '&"$${ZED_FLOCK_FD}"'