2011-03-18 01:02:28 +03:00
|
|
|
pkgsysconfdir = $(sysconfdir)/zfs
|
|
|
|
|
|
|
|
pkgsysconf_DATA = \
|
2012-11-29 23:08:37 +04:00
|
|
|
vdev_id.conf.alias.example \
|
2012-04-21 04:32:30 +04:00
|
|
|
vdev_id.conf.sas_direct.example \
|
|
|
|
vdev_id.conf.sas_switch.example \
|
2017-09-27 20:39:47 +03:00
|
|
|
vdev_id.conf.multipath.example \
|
|
|
|
vdev_id.conf.scsi.example
|
2020-02-06 20:28:20 +03:00
|
|
|
pkgsysconf_SCRIPTS = \
|
|
|
|
zfs-functions
|
2011-03-18 01:02:28 +03:00
|
|
|
|
2020-02-06 20:28:20 +03:00
|
|
|
EXTRA_DIST = $(pkgsysconf_DATA) \
|
|
|
|
zfs-functions.in
|
|
|
|
|
|
|
|
$(pkgsysconf_SCRIPTS):%:%.in Makefile
|
|
|
|
-(if [ -e /etc/debian_version ]; then \
|
|
|
|
NFS_SRV=nfs-kernel-server; \
|
|
|
|
else \
|
|
|
|
NFS_SRV=nfs; \
|
|
|
|
fi; \
|
|
|
|
if [ -e /sbin/openrc-run ]; then \
|
|
|
|
SHELL=/sbin/openrc-run; \
|
|
|
|
else \
|
|
|
|
SHELL=/bin/sh; \
|
|
|
|
fi; \
|
|
|
|
$(SED) \
|
|
|
|
-e 's,@sbindir\@,$(sbindir),g' \
|
|
|
|
-e 's,@sysconfdir\@,$(sysconfdir),g' \
|
|
|
|
-e 's,@initconfdir\@,$(initconfdir),g' \
|
|
|
|
$< >'$@'; \
|
|
|
|
[ '$@' = 'zfs-functions' ] || \
|
|
|
|
chmod +x '$@')
|
|
|
|
|
|
|
|
CLEANFILES = $(pkgsysconf_SCRIPTS)
|