]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: [Debian] supply zfs dkms Provides: based on do_zfs
authorAndy Whitcroft <apw@canonical.com>
Fri, 26 Feb 2016 20:38:49 +0000 (20:38 +0000)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:21:44 +0000 (10:21 +0100)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
debian/rules

index 7924630689733b5a54828296076270b5c768c7a5..d3ee5dcdad8d81ee367ac5e29634f1f71eabbf4b 100755 (executable)
@@ -88,6 +88,12 @@ binary: binary-indep binary-arch
 
 build: build-arch build-indep
 
+# If we are building zfs update the provides.
+rprovides=
+ifeq ($(do_zfs),true)
+rprovides:=$(rprovides), spl-dkms, zfs-dkms
+endif
+
 clean: debian/control
        dh_testdir
        dh_testroot
@@ -144,6 +150,7 @@ $(DEBIAN)/control.stub: $(DEBIAN)/d-i/kernel-versions.in    \
                -e 's/ABINUM/$(abinum)/g'                                       \
                -e 's/SRCPKGNAME/$(src_pkg_name)/g'                             \
                -e 's/=HUMAN=/$(human_arch)/g'                                    \
+               -e 's/=RPROVIDES=/$(rprovides)/g'                               \
          > $$new;                                                              \
        done
        flavours="$(sort $(wildcard $(DEBIAN)/control.d/vars.* $(DEBIAN)/sub-flavours/*.vars))";\
@@ -153,6 +160,7 @@ $(DEBIAN)/control.stub: $(DEBIAN)/d-i/kernel-versions.in    \
                -e 's/ABINUM/$(abinum)/g'                                       \
                -e 's/SRCPKGNAME/$(src_pkg_name)/g'                             \
                -e 's/=HUMAN=/$(human_arch)/g'                                    \
+               -e 's/=RPROVIDES=/$(rprovides)/g'                               \
                >> $(DEBIAN)/control.stub;                                              \
        done