1include $(top_srcdir)/config/Rules.am 2include $(top_srcdir)/config/Substfiles.am 3include $(top_srcdir)/config/Shellcheck.am 4 5EXTRA_DIST += README 6 7zedconfdir = $(sysconfdir)/zfs/zed.d 8 9dist_zedconf_DATA = \ 10 zed-functions.sh \ 11 zed.rc 12 13SHELLCHECKSCRIPTS = zed-functions.sh zed.rc 14SHELLCHECK_SHELL = sh 15 16zedexecdir = $(zfsexecdir)/zed.d 17 18dist_zedexec_SCRIPTS = \ 19 all-debug.sh \ 20 all-syslog.sh \ 21 data-notify.sh \ 22 generic-notify.sh \ 23 resilver_finish-notify.sh \ 24 scrub_finish-notify.sh \ 25 statechange-led.sh \ 26 statechange-notify.sh \ 27 vdev_clear-led.sh \ 28 vdev_attach-led.sh \ 29 pool_import-led.sh \ 30 resilver_finish-start-scrub.sh \ 31 trim_finish-notify.sh 32 33nodist_zedexec_SCRIPTS = history_event-zfs-list-cacher.sh 34 35SUBSTFILES += $(nodist_zedexec_SCRIPTS) 36 37zedconfdefaults = \ 38 all-syslog.sh \ 39 data-notify.sh \ 40 history_event-zfs-list-cacher.sh \ 41 resilver_finish-notify.sh \ 42 scrub_finish-notify.sh \ 43 statechange-led.sh \ 44 statechange-notify.sh \ 45 vdev_clear-led.sh \ 46 vdev_attach-led.sh \ 47 pool_import-led.sh \ 48 resilver_finish-start-scrub.sh 49 50install-data-hook: 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)"; \ 56 done 57 chmod 0600 "$(DESTDIR)$(zedconfdir)/zed.rc" 58 59# False positive: 1>&"${ZED_FLOCK_FD}" looks suspiciously similar to a >&filename bash extension 60CHECKBASHISMS_IGNORE = -e 'should be >word 2>&1' -e '&"$${ZED_FLOCK_FD}"' 61