Name lm-sensors
Description utilities to read temperature/voltage/fan sensors
Version 1:3.6.2-2
Package Base
Homepage https://github.com/hramrach/lm-sensors
Maintainers ['Aurelien Jarno <aurel32@debian.org>']
Contributors []
Distro-repo https://salsa.debian.org/aurel32/lm-sensors
Sources ['https://sources.debian.org/data/main/l/lm-sensors/1:3.6.2-2/debian/watch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/01-sensors-detect-udevadm.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/02-sensors-conf-convert-improvements.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/06-sensors-detect-debian.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/08-sensors-detect-more-chips.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/10-missing-sensor-warning.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/11-fancontrol-check.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/14-2-digits-kernel.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/15-path-max.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/20-isadump.8-editorial-fixes.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/21-isaset.8-editorial-fixes.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/22-sensors.1-editorial-fixes.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/23-sensors-conf-convert.8-editorial-fixes.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/24-sensors-detect.8-editorial-fixes.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/25-sensors.conf.5-editorial-fixes.patch', 'https://sources.debian.org/src/lm-sensors/1:3.6.2-2/debian/patches/series']
Dependencies ['libc6', 'libsensors5']
Optional-Dependencies ['fancontrol', 'i2c-tools', 'read-edid']
Build-Dependencies ['debhelper-compat', 'bison', 'flex', 'libtest-cmd-perl <!nocheck>', 'pkgconf', 'systemd-dev']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 6533dd2054a51d3fbb67df31fd1339d10395f2e38675e78ddbd513876abe06b4
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export deb_systemdsleepdir = $(shell pkg-config --variable=systemdsleepdir systemd)

%:
	dh $@

MAKEARGS_INDP = DESTDIR=$(CURDIR)/debian/tmp \
		PREFIX=/usr \
		LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
		MANDIR=/usr/share/man
MAKEARGS_ARCH = $(MAKEARGS_INDP) \
		ARCH=$(DEB_HOST_GNU_CPU) \
		CFLAGS="$(CFLAGS)" \
		CPPFLAGS="$(CPPFLAGS)" \
		LDFLAGS="$(LDFLAGS)" \
		EXLDFLAGS="$(LDFLAGS)"

override_dh_auto_clean:
	make clean $(MAKEARGS_ARCH)

# Ignore missing files on non-Linux. This package is Linux specific, and
# is just minimally built on other OS to simplify porters work.
ifneq ($(DEB_HOST_ARCH_OS),linux)
override_dh_missing:
	dh_missing --list-missing
endif

# Sensors-detect works fine with perl-base
override_dh_perl:
	dh_perl -d

#
# Architecture independent targets
#
override_dh_auto_build-indep:

override_dh_auto_install-indep:
	$(MAKE) install-etc install-prog-pwm $(MAKEARGS_INDP)
	install -m 755 -D $(CURDIR)/debian/fancontrol-systemd-sleep $(CURDIR)/debian/fancontrol$(deb_systemdsleepdir)/fancontrol

	# Make sure /etc/sensors.d/ is not removed
	touch $(CURDIR)/debian/tmp/etc/sensors.d/.placeholder

override_dh_installinit-indep:
	dh_installinit -pfancontrol --restart-after-upgrade

override_dh_installsystemd-indep:
	dh_installsystemd -pfancontrol --restart-after-upgrade


#
# Architecture targets
#
override_dh_auto_build-arch:
	dh_auto_build -- $(MAKEARGS_ARCH)

override_dh_auto_install-arch:
	dh_auto_install -- $(MAKEARGS_ARCH)

	# Install isadump only if it has been built (on x86/x86_64 archs only)
	if [ -x prog/dump/isadump ] ; then \
		dh_install -plm-sensors usr/sbin/isadump ; \
		dh_install -plm-sensors usr/share/man/man8/isadump.8 ; \
	fi
	# Install isaset only if it has been built (on x86/x86_64 archs only)
	if [ -x prog/dump/isaset ] ; then \
		dh_install -plm-sensors usr/sbin/isaset ; \
		dh_install -plm-sensors usr/share/man/man8/isaset.8 ; \
	fi

override_dh_installinit-arch:
	dh_installinit -plm-sensors --no-start

override_dh_installsystemd-arch:
	dh_installsystemd -plm-sensors --no-start