1include $(top_srcdir)/config/Rules.am 2include $(top_srcdir)/config/Substfiles.am 3 4EXTRA_DIST += README 5 6zedconfdir = $(sysconfdir)/zfs/zed.d 7 8dist_zedconf_DATA = \ 9 zed-functions.sh \ 10 zed.rc 11 12zedexecdir = $(zfsexecdir)/zed.d 13 14dist_zedexec_SCRIPTS = \ 15 all-debug.sh \ 16 all-syslog.sh \ 17 data-notify.sh \ 18 generic-notify.sh \ 19 resilver_finish-notify.sh \ 20 scrub_finish-notify.sh \ 21 statechange-led.sh \ 22 statechange-notify.sh \ 23 vdev_clear-led.sh \ 24 vdev_attach-led.sh \ 25 pool_import-led.sh \ 26 resilver_finish-start-scrub.sh \ 27 trim_finish-notify.sh 28 29nodist_zedexec_SCRIPTS = history_event-zfs-list-cacher.sh 30 31SUBSTFILES += $(nodist_zedexec_SCRIPTS) 32 33zedconfdefaults = \ 34 all-syslog.sh \ 35 data-notify.sh \ 36 history_event-zfs-list-cacher.sh \ 37 resilver_finish-notify.sh \ 38 scrub_finish-notify.sh \ 39 statechange-led.sh \ 40 statechange-notify.sh \ 41 vdev_clear-led.sh \ 42 vdev_attach-led.sh \ 43 pool_import-led.sh \ 44 resilver_finish-start-scrub.sh 45 46install-data-hook: 47 $(MKDIR_P) "$(DESTDIR)$(zedconfdir)" 48 for f in $(zedconfdefaults); do \ 49 test -f "$(DESTDIR)$(zedconfdir)/$${f}" -o \ 50 -L "$(DESTDIR)$(zedconfdir)/$${f}" || \ 51 ln -s "$(zedexecdir)/$${f}" "$(DESTDIR)$(zedconfdir)"; \ 52 done 53 chmod 0600 "$(DESTDIR)$(zedconfdir)/zed.rc" 54