1 zpool_CFLAGS = $(AM_CFLAGS)
2 zpool_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUUID_CFLAGS)
4 zpool_CPPFLAGS = $(AM_CPPFLAGS)
5 zpool_CPPFLAGS += -I$(srcdir)/%D%
8 CPPCHECKTARGETS += zpool
19 %D%/os/freebsd/zpool_vdev_os.c
24 %D%/os/linux/zpool_vdev_os.c
34 zpool_LDADD += $(LTLIBINTL)
39 zpool_LDADD += -lm $(LIBBLKID_LIBS) $(LIBUUID_LIBS)
41 dist_noinst_DATA += %D%/zpool.d/README
43 SHELLCHECKSCRIPTS += $(dist_zpoolexec_SCRIPTS)
44 zpoolexecdir = $(zfsexecdir)/zpool.d
45 dist_zpoolexec_SCRIPTS = \
52 %D%/zpool.d/fault_led \
54 %D%/zpool.d/hours_on \
56 %D%/zpool.d/iostat-10s \
57 %D%/zpool.d/iostat-1s \
59 %D%/zpool.d/locate_led \
64 %D%/zpool.d/nvme_err \
65 %D%/zpool.d/off_ucor \
66 %D%/zpool.d/pend_sec \
71 %D%/zpool.d/rep_ucor \
77 %D%/zpool.d/smart_test \
80 %D%/zpool.d/test_ended \
81 %D%/zpool.d/test_progress \
82 %D%/zpool.d/test_status \
83 %D%/zpool.d/test_type \
133 zpoolcompatdir = $(pkgdatadir)/compatibility.d
134 dist_zpoolcompat_DATA = \
135 %D%/compatibility.d/compat-2018 \
136 %D%/compatibility.d/compat-2019 \
137 %D%/compatibility.d/compat-2020 \
138 %D%/compatibility.d/compat-2021 \
139 %D%/compatibility.d/freebsd-11.0 \
140 %D%/compatibility.d/freebsd-11.2 \
141 %D%/compatibility.d/freebsd-11.3 \
142 %D%/compatibility.d/freenas-9.10.2 \
143 %D%/compatibility.d/grub2-2.06 \
144 %D%/compatibility.d/grub2-2.12 \
145 %D%/compatibility.d/openzfs-2.0-freebsd \
146 %D%/compatibility.d/openzfs-2.0-linux \
147 %D%/compatibility.d/openzfs-2.1-freebsd \
148 %D%/compatibility.d/openzfs-2.1-linux \
149 %D%/compatibility.d/openzfs-2.2 \
150 %D%/compatibility.d/openzfs-2.3 \
151 %D%/compatibility.d/openzfsonosx-1.7.0 \
152 %D%/compatibility.d/openzfsonosx-1.8.1 \
153 %D%/compatibility.d/openzfsonosx-1.9.3 \
154 %D%/compatibility.d/zol-0.6.1 \
155 %D%/compatibility.d/zol-0.6.4 \
156 %D%/compatibility.d/zol-0.6.5 \
157 %D%/compatibility.d/zol-0.7 \
158 %D%/compatibility.d/zol-0.8
160 # canonical <- alias symbolic link pairs
161 # eg: "2018" is a link to "compat-2018"
167 "freebsd-11.0 freebsd-11.1" \
168 "freebsd-11.0 freenas-11.0" \
169 "freebsd-11.2 freenas-11.2" \
170 "freebsd-11.3 freebsd-11.4" \
171 "freebsd-11.3 freebsd-12.0" \
172 "freebsd-11.3 freebsd-12.1" \
173 "freebsd-11.3 freebsd-12.2" \
174 "freebsd-11.3 freebsd-12.3" \
175 "freebsd-11.3 freebsd-12.4" \
177 "openzfs-2.1-freebsd freebsd-13.0" \
178 "openzfs-2.1-freebsd freebsd-13.1" \
179 "openzfs-2.1-freebsd freebsd-13.2" \
180 "freebsd-11.3 freenas-11.3" \
181 "freenas-11.0 freenas-11.1" \
182 "openzfsonosx-1.9.3 openzfsonosx-1.9.4" \
183 "openzfs-2.0-freebsd truenas-12.0" \
184 "zol-0.7 ubuntu-18.04" \
185 "zol-0.8 ubuntu-20.04" \
186 "openzfs-2.1-linux ubuntu-22.04" \
187 "openzfs-2.2 openzfs-2.2-linux" \
188 "openzfs-2.2 openzfs-2.2-freebsd" \
189 "openzfs-2.3 openzfs-2.3-linux" \
190 "openzfs-2.3 openzfs-2.3-freebsd"
192 zpoolconfdir = $(sysconfdir)/zfs/zpool.d
193 INSTALL_DATA_HOOKS += zpool-install-data-hook
194 zpool-install-data-hook:
195 $(MKDIR_P) "$(DESTDIR)$(zpoolconfdir)"
196 set -x; for f in $(zpoolconfdefaults); do \
197 [ -f "$(DESTDIR)$(zpoolconfdir)/$${f}" ] || \
198 [ -L "$(DESTDIR)$(zpoolconfdir)/$${f}" ] || \
199 $(LN_S) "$(zpoolexecdir)/$${f}" "$(DESTDIR)$(zpoolconfdir)"; \
201 set -x; printf '%s\n' $(zpoolcompatlinks) | \
202 while read -r canon alias; do \
203 $(LN_S) -f "$${canon}" "$(DESTDIR)$(zpoolcompatdir)/$${alias}"; \