File debian.rules of Package reform-tools

#!/usr/bin/make -f

# for debian/reform-tools.install and for dkms
include /usr/share/dpkg/pkg-info.mk
export DEB_VERSION_UPSTREAM

%:
	dh $@

override_dh_installsystemd:
	dh_installsystemd --package=reform-tools --name=reform-hw-setup
	dh_installsystemd --package=reform-tools --no-stop-on-upgrade --no-start --name=reform-sleep

override_dh_dkms:
	dh_dkms -V $(DEB_VERSION_UPSTREAM)

execute_after_dh_install:
	# workaround until this is in unstable:
	# https://github.com/fwupd/fwupd/pull/8270
	mkdir -p debian/reform-tools/usr/lib/systemd/system/fwupd.service.d
	printf "[Unit]\nWants=modprobe@sd_mod.service\nAfter=modprobe@sd_mod.service" >debian/reform-tools/usr/lib/systemd/system/fwupd.service.d/pull8270.conf
openSUSE Build Service is sponsored by