mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
fee48fd22c
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 <tom.prince@clusterhq.com> Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #2776
25 lines
576 B
Bash
Executable File
25 lines
576 B
Bash
Executable File
#!/bin/bash
|
|
|
|
PROG=$0
|
|
|
|
while getopts "a:k:n:t:v:" opt; do
|
|
case $opt in
|
|
a) arch=$OPTARG ;;
|
|
k) kver=$OPTARG ;;
|
|
n) pkgname=$OPTARG ;;
|
|
t) tree=$OPTARG ;;
|
|
v) pkgver=$OPTARG ;;
|
|
esac
|
|
done
|
|
|
|
if [ -z "${arch}" -o -z "${kver}" -o -z "${pkgname}" -o \
|
|
-z "${tree}" -o -z "${pkgver}" ]; then
|
|
echo "Usage: $PROG -a <arch> -k <kver> -n <pkgname>" \
|
|
"-t <tree> -v <pkgver>"
|
|
exit 1
|
|
fi
|
|
|
|
cp ${tree}/${pkgname}/${pkgver}/build/zfs_config.h \
|
|
${tree}/${pkgname}/${pkgver}/build/module/Module.symvers \
|
|
${tree}/${pkgname}/${pkgver}/${kver}/${arch}/
|