#!/usr/bin/make -f
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
# SPDX-FileCopyrightText: 2021 Harald Sitter <sitter@kde.org>

%:
	dh $@

override_dh_auto_configure:
	# Fun fact: dh_installsystemd doesn't handle /usr/lib/systemd meaning we
	# need to use /lib instead.
	which reuse || pip3 install reuse
	#reuse lint
	dh_auto_configure -- -DSYSTEMD_UNIT_INSTALL_DIR=/lib/systemd/

override_dh_auto_clean:
	dh_auto_clean

override_dh_installsystemd:
	# Don't start automatically it'd reload the sysctl unit which is technically
	# possible but can also have unintended side effects.
	dh_installsystemd --no-start
