]> git.proxmox.com Git - mirror_zfs.git/blob - cmd/zed/zed.d/Makefile.am
Add `--enable=all` to ShellCheck by default
[mirror_zfs.git] / cmd / zed / zed.d / Makefile.am
1 include $(top_srcdir)/config/Rules.am
2 include $(top_srcdir)/config/Substfiles.am
3 include $(top_srcdir)/config/Shellcheck.am
4
5 EXTRA_DIST += README
6
7 zedconfdir = $(sysconfdir)/zfs/zed.d
8
9 dist_zedconf_DATA = \
10 zed-functions.sh \
11 zed.rc
12
13 SHELLCHECKSCRIPTS = zed-functions.sh zed.rc
14 SHELLCHECK_SHELL = sh
15
16 zedexecdir = $(zfsexecdir)/zed.d
17
18 dist_zedexec_SCRIPTS = \
19 all-debug.sh \
20 all-syslog.sh \
21 data-notify.sh \
22 generic-notify.sh \
23 resilver_finish-notify.sh \
24 scrub_finish-notify.sh \
25 statechange-led.sh \
26 statechange-notify.sh \
27 vdev_clear-led.sh \
28 vdev_attach-led.sh \
29 pool_import-led.sh \
30 resilver_finish-start-scrub.sh \
31 trim_finish-notify.sh
32
33 nodist_zedexec_SCRIPTS = history_event-zfs-list-cacher.sh
34
35 SUBSTFILES += $(nodist_zedexec_SCRIPTS)
36
37 zedconfdefaults = \
38 all-syslog.sh \
39 data-notify.sh \
40 history_event-zfs-list-cacher.sh \
41 resilver_finish-notify.sh \
42 scrub_finish-notify.sh \
43 statechange-led.sh \
44 statechange-notify.sh \
45 vdev_clear-led.sh \
46 vdev_attach-led.sh \
47 pool_import-led.sh \
48 resilver_finish-start-scrub.sh
49
50 install-data-hook:
51 $(MKDIR_P) "$(DESTDIR)$(zedconfdir)"
52 for f in $(zedconfdefaults); do \
53 test -f "$(DESTDIR)$(zedconfdir)/$${f}" -o \
54 -L "$(DESTDIR)$(zedconfdir)/$${f}" || \
55 ln -s "$(zedexecdir)/$${f}" "$(DESTDIR)$(zedconfdir)"; \
56 done
57 chmod 0600 "$(DESTDIR)$(zedconfdir)/zed.rc"
58
59 # False positive: 1>&"${ZED_FLOCK_FD}" looks suspiciously similar to a >&filename bash extension
60 CHECKBASHISMS_IGNORE = -e 'should be >word 2>&1' -e '&"$${ZED_FLOCK_FD}"'