1 pkgdatadir = $(datadir)/@PACKAGE@
3 dist_pkgdata_SCRIPTS = \
24 define EXTRA_ENVIRONMENT
26 # Only required for in-tree use
28 export GDB="libtool --mode=execute gdb"
29 export LDMOD=/sbin/insmod
31 export CMD_DIR=@abs_top_builddir@/cmd
32 export UDEV_RULE_DIR=@abs_top_builddir@/udev/rules.d
33 export ZEDLET_ETC_DIR=$$CMD_DIR/zed/zed.d
34 export ZEDLET_LIBEXEC_DIR=$$CMD_DIR/zed/zed.d
35 export ZPOOL_SCRIPT_DIR=$$CMD_DIR/zpool/zpool.d
36 export ZPOOL_SCRIPTS_PATH=$$CMD_DIR/zpool/zpool.d
37 export CONTRIB_DIR=@abs_top_builddir@/contrib
38 export LIB_DIR=@abs_top_builddir@/lib
39 export SYSCONF_DIR=@abs_top_builddir@/etc
41 export INSTALL_UDEV_DIR=@udevdir@
42 export INSTALL_UDEV_RULE_DIR=@udevruledir@
43 export INSTALL_MOUNT_HELPER_DIR=@mounthelperdir@
44 export INSTALL_SYSCONF_DIR=@sysconfdir@
45 export INSTALL_PYTHON_DIR=@pythonsitedir@
47 export KMOD_SPL=@abs_top_builddir@/module/spl/spl.ko
48 export KMOD_ZAVL=@abs_top_builddir@/module/avl/zavl.ko
49 export KMOD_ZNVPAIR=@abs_top_builddir@/module/nvpair/znvpair.ko
50 export KMOD_ZUNICODE=@abs_top_builddir@/module/unicode/zunicode.ko
51 export KMOD_ZCOMMON=@abs_top_builddir@/module/zcommon/zcommon.ko
52 export KMOD_ZLUA=@abs_top_builddir@/module/lua/zlua.ko
53 export KMOD_ICP=@abs_top_builddir@/module/icp/icp.ko
54 export KMOD_ZFS=@abs_top_builddir@/module/zfs/zfs.ko
55 export KMOD_FREEBSD=@abs_top_builddir@/module/openzfs.ko
56 export KMOD_ZZSTD=@abs_top_builddir@/module/zstd/zzstd.ko
59 export EXTRA_ENVIRONMENT
62 -$(SED) -e '\|^export BIN_DIR=|s|$$|@abs_top_builddir@/bin|' \
63 -e '\|^export SBIN_DIR=|s|$$|@abs_top_builddir@/bin|' \
64 -e '\|^export ZTS_DIR=|s|$$|@abs_top_srcdir@/tests|' \
65 -e '\|^export SCRIPT_DIR=|s|$$|@abs_top_srcdir@/scripts|' \
66 $(abs_top_srcdir)/scripts/common.sh.in >common.sh
67 -echo "$$EXTRA_ENVIRONMENT" >>common.sh
73 -$(SED) -e '\|^export BIN_DIR=|s|$$|@bindir@|' \
74 -e '\|^export SBIN_DIR=|s|$$|@sbindir@|' \
75 -e '\|^export ZTS_DIR=|s|$$|@datadir@/@PACKAGE@|' \
76 -e '\|^export SCRIPT_DIR=|s|$$|@datadir@/@PACKAGE@|' \
77 $(abs_top_srcdir)/scripts/common.sh.in \
78 >$(DESTDIR)$(datadir)/@PACKAGE@/common.sh