2014-01-22 01:30:03 +04:00
|
|
|
include $(top_srcdir)/config/Rules.am
|
|
|
|
|
|
|
|
DEFAULT_INCLUDES += \
|
|
|
|
-I$(top_srcdir)/include \
|
|
|
|
-I$(top_srcdir)/lib/libspl/include
|
|
|
|
|
2014-06-10 01:55:31 +04:00
|
|
|
EXTRA_DIST = zed.d/README
|
2015-02-18 04:23:54 +03:00
|
|
|
|
2014-01-22 01:30:03 +04:00
|
|
|
sbin_PROGRAMS = zed
|
|
|
|
|
|
|
|
zed_SOURCES = \
|
2014-06-10 01:55:31 +04:00
|
|
|
zed.c \
|
|
|
|
zed.h \
|
|
|
|
zed_conf.c \
|
|
|
|
zed_conf.h \
|
|
|
|
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-22 01:30:03 +04:00
|
|
|
|
|
|
|
zed_LDADD = \
|
|
|
|
$(top_builddir)/lib/libavl/libavl.la \
|
|
|
|
$(top_builddir)/lib/libnvpair/libnvpair.la \
|
|
|
|
$(top_builddir)/lib/libspl/libspl.la \
|
2015-02-06 10:22:10 +03:00
|
|
|
$(top_builddir)/lib/libzpool/libzpool.la \
|
2014-06-15 17:47:40 +04:00
|
|
|
$(top_builddir)/lib/libzfs/libzfs.la \
|
|
|
|
$(top_builddir)/lib/libzfs_core/libzfs_core.la
|
2014-01-22 01:30:03 +04:00
|
|
|
|
|
|
|
zedconfdir = $(sysconfdir)/zfs/zed.d
|
|
|
|
|
|
|
|
dist_zedconf_DATA = \
|
2014-06-10 01:55:31 +04:00
|
|
|
zed.d/zed-functions.sh \
|
|
|
|
zed.d/zed.rc
|
2014-01-22 01:30:03 +04:00
|
|
|
|
|
|
|
zedexecdir = $(libexecdir)/zfs/zed.d
|
|
|
|
|
|
|
|
dist_zedexec_SCRIPTS = \
|
2014-06-10 01:55:31 +04: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 \
|
|
|
|
zed.d/resilver.finish-notify.sh \
|
|
|
|
zed.d/scrub.finish-notify.sh
|
2014-01-22 01:30:03 +04:00
|
|
|
|
|
|
|
zedconfdefaults = \
|
|
|
|
all-syslog.sh \
|
2015-02-27 03:26:25 +03:00
|
|
|
checksum-notify.sh \
|
2014-01-25 03:47:46 +04:00
|
|
|
checksum-spare.sh \
|
2015-02-27 03:26:25 +03:00
|
|
|
data-notify.sh \
|
|
|
|
io-notify.sh \
|
2014-01-25 03:47:46 +04:00
|
|
|
io-spare.sh \
|
2015-02-27 03:26:25 +03:00
|
|
|
resilver.finish-notify.sh \
|
|
|
|
scrub.finish-notify.sh
|
2014-01-22 01:30:03 +04:00
|
|
|
|
2015-02-27 03:26:48 +03:00
|
|
|
install-data-hook:
|
2014-01-22 01:30:03 +04: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 03:26:48 +03:00
|
|
|
chmod 0600 "$(DESTDIR)$(zedconfdir)/zed.rc"
|