2010-08-26 22:22:58 +04:00
|
|
|
include $(top_srcdir)/config/Rules.am
|
|
|
|
|
|
|
|
DEFAULT_INCLUDES += \
|
2010-09-05 00:26:23 +04:00
|
|
|
-I$(top_srcdir)/include \
|
|
|
|
-I$(top_srcdir)/lib/libspl/include
|
2010-08-26 22:22:58 +04:00
|
|
|
|
|
|
|
sbin_PROGRAMS = zpool
|
|
|
|
|
|
|
|
zpool_SOURCES = \
|
2014-06-10 01:55:31 +04:00
|
|
|
zpool_iter.c \
|
|
|
|
zpool_main.c \
|
|
|
|
zpool_util.c \
|
|
|
|
zpool_util.h \
|
|
|
|
zpool_vdev.c
|
2010-08-26 22:22:58 +04:00
|
|
|
|
|
|
|
zpool_LDADD = \
|
|
|
|
$(top_builddir)/lib/libnvpair/libnvpair.la \
|
|
|
|
$(top_builddir)/lib/libuutil/libuutil.la \
|
2017-08-10 01:31:08 +03:00
|
|
|
$(top_builddir)/lib/libzfs/libzfs.la
|
|
|
|
|
|
|
|
zpool_LDADD += -lm $(LIBBLKID)
|
2017-04-21 19:27:04 +03:00
|
|
|
|
|
|
|
zpoolconfdir = $(sysconfdir)/zfs/zpool.d
|
|
|
|
zpoolexecdir = $(libexecdir)/zfs/zpool.d
|
|
|
|
|
|
|
|
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 20:52:15 +03:00
|
|
|
zpool.d/media \
|
2017-04-21 19:27:04 +03:00
|
|
|
zpool.d/model \
|
|
|
|
zpool.d/serial \
|
|
|
|
zpool.d/ses \
|
|
|
|
zpool.d/size \
|
|
|
|
zpool.d/slaves \
|
|
|
|
zpool.d/slot \
|
2017-06-05 20:52:15 +03: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 \
|
|
|
|
zpool.d/pwr_cyc \
|
2017-04-21 19:27:04 +03:00
|
|
|
zpool.d/upath \
|
|
|
|
zpool.d/vendor
|
|
|
|
|
|
|
|
zpoolconfdefaults = \
|
|
|
|
enc \
|
|
|
|
encdev \
|
|
|
|
fault_led \
|
|
|
|
iostat \
|
|
|
|
iostat-1s \
|
|
|
|
iostat-10s \
|
|
|
|
label \
|
|
|
|
locate_led \
|
|
|
|
lsblk \
|
2017-06-05 20:52:15 +03:00
|
|
|
media \
|
2017-04-21 19:27:04 +03:00
|
|
|
model \
|
|
|
|
serial \
|
|
|
|
ses \
|
|
|
|
size \
|
|
|
|
slaves \
|
|
|
|
slot \
|
2017-06-05 20:52:15 +03: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 \
|
|
|
|
pwr_cyc \
|
2017-04-21 19:27:04 +03:00
|
|
|
upath \
|
|
|
|
vendor
|
|
|
|
|
|
|
|
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
|