Name lm-sensors
Description utilities to read temperature/voltage/fan sensors
Version 1:3.6.0-9build1
Package Base
Homepage https://hwmon.wiki.kernel.org/lm_sensors
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors []
Distro-repo https://git.launchpad.net/ubuntu/+source/lm-sensors/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/01-sensors-detect-udevadm.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/02-sensors-conf-convert-improvements.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/06-sensors-detect-debian.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/08-sensors-detect-lm85.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/09-sensors-detect-sch5524.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/11-fancontrol-check.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/14-2-digits-kernel.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/15-path-max.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/16-egrep-pwmconfig.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/20-isadump.8-editorial-fixes.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/21-isaset.8-editorial-fixes.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/22-sensors.1-editorial-fixes.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/23-sensors-conf-convert.8-editorial-fixes.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/24-sensors-detect.8-editorial-fixes.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lm-sensors/plain/debian/watch?h=ubuntu/noble']
Dependencies ['libc6', 'libsensors5', 'perl', 'sed']
Optional-Dependencies ['fancontrol', 'i2c-tools', 'read-edid']
Build-Dependencies ['debhelper-compat', 'bison', 'flex', 'pkgconf', 'systemd-dev']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash dfc9430a421f24e3cf3fa5607f9e9a7a799b468fe818467ad5301669bf1f5c59
#!/usr/bin/make -f

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:
	dh_auto_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

#
# 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