mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
Fixes dkms.conf for Redhat Enterprise
commit 8e0aaae076f4cccfd2d6ed81ede4e355235b578e , while fixing dkms.conf for Fedora, broke dkms.conf for RHEL. In RHEL, you get a dkms.conf with too many backslashes in the "mv" line. The dkms.conf should have the mv line reading: mv src/libafs/MODLOAD-*/\$KMODNAME \$DSTKMOD" for Fedora. This change checks if we are building on Fedora, and if so, maintains the extra backslashes. Otherwise, not. modified: src/packaging/RedHat/openafs.spec.in Uses the dist tags as specified at http://fedoraproject.org/wiki/Packaging:DistTag Reviewed-on: http://gerrit.openafs.org/6851 Reviewed-by: Ken Dreyer <ktdreyer@ktdreyer.com> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org> (cherry picked from commit 81a9a33e0bc5455841ba105dab52735c64c7096b) Change-Id: I7cdc0a93e0f4c292a07184ea1d4f15ece529276b Reviewed-on: http://gerrit.openafs.org/6863 Reviewed-by: Derrick Brashear <shadow@dementix.org> Tested-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
2607d686b3
commit
33c4d3ffe1
@ -1055,6 +1055,8 @@ install -p -m 644 src/packaging/RedHat/openafs-cacheinfo $uve/cacheinfo
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/src
|
||||
cp -a libafs_tree $RPM_BUILD_ROOT%{_prefix}/src/%{name}-%{dkms_version}
|
||||
|
||||
%if 0%{?fedora}
|
||||
|
||||
cat > $RPM_BUILD_ROOT%{_prefix}/src/%{name}-%{dkms_version}/dkms.conf <<EOF
|
||||
|
||||
PACKAGE_VERSION="%{dkms_version}"
|
||||
@ -1071,6 +1073,25 @@ AUTOINSTALL=yes
|
||||
|
||||
EOF
|
||||
|
||||
%else
|
||||
cat > $RPM_BUILD_ROOT%{_prefix}/src/%{name}-%{dkms_version}/dkms.conf <<EOF
|
||||
|
||||
PACKAGE_VERSION="%{dkms_version}"
|
||||
|
||||
# Items below here should not have to change with each driver version
|
||||
PACKAGE_NAME="%{name}"
|
||||
MAKE[0]="KMODNAME=openafs.ko; DSTKMOD=\\".\\"; [ \\"\\\`echo \\"\${kernelver_array[0]}\${kernelver[0]}\\" | sed -e 's/^\\([0-9]*\\.[0-9]*\\)\\..*/\\1/'\\\`\\" = \\"2.4\\" ] && KMODNAME=\\"libafs-*\\" && DSTKMOD=openafs.o; ./configure --with-linux-kernel-headers=\${kernel_source_dir} --with-linux-kernel-packaging; make; mv src/libafs/MODLOAD-*/\\\$KMODNAME \\\$DSTKMOD"
|
||||
CLEAN="make -C src/libafs clean"
|
||||
|
||||
BUILT_MODULE_NAME[0]="\$PACKAGE_NAME"
|
||||
DEST_MODULE_LOCATION[0]="/kernel/3rdparty/\$PACKAGE_NAME/"
|
||||
STRIP[0]=no
|
||||
AUTOINSTALL=yes
|
||||
|
||||
EOF
|
||||
|
||||
%endif
|
||||
|
||||
#
|
||||
# install kernel-source
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user