2010-08-26 22:22:58 +04:00
|
|
|
include $(top_srcdir)/config/Rules.am
|
|
|
|
|
2019-10-02 20:39:48 +03:00
|
|
|
DEFAULT_INCLUDES += -I.
|
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
|
|
|
|
2020-04-14 21:36:28 +03:00
|
|
|
if BUILD_FREEBSD
|
|
|
|
zpool_SOURCES += os/freebsd/zpool_vdev_os.c
|
|
|
|
endif
|
|
|
|
|
2019-09-30 22:16:06 +03:00
|
|
|
if BUILD_LINUX
|
|
|
|
zpool_SOURCES += os/linux/zpool_vdev_os.c
|
|
|
|
endif
|
|
|
|
|
2010-08-26 22:22:58 +04:00
|
|
|
zpool_LDADD = \
|
|
|
|
$(top_builddir)/lib/libnvpair/libnvpair.la \
|
|
|
|
$(top_builddir)/lib/libuutil/libuutil.la \
|
2020-05-09 20:17:08 +03:00
|
|
|
$(top_builddir)/lib/libzfs_core/libzfs_core.la \
|
2017-08-10 01:31:08 +03:00
|
|
|
$(top_builddir)/lib/libzfs/libzfs.la
|
|
|
|
|
2020-04-14 21:36:28 +03:00
|
|
|
if BUILD_FREEBSD
|
|
|
|
zpool_LDADD += -L/usr/local/lib -lintl -lgeom
|
|
|
|
endif
|
2017-08-10 01:31:08 +03:00
|
|
|
zpool_LDADD += -lm $(LIBBLKID)
|
2017-04-21 19:27:04 +03:00
|
|
|
|
|
|
|
zpoolconfdir = $(sysconfdir)/zfs/zpool.d
|
2018-06-07 19:59:59 +03:00
|
|
|
zpoolexecdir = $(zfsexecdir)/zpool.d
|
2017-04-21 19:27:04 +03: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 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 \
|
2018-02-22 00:52:47 +03:00
|
|
|
zpool.d/nvme_err \
|
2017-06-05 20:52:15 +03:00
|
|
|
zpool.d/pwr_cyc \
|
2017-04-21 19:27:04 +03:00
|
|
|
zpool.d/upath \
|
2018-02-27 20:31:27 +03: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 19:27:04 +03:00
|
|
|
|
|
|
|
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 \
|
2018-02-22 00:52:47 +03:00
|
|
|
nvme_err \
|
2017-06-05 20:52:15 +03:00
|
|
|
pwr_cyc \
|
2017-04-21 19:27:04 +03:00
|
|
|
upath \
|
2018-02-27 20:31:27 +03:00
|
|
|
vendor \
|
|
|
|
smart_test \
|
|
|
|
test_type \
|
|
|
|
test_status \
|
|
|
|
test_progress \
|
|
|
|
test_ended
|
2017-04-21 19:27:04 +03: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
|