2014-01-21 21:30:03 +00:00
|
|
|
include $(top_srcdir)/config/Rules.am
|
|
|
|
|
|
|
|
DEFAULT_INCLUDES += \
|
|
|
|
-I$(top_srcdir)/include \
|
|
|
|
-I$(top_srcdir)/lib/libspl/include
|
|
|
|
|
2014-06-09 21:55:31 +00:00
|
|
|
EXTRA_DIST = zed.d/README
|
2015-02-18 01:23:54 +00:00
|
|
|
|
2014-01-21 21:30:03 +00:00
|
|
|
sbin_PROGRAMS = zed
|
|
|
|
|
2016-08-31 21:46:58 +00:00
|
|
|
ZED_SRC = \
|
2014-06-09 21:55:31 +00:00
|
|
|
zed.c \
|
|
|
|
zed.h \
|
|
|
|
zed_conf.c \
|
|
|
|
zed_conf.h \
|
2016-08-31 21:46:58 +00:00
|
|
|
zed_disk_event.c \
|
|
|
|
zed_disk_event.h \
|
2014-06-09 21:55:31 +00:00
|
|
|
zed_event.c \
|
|
|
|
zed_event.h \
|
|
|
|
zed_exec.c \
|
|
|
|
zed_exec.h \
|
|
|
|
zed_file.c \
|
|
|
|
zed_file.h \
|
|
|
|
zed_log.c \
|
|
|
|
zed_log.h \
|
|
|
|
zed_strings.c \
|
|
|
|
zed_strings.h
|
2014-01-21 21:30:03 +00:00
|
|
|
|
2016-08-31 21:46:58 +00:00
|
|
|
FMA_SRC = \
|
|
|
|
agents/zfs_agents.h \
|
|
|
|
agents/zfs_diagnosis.c \
|
|
|
|
agents/zfs_mod.c \
|
|
|
|
agents/zfs_retire.c
|
|
|
|
|
|
|
|
zed_SOURCES = $(ZED_SRC) $(FMA_SRC)
|
|
|
|
|
2014-01-21 21:30:03 +00:00
|
|
|
zed_LDADD = \
|
|
|
|
$(top_builddir)/lib/libavl/libavl.la \
|
|
|
|
$(top_builddir)/lib/libnvpair/libnvpair.la \
|
|
|
|
$(top_builddir)/lib/libspl/libspl.la \
|
2015-02-06 07:22:10 +00:00
|
|
|
$(top_builddir)/lib/libzpool/libzpool.la \
|
2014-06-15 13:47:40 +00:00
|
|
|
$(top_builddir)/lib/libzfs/libzfs.la \
|
|
|
|
$(top_builddir)/lib/libzfs_core/libzfs_core.la
|
2014-01-21 21:30:03 +00:00
|
|
|
|
|
|
|
zedconfdir = $(sysconfdir)/zfs/zed.d
|
|
|
|
|
|
|
|
dist_zedconf_DATA = \
|
2014-06-09 21:55:31 +00:00
|
|
|
zed.d/zed-functions.sh \
|
|
|
|
zed.d/zed.rc
|
2014-01-21 21:30:03 +00:00
|
|
|
|
|
|
|
zedexecdir = $(libexecdir)/zfs/zed.d
|
|
|
|
|
|
|
|
dist_zedexec_SCRIPTS = \
|
2014-06-09 21:55:31 +00:00
|
|
|
zed.d/all-debug.sh \
|
|
|
|
zed.d/all-syslog.sh \
|
|
|
|
zed.d/checksum-notify.sh \
|
|
|
|
zed.d/checksum-spare.sh \
|
|
|
|
zed.d/data-notify.sh \
|
|
|
|
zed.d/generic-notify.sh \
|
|
|
|
zed.d/io-notify.sh \
|
|
|
|
zed.d/io-spare.sh \
|
2016-07-27 22:29:15 +00:00
|
|
|
zed.d/resilver_finish-notify.sh \
|
2016-10-19 19:55:59 +00:00
|
|
|
zed.d/scrub_finish-notify.sh \
|
|
|
|
zed.d/statechange-led.sh \
|
|
|
|
zed.d/vdev_clear-led.sh
|
2014-01-21 21:30:03 +00:00
|
|
|
|
|
|
|
zedconfdefaults = \
|
|
|
|
all-syslog.sh \
|
2015-02-27 00:26:25 +00:00
|
|
|
checksum-notify.sh \
|
2014-01-24 23:47:46 +00:00
|
|
|
checksum-spare.sh \
|
2015-02-27 00:26:25 +00:00
|
|
|
data-notify.sh \
|
|
|
|
io-notify.sh \
|
2014-01-24 23:47:46 +00:00
|
|
|
io-spare.sh \
|
2016-07-27 22:29:15 +00:00
|
|
|
resilver_finish-notify.sh \
|
2016-10-19 19:55:59 +00:00
|
|
|
scrub_finish-notify.sh \
|
|
|
|
statechange-blinkled.sh \
|
|
|
|
vdev_clear-blinkled.sh
|
2014-01-21 21:30:03 +00:00
|
|
|
|
2015-02-27 00:26:48 +00:00
|
|
|
install-data-hook:
|
2014-01-21 21:30:03 +00:00
|
|
|
$(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
|
2015-02-27 00:26:48 +00:00
|
|
|
chmod 0600 "$(DESTDIR)$(zedconfdir)/zed.rc"
|