mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 02:20:59 +03:00
493972c896
Refresh the existing RPM packaging to conform to the 'Fedora Packaging Guidelines'. This includes adopting the kmods2 packaging standard which is used fod kmods distributed by rpmfusion for Fedora/RHEL. http://fedoraproject.org/wiki/Packaging:Guidelines http://rpmfusion.org/Packaging/KernelModules/Kmods2 While the spec files have been entirely rewritten from a user perspective the only major changes are: * The Fedora packages now have a build dependency on the rpmfusion repositories. The generic kmod packages also have a new dependency on kmodtool-1.22 but it is bundled with the source rpm so no additional packages are needed. * The kernel binary module packages have been renamed from spl-modules-* to kmod-spl-* as specificed by kmods2. * The is now a common kmod-spl-devel-* package in addition to the per-kernel devel packages. The common package contains the development headers while the per-kernel package contains kernel specific build products. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #222
25 lines
574 B
Bash
Executable File
25 lines
574 B
Bash
Executable File
#!/bin/sh
|
|
|
|
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/spl_config.h \
|
|
${tree}/${pkgname}/${pkgver}/build/module/Module.symvers \
|
|
${tree}/${pkgname}/${pkgver}/${kver}/${arch}/
|