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