2019-06-24 09:32:47 -07:00
|
|
|
include $(top_srcdir)/config/Rules.am
|
2020-07-11 19:35:58 -04:00
|
|
|
include $(top_srcdir)/config/Substfiles.am
|
2021-05-21 23:43:38 +02:00
|
|
|
include $(top_srcdir)/config/Shellcheck.am
|
2019-06-24 09:32:47 -07:00
|
|
|
|
2020-07-11 19:35:58 -04:00
|
|
|
EXTRA_DIST += README
|
2019-06-24 09:32:47 -07:00
|
|
|
|
|
|
|
|
zedconfdir = $(sysconfdir)/zfs/zed.d
|
|
|
|
|
|
|
|
|
|
dist_zedconf_DATA = \
|
|
|
|
|
zed-functions.sh \
|
|
|
|
|
zed.rc
|
|
|
|
|
|
|
|
|
|
zedexecdir = $(zfsexecdir)/zed.d
|
|
|
|
|
|
|
|
|
|
dist_zedexec_SCRIPTS = \
|
|
|
|
|
all-debug.sh \
|
|
|
|
|
all-syslog.sh \
|
|
|
|
|
data-notify.sh \
|
|
|
|
|
generic-notify.sh \
|
|
|
|
|
resilver_finish-notify.sh \
|
|
|
|
|
scrub_finish-notify.sh \
|
|
|
|
|
statechange-led.sh \
|
|
|
|
|
statechange-notify.sh \
|
|
|
|
|
vdev_clear-led.sh \
|
|
|
|
|
vdev_attach-led.sh \
|
|
|
|
|
pool_import-led.sh \
|
2020-06-24 19:57:13 -04:00
|
|
|
resilver_finish-start-scrub.sh \
|
|
|
|
|
trim_finish-notify.sh
|
2019-06-24 09:32:47 -07:00
|
|
|
|
|
|
|
|
nodist_zedexec_SCRIPTS = history_event-zfs-list-cacher.sh
|
|
|
|
|
|
2020-07-11 19:35:58 -04:00
|
|
|
SUBSTFILES += $(nodist_zedexec_SCRIPTS)
|
2019-06-24 09:32:47 -07:00
|
|
|
|
|
|
|
|
zedconfdefaults = \
|
|
|
|
|
all-syslog.sh \
|
|
|
|
|
data-notify.sh \
|
2019-06-02 14:29:37 -06:00
|
|
|
history_event-zfs-list-cacher.sh \
|
2019-06-24 09:32:47 -07:00
|
|
|
resilver_finish-notify.sh \
|
|
|
|
|
scrub_finish-notify.sh \
|
|
|
|
|
statechange-led.sh \
|
|
|
|
|
statechange-notify.sh \
|
|
|
|
|
vdev_clear-led.sh \
|
|
|
|
|
vdev_attach-led.sh \
|
|
|
|
|
pool_import-led.sh \
|
|
|
|
|
resilver_finish-start-scrub.sh
|
|
|
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
|
$(MKDIR_P) "$(DESTDIR)$(zedconfdir)"
|
|
|
|
|
for f in $(zedconfdefaults); do \
|
|
|
|
|
test -f "$(DESTDIR)$(zedconfdir)/$${f}" -o \
|
|
|
|
|
-L "$(DESTDIR)$(zedconfdir)/$${f}" || \
|
|
|
|
|
ln -s "$(zedexecdir)/$${f}" "$(DESTDIR)$(zedconfdir)"; \
|
|
|
|
|
done
|
|
|
|
|
chmod 0600 "$(DESTDIR)$(zedconfdir)/zed.rc"
|
2021-05-14 04:18:20 +02:00
|
|
|
|
|
|
|
|
# False positive: 1>&"${ZED_FLOCK_FD}" looks suspiciously similar to a >&filename bash extension
|
|
|
|
|
CHECKBASHISMS_IGNORE = -e 'should be >word 2>&1' -e '&"$${ZED_FLOCK_FD}"'
|