# # Platform Packages for Chakra, part of chakra-project.org # # maintainer abveritas@chakra-project.org pkgname=lm_sensors pkgver=3.3.3 pkgrel=1 pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring" arch=('x86_64') url="http://www.lm-sensors.org/" license=('GPL' 'LGPL') depends=('perl' 'sysfsutils') makedepends=('rrdtool') optdepends=('rrdtool: for logging with sensord') backup=('etc/sensors3.conf' 'etc/conf.d/healthd' 'etc/conf.d/sensord') options=('!emptydirs') source=("http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${pkgver}.tar.bz2" \ 'healthd' 'healthd.conf' 'sensord.conf' \ 'daemonarg.patch' 'linux_3.0.patch' \ 'fancontrol.service' 'sensord.service' 'healthd.service') sha1sums=('b55c06f425993e42f13553f204066c446da36fd3' 'f3e4fb36a619fb446139abc3f7a1d5409504c632' '6c4e8a2d89dd2fd3ca2f0f4f3b1230111e01b0fc' 'de8d4d65406815c389f8a04e2a8508a1ae6749c8' '34241388c4001bfb6e49b7e10da1217e29a258d6' '676aaf4f4392d825a447fda62cbe1835306eb0e8' '7a4a4d1442aeeba0ba8aefb742a3ef187b593f4c' 'eff43b4882d25dae7dd0b33eb2e33b0836a5cc51' 'a7a20eb3c799d70287e6c7968a7ab42165925293') build() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i 's|/etc/sysconfig|/etc/conf.d|' prog/{detect/sensors-detect,init/lm_sensors.service} sed -i 's@\(/bin/systemctl\|/lib/systemd/system\)@/usr\1@g' prog/detect/sensors-detect #if the configuration file is not present don't show any errors (file generated with sensors-detect), Arch bug #30887 sed -i 's/EnvironmentFile=/EnvironmentFile=-/' prog/init/lm_sensors.service patch -p1 < ../daemonarg.patch patch -p0 < ../linux_3.0.patch make PREFIX=/usr } package() { cd "${srcdir}/${pkgname}-${pkgver}" make PROG_EXTRA=sensord BUILD_STATIC_LIB=0 \ PREFIX=/usr MANDIR=/usr/share/man DESTDIR="${pkgdir}" install install -D -m644 prog/init/lm_sensors.service "${pkgdir}/usr/lib/systemd/system/lm_sensors.service" install -D -m755 "${srcdir}/healthd" "${pkgdir}/usr/sbin/healthd" install -D -m644 "${srcdir}/healthd.conf" "${pkgdir}/etc/conf.d/healthd" install -D -m644 "${srcdir}/sensord.conf" "${pkgdir}/etc/conf.d/sensord" install -D -m644 "${srcdir}/fancontrol.service" "${pkgdir}/usr/lib/systemd/system/fancontrol.service" install -D -m644 "${srcdir}/sensord.service" "${pkgdir}/usr/lib/systemd/system/sensord.service" install -D -m644 "${srcdir}/healthd.service" "${pkgdir}/usr/lib/systemd/system/healthd.service" }