2010-08-26 18:22:58 +00:00
|
|
|
include $(top_srcdir)/config/Rules.am
|
|
|
|
|
|
|
|
DEFAULT_INCLUDES += \
|
2010-09-04 20:26:23 +00:00
|
|
|
-I$(top_srcdir)/include \
|
|
|
|
-I$(top_srcdir)/lib/libspl/include
|
2010-08-26 18:22:58 +00:00
|
|
|
|
|
|
|
sbin_PROGRAMS = zpool
|
|
|
|
|
|
|
|
zpool_SOURCES = \
|
2014-06-09 21:55:31 +00:00
|
|
|
zpool_iter.c \
|
|
|
|
zpool_main.c \
|
|
|
|
zpool_util.c \
|
|
|
|
zpool_util.h \
|
|
|
|
zpool_vdev.c
|
2010-08-26 18:22:58 +00:00
|
|
|
|
|
|
|
zpool_LDADD = \
|
|
|
|
$(top_builddir)/lib/libnvpair/libnvpair.la \
|
|
|
|
$(top_builddir)/lib/libuutil/libuutil.la \
|
2017-08-09 22:31:08 +00:00
|
|
|
$(top_builddir)/lib/libzfs/libzfs.la
|
|
|
|
|
|
|
|
zpool_LDADD += -lm $(LIBBLKID)
|
2017-04-21 16:27:04 +00:00
|
|
|
|
|
|
|
zpoolconfdir = $(sysconfdir)/zfs/zpool.d
|
2018-06-07 16:59:59 +00:00
|
|
|
zpoolexecdir = $(zfsexecdir)/zpool.d
|
2017-04-21 16:27:04 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = zpool.d/README
|
|
|
|
|
|
|
|
dist_zpoolexec_SCRIPTS = \
|
|
|
|
zpool.d/enc \
|
|
|
|
zpool.d/encdev \
|
|
|
|
zpool.d/fault_led \
|
|
|
|
zpool.d/iostat \
|
|
|
|
zpool.d/iostat-1s \
|
|
|
|
zpool.d/iostat-10s \
|
|
|
|
zpool.d/label \
|
|
|
|
zpool.d/locate_led \
|
|
|
|
zpool.d/lsblk \
|
2017-06-05 17:52:15 +00:00
|
|
|
zpool.d/media \
|
2017-04-21 16:27:04 +00:00
|
|
|
zpool.d/model \
|
|
|
|
zpool.d/serial \
|
|
|
|
zpool.d/ses \
|
|
|
|
zpool.d/size \
|
|
|
|
zpool.d/slaves \
|
|
|
|
zpool.d/slot \
|
2017-06-05 17:52:15 +00:00
|
|
|
zpool.d/smart \
|
|
|
|
zpool.d/smartx \
|
|
|
|
zpool.d/temp \
|
|
|
|
zpool.d/health \
|
|
|
|
zpool.d/r_proc \
|
|
|
|
zpool.d/w_proc \
|
|
|
|
zpool.d/r_ucor \
|
|
|
|
zpool.d/w_ucor \
|
|
|
|
zpool.d/nonmed \
|
|
|
|
zpool.d/defect \
|
|
|
|
zpool.d/hours_on \
|
|
|
|
zpool.d/realloc \
|
|
|
|
zpool.d/rep_ucor \
|
|
|
|
zpool.d/cmd_to \
|
|
|
|
zpool.d/pend_sec \
|
|
|
|
zpool.d/off_ucor \
|
|
|
|
zpool.d/ata_err \
|
2018-02-21 21:52:47 +00:00
|
|
|
zpool.d/nvme_err \
|
2017-06-05 17:52:15 +00:00
|
|
|
zpool.d/pwr_cyc \
|
2017-04-21 16:27:04 +00:00
|
|
|
zpool.d/upath \
|
2018-02-27 17:31:27 +00:00
|
|
|
zpool.d/vendor \
|
|
|
|
zpool.d/smart_test \
|
|
|
|
zpool.d/test_type \
|
|
|
|
zpool.d/test_status \
|
|
|
|
zpool.d/test_progress \
|
|
|
|
zpool.d/test_ended
|
2017-04-21 16:27:04 +00:00
|
|
|
|
|
|
|
zpoolconfdefaults = \
|
|
|
|
enc \
|
|
|
|
encdev \
|
|
|
|
fault_led \
|
|
|
|
iostat \
|
|
|
|
iostat-1s \
|
|
|
|
iostat-10s \
|
|
|
|
label \
|
|
|
|
locate_led \
|
|
|
|
lsblk \
|
2017-06-05 17:52:15 +00:00
|
|
|
media \
|
2017-04-21 16:27:04 +00:00
|
|
|
model \
|
|
|
|
serial \
|
|
|
|
ses \
|
|
|
|
size \
|
|
|
|
slaves \
|
|
|
|
slot \
|
2017-06-05 17:52:15 +00:00
|
|
|
smart \
|
|
|
|
smartx \
|
|
|
|
temp \
|
|
|
|
health \
|
|
|
|
r_proc \
|
|
|
|
w_proc \
|
|
|
|
r_ucor \
|
|
|
|
w_ucor \
|
|
|
|
nonmed \
|
|
|
|
defect \
|
|
|
|
hours_on \
|
|
|
|
realloc \
|
|
|
|
rep_ucor \
|
|
|
|
cmd_to \
|
|
|
|
pend_sec \
|
|
|
|
off_ucor \
|
|
|
|
ata_err \
|
2018-02-21 21:52:47 +00:00
|
|
|
nvme_err \
|
2017-06-05 17:52:15 +00:00
|
|
|
pwr_cyc \
|
2017-04-21 16:27:04 +00:00
|
|
|
upath \
|
2018-02-27 17:31:27 +00:00
|
|
|
vendor \
|
|
|
|
smart_test \
|
|
|
|
test_type \
|
|
|
|
test_status \
|
|
|
|
test_progress \
|
|
|
|
test_ended
|
2017-04-21 16:27:04 +00:00
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
$(MKDIR_P) "$(DESTDIR)$(zpoolconfdir)"
|
|
|
|
for f in $(zpoolconfdefaults); do \
|
|
|
|
test -f "$(DESTDIR)$(zpoolconfdir)/$${f}" -o \
|
|
|
|
-L "$(DESTDIR)$(zpoolconfdir)/$${f}" || \
|
|
|
|
ln -s "$(zpoolexecdir)/$${f}" "$(DESTDIR)$(zpoolconfdir)"; \
|
|
|
|
done
|