kernel: dsc
dpkg-source -x ${SPL_DSC} ../pkg-spl
dpkg-source -x ${ZFS_DSC} ../pkg-zfs
+ $(MAKE) -C ../pkg-zfs -f debian/rules adapt_meta_file
.PHONY: dinstall
dinstall: ${DEBS}
include /usr/share/dpkg/default.mk
+VERSION := $(DEB_VERSION_UPSTREAM)
+REVISION := $(shell echo $(DEB_VERSION) | cut -d- -f2)
+
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --with autoreconf,python3,systemd --parallel
-override_dh_autoreconf:
+adapt_meta_file:
@# Embed the downstream version in the module.
- @sed -e 's/^Version:.*/Version: $(DEB_VERSION_UPSTREAM)/' -i.orig META
+ @sed \
+ -e 's/^Version:.*/Version: $(VERSION)/' \
+ -e 's/^Release:.*/Release: $(REVISION)/' \
+ -i.orig META
+
+override_dh_autoreconf: adapt_meta_file
dh_autoreconf
override_dh_auto_configure: