1 include $(top_srcdir)/config/Rules.am
2 include $(top_srcdir)/config/Substfiles.am
3 include $(top_srcdir)/config/Shellcheck.am
7 zedconfdir = $(sysconfdir)/zfs/zed.d
13 SHELLCHECKSCRIPTS = zed-functions.sh zed.rc
16 zedexecdir = $(zfsexecdir)/zed.d
18 dist_zedexec_SCRIPTS = \
23 resilver_finish-notify.sh \
24 scrub_finish-notify.sh \
26 statechange-notify.sh \
30 resilver_finish-start-scrub.sh \
33 nodist_zedexec_SCRIPTS = history_event-zfs-list-cacher.sh
35 SUBSTFILES += $(nodist_zedexec_SCRIPTS)
40 history_event-zfs-list-cacher.sh \
41 resilver_finish-notify.sh \
42 scrub_finish-notify.sh \
44 statechange-notify.sh \
48 resilver_finish-start-scrub.sh
51 $(MKDIR_P) "$(DESTDIR)$(zedconfdir)"
52 for f in $(zedconfdefaults); do \
53 test -f "$(DESTDIR)$(zedconfdir)/$${f}" -o \
54 -L "$(DESTDIR)$(zedconfdir)/$${f}" || \
55 ln -s "$(zedexecdir)/$${f}" "$(DESTDIR)$(zedconfdir)"; \
57 chmod 0600 "$(DESTDIR)$(zedconfdir)/zed.rc"
59 # False positive: 1>&"${ZED_FLOCK_FD}" looks suspiciously similar to a >&filename bash extension
60 CHECKBASHISMS_IGNORE = -e 'should be >word 2>&1' -e '&"$${ZED_FLOCK_FD}"'