2019-06-24 16:32:47 +00:00
|
|
|
include $(top_srcdir)/config/Rules.am
|
2020-07-11 23:35:58 +00:00
|
|
|
include $(top_srcdir)/config/Substfiles.am
|
2021-05-21 21:43:38 +00:00
|
|
|
include $(top_srcdir)/config/Shellcheck.am
|
2019-06-24 16:32:47 +00:00
|
|
|
|
2020-07-11 23:35:58 +00:00
|
|
|
EXTRA_DIST += README
|
2019-06-24 16:32:47 +00:00
|
|
|
|
|
|
|
zedconfdir = $(sysconfdir)/zfs/zed.d
|
|
|
|
|
|
|
|
dist_zedconf_DATA = \
|
|
|
|
zed-functions.sh \
|
|
|
|
zed.rc
|
|
|
|
|
2022-01-07 00:07:54 +00:00
|
|
|
SHELLCHECKSCRIPTS = zed-functions.sh zed.rc
|
2022-02-07 19:59:09 +00:00
|
|
|
SHELLCHECK_SHELL = sh
|
2022-01-07 00:07:54 +00:00
|
|
|
|
2019-06-24 16:32:47 +00:00
|
|
|
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 23:57:13 +00:00
|
|
|
resilver_finish-start-scrub.sh \
|
|
|
|
trim_finish-notify.sh
|
2019-06-24 16:32:47 +00:00
|
|
|
|
|
|
|
nodist_zedexec_SCRIPTS = history_event-zfs-list-cacher.sh
|
|
|
|
|
2020-07-11 23:35:58 +00:00
|
|
|
SUBSTFILES += $(nodist_zedexec_SCRIPTS)
|
2019-06-24 16:32:47 +00:00
|
|
|
|
|
|
|
zedconfdefaults = \
|
|
|
|
all-syslog.sh \
|
|
|
|
data-notify.sh \
|
2019-06-02 20:29:37 +00:00
|
|
|
history_event-zfs-list-cacher.sh \
|
2019-06-24 16:32:47 +00: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 02:18:20 +00: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}"'
|