1sudoersddir = $(sysconfdir)/sudoers.d 2sudoersd_DATA = \ 3 %D%/sudoers.d/zfs 4 5EXTRA_DIST += $(sudoersd_DATA) 6 7 8sysconf_zfsdir = $(sysconfdir)/zfs 9 10dist_sysconf_zfs_DATA = \ 11 %D%/zfs/vdev_id.conf.alias.example \ 12 %D%/zfs/vdev_id.conf.multipath.example \ 13 %D%/zfs/vdev_id.conf.sas_direct.example \ 14 %D%/zfs/vdev_id.conf.sas_switch.example \ 15 %D%/zfs/vdev_id.conf.scsi.example 16 17sysconf_zfs_SCRIPTS = \ 18 %D%/zfs/zfs-functions 19 20SUBSTFILES += $(sysconf_zfs_SCRIPTS) 21SHELLCHECKSCRIPTS += $(sysconf_zfs_SCRIPTS) 22$(call SHELLCHECK_OPTS,$(sysconf_zfs_SCRIPTS)): SHELLCHECK_SHELL = sh 23 24 25if BUILD_LINUX 26initconf_SCRIPTS = \ 27 %D%/default/zfs 28 29SUBSTFILES += $(initconf_SCRIPTS) 30SHELLCHECKSCRIPTS += $(initconf_SCRIPTS) 31$(call SHELLCHECK_OPTS,$(initconf_SCRIPTS)): SHELLCHECK_SHELL = sh 32 33 34if INIT_SYSV 35EXTRA_DIST += $(addprefix %D%/,init.d/README.md) 36 37init_SCRIPTS = \ 38 %D%/init.d/zfs-import \ 39 %D%/init.d/zfs-load-key \ 40 %D%/init.d/zfs-mount \ 41 %D%/init.d/zfs-share \ 42 %D%/init.d/zfs-zed 43 44SUBSTFILES += $(init_SCRIPTS) 45SHELLCHECKSCRIPTS += $(init_SCRIPTS) 46$(call SHELLCHECK_OPTS,$(init_SCRIPTS)): SHELLCHECK_SHELL = sh 47endif 48 49 50if INIT_SYSTEMD 51dist_systemdpreset_DATA = \ 52 %D%/systemd/system/50-zfs.preset 53 54systemdunit_DATA = \ 55 %D%/systemd/system/zfs-import-cache.service \ 56 %D%/systemd/system/zfs-import-scan.service \ 57 %D%/systemd/system/zfs-import.target \ 58 %D%/systemd/system/zfs-mount.service \ 59 %D%/systemd/system/zfs-scrub-monthly@.timer \ 60 %D%/systemd/system/zfs-scrub-weekly@.timer \ 61 %D%/systemd/system/zfs-scrub@.service \ 62 %D%/systemd/system/zfs-share.service \ 63 %D%/systemd/system/zfs-volume-wait.service \ 64 %D%/systemd/system/zfs-volumes.target \ 65 %D%/systemd/system/zfs-zed.service \ 66 %D%/systemd/system/zfs.target 67 68SUBSTFILES += $(systemdunit_DATA) 69 70INSTALL_DATA_HOOKS += systemd-install-data-hook 71systemd-install-data-hook: 72 $(MKDIR_P) "$(DESTDIR)$(systemdunitdir)" 73 ln -sf /dev/null "$(DESTDIR)$(systemdunitdir)/zfs-import.service" 74 75 76systemdgenerator_PROGRAMS = \ 77 %D%/systemd/system-generators/zfs-mount-generator 78 79%C%_systemd_system_generators_zfs_mount_generator_SOURCES = \ 80 %D%/systemd/system-generators/zfs-mount-generator.c 81 82%C%_systemd_system_generators_zfs_mount_generator_LDADD = \ 83 libzfs.la 84 85%C%_systemd_system_generators_zfs_mount_generator_LDFLAGS = -pthread 86 87CPPCHECKTARGETS += $(systemdgenerator_PROGRAMS) 88endif 89 90 91if WANT_MODULES_LOAD_D 92dist_modulesload_DATA = \ 93 %D%/modules-load.d/zfs.conf 94endif 95endif 96