File: Makefile.am

package info (click to toggle)
zfs-linux 2.3.3-1
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 70,488 kB
  • sloc: ansic: 393,047; sh: 67,422; asm: 47,734; python: 8,160; makefile: 5,105; perl: 859; sed: 41
file content (59 lines) | stat: -rw-r--r-- 1,836 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
zedconfdir = $(sysconfdir)/zfs/zed.d
dist_zedconf_DATA = \
	%D%/zed-functions.sh \
	%D%/zed.rc

zedexecdir = $(zfsexecdir)/zed.d

dist_zedexec_SCRIPTS = \
	%D%/all-debug.sh \
	%D%/all-syslog.sh \
	%D%/data-notify.sh \
	%D%/deadman-slot_off.sh \
	%D%/generic-notify.sh \
	%D%/pool_import-led.sh \
	%D%/resilver_finish-notify.sh \
	%D%/resilver_finish-start-scrub.sh \
	%D%/scrub_finish-notify.sh \
	%D%/statechange-led.sh \
	%D%/statechange-notify.sh \
	%D%/statechange-slot_off.sh \
	%D%/trim_finish-notify.sh \
	%D%/vdev_attach-led.sh \
	%D%/vdev_clear-led.sh

nodist_zedexec_SCRIPTS = \
	%D%/history_event-zfs-list-cacher.sh

SUBSTFILES += $(nodist_zedexec_SCRIPTS)

zedconfdefaults = \
	all-syslog.sh \
	data-notify.sh \
	deadman-slot_off.sh \
	history_event-zfs-list-cacher.sh \
	pool_import-led.sh \
	resilver_finish-notify.sh \
	resilver_finish-start-scrub.sh \
	scrub_finish-notify.sh \
	statechange-led.sh \
	statechange-notify.sh \
	statechange-slot_off.sh \
	vdev_attach-led.sh \
	vdev_clear-led.sh

dist_noinst_DATA += %D%/README

INSTALL_DATA_HOOKS += zed-install-data-hook
zed-install-data-hook:
	$(MKDIR_P) "$(DESTDIR)$(zedconfdir)"
	set -x; for f in $(zedconfdefaults); do \
	  [ -f "$(DESTDIR)$(zedconfdir)/$${f}" ] ||\
	    [ -L "$(DESTDIR)$(zedconfdir)/$${f}" ] || \
	    echo "$${f}" >> "$(DESTDIR)$(zedexecdir)/DEFAULT-ENABLED" ; \
	done

SHELLCHECKSCRIPTS += $(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)
$(call SHELLCHECK_OPTS,$(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)): SHELLCHECK_SHELL = sh
# False positive: 1>&"${ZED_FLOCK_FD}" looks suspiciously similar to a >&filename bash extension
$(call SHELLCHECK_OPTS,$(dist_zedconf_DATA) $(dist_zedexec_SCRIPTS) $(nodist_zedexec_SCRIPTS)): CHECKBASHISMS_IGNORE = -e 'should be >word 2>&1' -e '&"$${ZED_FLOCK_FD}"'