This tries to prevent unexpected upgrades of kernel that is not known
to be supported by the packaged version of ZFS/SPL.
lsb-release,
${misc:Depends}
Recommends: spl (>= ${source:Upstream-Version}),
+ linux-libc-dev (< 4.16)
Provides: spl-modules
Description: Solaris Porting Layer kernel modules for Linux
The Solaris Porting Layer (SPL) is a Linux kernel module which provides
--- /dev/null
+#!/bin/sh
+
+SUPPORT=$(cat debian/linux_compat)
+MAJOR=$(echo $SUPPORT|cut -d'.' -f1)
+MINOR=$(echo $SUPPORT|cut -d'.' -f2)
+NEXT=$((MINOR+1))
+
+echo "${MAJOR}.${NEXT}"
dh $@ --with dkms,autoreconf --parallel
override_dh_auto_configure:
- @cp debian/control.in debian/control
+ sed "s/@LINUX_COMPAT@/linux-libc-dev \(< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
@# Embed the downstream version in the module.
@sed \
override_dh_auto_clean:
dh_auto_clean
@if test -e META.orig; then mv META.orig META; fi
- cp debian/control.in debian/control
+ sed "s/@LINUX_COMPAT@/linux-libc-dev \(< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
# ------------