From: Tom Prince Date: Thu, 9 Oct 2014 17:22:59 +0000 (-0300) Subject: Install header during post-build rather than post-install. X-Git-Tag: zfs-0.6.3-1.1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83a3269f592a2d0cf76227db3582339f72b71b66;p=zfs Install header during post-build rather than post-install. New versions of dkms clean up the build directory after installing. It appears that this was always intended, but had rm -rf "/path/to/build/*" (note the quotes), which prevented it from working. Also, the build step is already installing stuff into the directory where these files go, so installing our stuff there as part of build rather than install makes sense. Signed-off-by: Tom Prince Signed-off-by: Richard Yao Signed-off-by: Brian Behlendorf Closes #2776 --- diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 7894db49e..6869aa67c 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -1,6 +1,6 @@ SUBDIRS = zpool-config zpios-test zpios-profile -EXTRA_DIST = dkms.mkconf dkms.postinst kmodtool zfs2zol-patch.sed cstyle.pl +EXTRA_DIST = dkms.mkconf dkms.postbuild kmodtool zfs2zol-patch.sed cstyle.pl pkgdatadir = $(datadir)/@PACKAGE@ dist_pkgdata_SCRIPTS = \ diff --git a/scripts/dkms.mkconf b/scripts/dkms.mkconf index ecdee717f..dde8ee8cb 100755 --- a/scripts/dkms.mkconf +++ b/scripts/dkms.mkconf @@ -47,7 +47,7 @@ PRE_BUILD="configure } ) " -POST_INSTALL="scripts/dkms.postinst +POST_BUILD="scripts/dkms.postbuild -n \${PACKAGE_NAME} -v \${PACKAGE_VERSION} -a \${arch} diff --git a/scripts/dkms.postinst b/scripts/dkms.postbuild similarity index 100% rename from scripts/dkms.postinst rename to scripts/dkms.postbuild