Debug auto_replace_001_pos failures
[zfs.git] / etc / Makefile.am
blob7187762d380296981b0c440824676f8e47355816
1 sudoersddir = $(sysconfdir)/sudoers.d
2 sudoersd_DATA = \
3         %D%/sudoers.d/zfs
5 dist_noinst_DATA += $(sudoersd_DATA)
8 sysconf_zfsdir = $(sysconfdir)/zfs
10 dist_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
17 sysconf_zfs_DATA = \
18         %D%/zfs/zfs-functions
20 SUBSTFILES          += $(sysconf_zfs_DATA)
21 SHELLCHECKSCRIPTS   += $(sysconf_zfs_DATA)
22 $(call SHELLCHECK_OPTS,$(sysconf_zfs_DATA)): SHELLCHECK_SHELL = sh
25 if BUILD_LINUX
26 initconf_DATA = \
27         %D%/default/zfs
29 SUBSTFILES          += $(initconf_DATA)
30 SHELLCHECKSCRIPTS   += $(initconf_DATA)
31 $(call SHELLCHECK_OPTS,$(initconf_DATA)): SHELLCHECK_SHELL = sh
34 if INIT_SYSV
35 dist_noinst_DATA += %D%/init.d/README.md
37 init_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
44 SUBSTFILES        += $(init_SCRIPTS)
45 SHELLCHECKSCRIPTS += $(init_SCRIPTS)
46 $(call SHELLCHECK_OPTS,$(init_SCRIPTS)): SHELLCHECK_SHELL = sh
47 endif
50 if INIT_SYSTEMD
51 dist_systemdpreset_DATA = \
52         %D%/systemd/system/50-zfs.preset
54 systemdunit_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-trim-monthly@.timer \
63         %D%/systemd/system/zfs-trim-weekly@.timer \
64         %D%/systemd/system/zfs-trim@.service \
65         %D%/systemd/system/zfs-share.service \
66         %D%/systemd/system/zfs-volume-wait.service \
67         %D%/systemd/system/zfs-volumes.target \
68         %D%/systemd/system/zfs-zed.service \
69         %D%/systemd/system/zfs.target
71 SUBSTFILES += $(systemdunit_DATA)
73 INSTALL_DATA_HOOKS += systemd-install-data-hook
74 systemd-install-data-hook:
75         $(MKDIR_P) "$(DESTDIR)$(systemdunitdir)"
76         ln -sf /dev/null "$(DESTDIR)$(systemdunitdir)/zfs-import.service"
77         ln -sf /dev/null "$(DESTDIR)$(systemdunitdir)/zfs-load-key.service"
80 systemdgenerator_PROGRAMS = \
81         %D%/systemd/system-generators/zfs-mount-generator
83 %C%_systemd_system_generators_zfs_mount_generator_SOURCES = \
84         %D%/systemd/system-generators/zfs-mount-generator.c
86 %C%_systemd_system_generators_zfs_mount_generator_LDADD = \
87         libzfs.la
89 %C%_systemd_system_generators_zfs_mount_generator_LDFLAGS = -pthread
91 CPPCHECKTARGETS += $(systemdgenerator_PROGRAMS)
92 endif
95 if WANT_MODULES_LOAD_D
96 dist_modulesload_DATA = \
97         %D%/modules-load.d/zfs.conf
98 endif
99 endif