mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-14 07:30:38 +00:00
update files on dkms; update version
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
Name: akmod-openzfs
|
||||
Summary: Kernel module (kmod) for OpenZFS filesystem
|
||||
Version: 2.4.0
|
||||
Version: 2.4.3
|
||||
Release: 1%?dist
|
||||
License: CDDL-1.0
|
||||
URL: https://github.com/openzfs/zfs
|
||||
@@ -58,21 +58,21 @@ for kernel_version in %{?kernel_versions} ; do
|
||||
cd _kmod_build_${kernel_version%%___*}
|
||||
|
||||
./autogen.sh
|
||||
|
||||
|
||||
%configure \
|
||||
--with-config=kernel \
|
||||
--with-linux=${kernel_version##*___} \
|
||||
--with-linux-obj=${kernel_version##*___}
|
||||
|
||||
|
||||
make %{?_smp_mflags} -C ${kernel_version##*___} M=${PWD}/module modules
|
||||
|
||||
|
||||
cd ..
|
||||
done
|
||||
|
||||
%install
|
||||
for kernel_version in %{?kernel_versions}; do
|
||||
mkdir -p %{buildroot}%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
|
||||
|
||||
|
||||
install -D -m 755 _kmod_build_${kernel_version%%___*}/module/avl/zavl.ko %{buildroot}%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
|
||||
install -D -m 755 _kmod_build_${kernel_version%%___*}/module/nvpair/znvpair.ko %{buildroot}%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
|
||||
install -D -m 755 _kmod_build_${kernel_version%%___*}/module/unicode/zunicode.ko %{buildroot}%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
|
||||
@@ -81,11 +81,11 @@ for kernel_version in %{?kernel_versions}; do
|
||||
install -D -m 755 _kmod_build_${kernel_version%%___*}/module/icp/icp.ko %{buildroot}%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
|
||||
install -D -m 755 _kmod_build_${kernel_version%%___*}/module/spl/spl.ko %{buildroot}%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
|
||||
install -D -m 755 _kmod_build_${kernel_version%%___*}/module/zfs/zfs.ko %{buildroot}%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
|
||||
|
||||
|
||||
chmod a+x %{buildroot}%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/*.ko
|
||||
done
|
||||
%{?akmod_install}
|
||||
|
||||
%changelog
|
||||
* Thu Jan 01 2026 Willow Reed <willow@willowidk.dev> - 2.4.0-1
|
||||
- Initial package
|
||||
- Initial package
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
%define module openzfs
|
||||
|
||||
Name: %{module}-dkms
|
||||
Version: 2.4.0
|
||||
Version: 2.4.3
|
||||
Release: 1%?dist
|
||||
Summary: ZFS DKMS Kernel Modules
|
||||
URL: https://github.com/openzfs/zfs
|
||||
@@ -31,11 +31,8 @@ This package contains the dkms ZFS kernel modules.
|
||||
scripts/dkms.mkconf -n %{module} -v %{version} -f dkms.conf
|
||||
|
||||
%install
|
||||
if [ "$RPM_BUILD_ROOT" != "/" ]; then
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
fi
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/src/
|
||||
cp -rf ${RPM_BUILD_DIR}/%{module}-%{version} $RPM_BUILD_ROOT/usr/src/
|
||||
mkdir -p %{buildroot}%{_usrsrc}/%{modulename}-%{version}/
|
||||
cp -rf lib Makefile dkms.conf %{buildroot}%{_usrsrc}/%{modulename}-%{version}/
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
@@ -87,4 +84,4 @@ fi
|
||||
|
||||
%changelog
|
||||
* Thu Jan 01 2026 Willow Reed <willow@willowidk.dev> - 2.4.0-1
|
||||
- Initial package
|
||||
- Initial package
|
||||
|
||||
Reference in New Issue
Block a user