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 13zedexecdir = $(zfsexecdir)/zed.d 14 15dist_zedexec_SCRIPTS = \ 16 all-debug.sh \ 17 all-syslog.sh \ 18 data-notify.sh \ 19 generic-notify.sh \ 20 resilver_finish-notify.sh \ 21 scrub_finish-notify.sh \ 22 statechange-led.sh \ 23 statechange-notify.sh \ 24 vdev_clear-led.sh \ 25 vdev_attach-led.sh \ 26 pool_import-led.sh \ 27 resilver_finish-start-scrub.sh \ 28 trim_finish-notify.sh 29 30nodist_zedexec_SCRIPTS = history_event-zfs-list-cacher.sh 31 32SUBSTFILES += $(nodist_zedexec_SCRIPTS) 33 34zedconfdefaults = \ 35 all-syslog.sh \ 36 data-notify.sh \ 37 history_event-zfs-list-cacher.sh \ 38 resilver_finish-notify.sh \ 39 scrub_finish-notify.sh \ 40 statechange-led.sh \ 41 statechange-notify.sh \ 42 vdev_clear-led.sh \ 43 vdev_attach-led.sh \ 44 pool_import-led.sh \ 45 resilver_finish-start-scrub.sh 46 47install-data-hook: 48 $(MKDIR_P) "$(DESTDIR)$(zedconfdir)" 49 for f in $(zedconfdefaults); do \ 50 test -f "$(DESTDIR)$(zedconfdir)/$${f}" -o \ 51 -L "$(DESTDIR)$(zedconfdir)/$${f}" || \ 52 ln -s "$(zedexecdir)/$${f}" "$(DESTDIR)$(zedconfdir)"; \ 53 done 54 chmod 0600 "$(DESTDIR)$(zedconfdir)/zed.rc" 55 56# False positive: 1>&"${ZED_FLOCK_FD}" looks suspiciously similar to a >&filename bash extension 57CHECKBASHISMS_IGNORE = -e 'should be >word 2>&1' -e '&"$${ZED_FLOCK_FD}"' 58