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