2022-04-10 02:19:15 +03:00
|
|
|
sudoersddir = $(sysconfdir)/sudoers.d
|
|
|
|
sudoersd_DATA = \
|
|
|
|
%D%/sudoers.d/zfs
|
|
|
|
|
2022-05-26 19:24:50 +03:00
|
|
|
dist_noinst_DATA += $(sudoersd_DATA)
|
2022-04-10 02:19:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
sysconf_zfsdir = $(sysconfdir)/zfs
|
|
|
|
|
|
|
|
dist_sysconf_zfs_DATA = \
|
|
|
|
%D%/zfs/vdev_id.conf.alias.example \
|
|
|
|
%D%/zfs/vdev_id.conf.multipath.example \
|
|
|
|
%D%/zfs/vdev_id.conf.sas_direct.example \
|
|
|
|
%D%/zfs/vdev_id.conf.sas_switch.example \
|
|
|
|
%D%/zfs/vdev_id.conf.scsi.example
|
|
|
|
|
2022-05-25 19:29:47 +03:00
|
|
|
sysconf_zfs_DATA = \
|
2022-04-10 02:19:15 +03:00
|
|
|
%D%/zfs/zfs-functions
|
|
|
|
|
2022-05-25 19:29:47 +03:00
|
|
|
SUBSTFILES += $(sysconf_zfs_DATA)
|
|
|
|
SHELLCHECKSCRIPTS += $(sysconf_zfs_DATA)
|
|
|
|
$(call SHELLCHECK_OPTS,$(sysconf_zfs_DATA)): SHELLCHECK_SHELL = sh
|
2021-05-22 00:43:38 +03:00
|
|
|
|
2022-01-07 01:36:04 +03:00
|
|
|
|
2020-04-14 21:36:28 +03:00
|
|
|
if BUILD_LINUX
|
2022-05-25 19:29:47 +03:00
|
|
|
initconf_DATA = \
|
2022-04-10 02:19:15 +03:00
|
|
|
%D%/default/zfs
|
|
|
|
|
2022-05-25 19:29:47 +03:00
|
|
|
SUBSTFILES += $(initconf_DATA)
|
|
|
|
SHELLCHECKSCRIPTS += $(initconf_DATA)
|
|
|
|
$(call SHELLCHECK_OPTS,$(initconf_DATA)): SHELLCHECK_SHELL = sh
|
2022-04-10 02:19:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
if INIT_SYSV
|
2022-05-26 19:24:50 +03:00
|
|
|
dist_noinst_DATA += %D%/init.d/README.md
|
2022-04-10 02:19:15 +03:00
|
|
|
|
|
|
|
init_SCRIPTS = \
|
|
|
|
%D%/init.d/zfs-import \
|
|
|
|
%D%/init.d/zfs-load-key \
|
|
|
|
%D%/init.d/zfs-mount \
|
|
|
|
%D%/init.d/zfs-share \
|
|
|
|
%D%/init.d/zfs-zed
|
|
|
|
|
|
|
|
SUBSTFILES += $(init_SCRIPTS)
|
|
|
|
SHELLCHECKSCRIPTS += $(init_SCRIPTS)
|
|
|
|
$(call SHELLCHECK_OPTS,$(init_SCRIPTS)): SHELLCHECK_SHELL = sh
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
if INIT_SYSTEMD
|
|
|
|
dist_systemdpreset_DATA = \
|
|
|
|
%D%/systemd/system/50-zfs.preset
|
|
|
|
|
|
|
|
systemdunit_DATA = \
|
|
|
|
%D%/systemd/system/zfs-import-cache.service \
|
|
|
|
%D%/systemd/system/zfs-import-scan.service \
|
|
|
|
%D%/systemd/system/zfs-import.target \
|
|
|
|
%D%/systemd/system/zfs-mount.service \
|
|
|
|
%D%/systemd/system/zfs-scrub-monthly@.timer \
|
|
|
|
%D%/systemd/system/zfs-scrub-weekly@.timer \
|
|
|
|
%D%/systemd/system/zfs-scrub@.service \
|
2022-06-11 04:22:14 +03:00
|
|
|
%D%/systemd/system/zfs-trim-monthly@.timer \
|
|
|
|
%D%/systemd/system/zfs-trim-weekly@.timer \
|
|
|
|
%D%/systemd/system/zfs-trim@.service \
|
2022-04-10 02:19:15 +03:00
|
|
|
%D%/systemd/system/zfs-share.service \
|
|
|
|
%D%/systemd/system/zfs-volume-wait.service \
|
|
|
|
%D%/systemd/system/zfs-volumes.target \
|
|
|
|
%D%/systemd/system/zfs-zed.service \
|
|
|
|
%D%/systemd/system/zfs.target
|
|
|
|
|
|
|
|
SUBSTFILES += $(systemdunit_DATA)
|
|
|
|
|
|
|
|
INSTALL_DATA_HOOKS += systemd-install-data-hook
|
|
|
|
systemd-install-data-hook:
|
|
|
|
$(MKDIR_P) "$(DESTDIR)$(systemdunitdir)"
|
|
|
|
ln -sf /dev/null "$(DESTDIR)$(systemdunitdir)/zfs-import.service"
|
2022-10-13 01:27:55 +03:00
|
|
|
ln -sf /dev/null "$(DESTDIR)$(systemdunitdir)/zfs-load-key.service"
|
2022-04-10 02:19:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
systemdgenerator_PROGRAMS = \
|
|
|
|
%D%/systemd/system-generators/zfs-mount-generator
|
|
|
|
|
|
|
|
%C%_systemd_system_generators_zfs_mount_generator_SOURCES = \
|
|
|
|
%D%/systemd/system-generators/zfs-mount-generator.c
|
|
|
|
|
|
|
|
%C%_systemd_system_generators_zfs_mount_generator_LDADD = \
|
|
|
|
libzfs.la
|
|
|
|
|
|
|
|
%C%_systemd_system_generators_zfs_mount_generator_LDFLAGS = -pthread
|
|
|
|
|
|
|
|
CPPCHECKTARGETS += $(systemdgenerator_PROGRAMS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
if WANT_MODULES_LOAD_D
|
|
|
|
dist_modulesload_DATA = \
|
|
|
|
%D%/modules-load.d/zfs.conf
|
|
|
|
endif
|
2020-04-14 21:36:28 +03:00
|
|
|
endif
|