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 = \
|
2016-11-07 23:01:38 +00:00
|
|
|
agents/zfs_agents.c \
|
2016-08-31 21:46:58 +00:00
|
|
|
agents/zfs_agents.h \
|
|
|
|
agents/zfs_diagnosis.c \
|
|
|
|
agents/zfs_mod.c \
|
2016-11-07 23:01:38 +00:00
|
|
|
agents/zfs_retire.c \
|
|
|
|
agents/fmd_api.c \
|
|
|
|
agents/fmd_api.h \
|
|
|
|
agents/fmd_serd.c \
|
|
|
|
agents/fmd_serd.h
|
2016-08-31 21:46:58 +00:00
|
|
|
|
|
|
|
zed_SOURCES = $(ZED_SRC) $(FMA_SRC)
|
|
|
|
|
2014-01-21 21:30:03 +00:00
|
|
|
zed_LDADD = \
|
|
|
|
$(top_builddir)/lib/libnvpair/libnvpair.la \
|
2016-11-07 23:01:38 +00:00
|
|
|
$(top_builddir)/lib/libuutil/libuutil.la \
|
2017-08-09 22:31:08 +00:00
|
|
|
$(top_builddir)/lib/libzfs/libzfs.la
|
2014-01-21 21:30:03 +00:00
|
|
|
|
2017-08-09 22:31:08 +00:00
|
|
|
zed_LDADD += -lrt
|
|
|
|
zed_LDFLAGS = -pthread
|
2016-11-07 23:01:38 +00:00
|
|
|
|
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/data-notify.sh \
|
|
|
|
zed.d/generic-notify.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 \
|
2016-11-10 21:52:59 +00:00
|
|
|
zed.d/statechange-notify.sh \
|
2017-02-11 00:09:45 +00:00
|
|
|
zed.d/vdev_clear-led.sh \
|
|
|
|
zed.d/vdev_attach-led.sh \
|
|
|
|
zed.d/pool_import-led.sh
|
2014-01-21 21:30:03 +00:00
|
|
|
|
|
|
|
zedconfdefaults = \
|
|
|
|
all-syslog.sh \
|
2015-02-27 00:26:25 +00:00
|
|
|
data-notify.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 \
|
2016-11-09 18:19:43 +00:00
|
|
|
statechange-led.sh \
|
2016-11-10 21:52:59 +00:00
|
|
|
statechange-notify.sh \
|
2017-02-11 00:09:45 +00:00
|
|
|
vdev_clear-led.sh \
|
|
|
|
vdev_attach-led.sh \
|
|
|
|
pool_import-led.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"
|