Introduce DKMS support for DEB packages

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2020-11-02 18:51:55 +01:00
parent edc729bed8
commit 3060aaf95f
8 changed files with 47 additions and 11 deletions

View File

@@ -4,13 +4,23 @@
#export DH_VERBOSE = 1
%:
dh $@
dh $@ --with dkms
override_dh_auto_configure :
./configure
override_dh_auto_build :
(cd utils/; ./cas_version_gen build)
make -C casadm
override_dh_auto_install :
make install_files DESTDIR="$(shell pwd)/debian/tmp"
make -C casadm install_files DESTDIR="$(shell pwd)/debian/tmp"
make -C utils install_files DESTDIR="$(shell pwd)/debian/tmp"
# clean and generate version again before installing sources for DKMS
make distclean
(cd utils/; ./cas_version_gen)
override_dh_dkms :
dh_dkms -V $(DEB_VERSION_UPSTREAM)
override_dh_installsystemd :
dh_installsystemd --no-start