summaryrefslogtreecommitdiffstats
path: root/abs/extra/lm_sensors/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-03-07 21:24:40 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-03-07 21:24:40 (GMT)
commit17a417e13530325e7e6a5ebb5277f2c42685a74a (patch)
tree7db53222f6f5e1868e0053c001f74e2be9a390fe /abs/extra/lm_sensors/PKGBUILD
parent4c44c7fa3ce44ac09e044d41dde9e428c09de1c0 (diff)
downloadlinhes_pkgbuild-17a417e13530325e7e6a5ebb5277f2c42685a74a.zip
linhes_pkgbuild-17a417e13530325e7e6a5ebb5277f2c42685a74a.tar.gz
linhes_pkgbuild-17a417e13530325e7e6a5ebb5277f2c42685a74a.tar.bz2
lm_sensors: update to 3.3.5 and update bin path. refs #961
Diffstat (limited to 'abs/extra/lm_sensors/PKGBUILD')
-rw-r--r--abs/extra/lm_sensors/PKGBUILD65
1 files changed, 27 insertions, 38 deletions
diff --git a/abs/extra/lm_sensors/PKGBUILD b/abs/extra/lm_sensors/PKGBUILD
index 9635bb1..78f622e 100644
--- a/abs/extra/lm_sensors/PKGBUILD
+++ b/abs/extra/lm_sensors/PKGBUILD
@@ -1,8 +1,8 @@
-# $Id: PKGBUILD 170399 2012-11-07 01:42:13Z eric $
+# $Id$
# Maintainer: Eric BĂ©langer <eric@archlinux.org>
pkgname=lm_sensors
-pkgver=3.3.3
+pkgver=3.3.5
pkgrel=1
pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring"
arch=('i686' 'x86_64')
@@ -12,50 +12,39 @@ depends=('perl' 'sysfsutils')
makedepends=('rrdtool')
optdepends=('rrdtool: for logging with sensord')
backup=('etc/sensors3.conf' 'etc/healthd.conf' 'etc/conf.d/sensord')
-options=('!emptydirs')
-source=(http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${pkgver}.tar.bz2{,.sig} \
- sensors.rc fancontrol.rc healthd healthd.conf healthd.rc sensord.conf \
- sensord.rc fancontrol.service sensord.service healthd.service \
- daemonarg.patch linux_3.0.patch)
-sha1sums=('b55c06f425993e42f13553f204066c446da36fd3'
- '035a721f20e4ad568f4fdde2d7c25d906c192458'
- 'b2e664b9b87759991f02d0a1e8cac5e95098c0a5'
- 'a068ac0a3115a6191a487e11422506baa922b40a'
- 'afaad558d2ad4732aa53b69afa23ccf37bc67ab1'
- '6c4e8a2d89dd2fd3ca2f0f4f3b1230111e01b0fc'
- 'de5a46afc39a77ae8721246a0223baf21a2d4c9c'
- 'de8d4d65406815c389f8a04e2a8508a1ae6749c8'
- '72a60251d1d55a67307dab4105d9f3f01a080af4'
- '7a4a4d1442aeeba0ba8aefb742a3ef187b593f4c'
- 'eff43b4882d25dae7dd0b33eb2e33b0836a5cc51'
- 'a7a20eb3c799d70287e6c7968a7ab42165925293'
- '34241388c4001bfb6e49b7e10da1217e29a258d6'
- '5662828085cdd981f0dc7cf8f79d3d6e2b72f50c')
+source=(http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${pkgver}.tar.bz2{,.sig}
+ healthd healthd.conf healthd.service sensord.conf
+ lm_sensors-fancontrol.patch)
+sha1sums=('179989a52bae8f01ba8ed77e8a15af6ec653d89e'
+ 'SKIP'
+ '1c91ae403d3cd02b6177ad1f1b2f2c3a7a3257f5'
+ '1edd4d72ade22adfc128fb8d670e85c633fd1d18'
+ 'd72ec328e9303acef86342483b6f8537de6117d9'
+ 'f4b5f21fdb3b2a55aa353afa1603f953b207b73b'
+ 'b0bc977348610d6a008d75a43f65800251c4c9f7')
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- sed -i -e 's|/etc/sysconfig|/etc/conf.d|' \
- -e 's|/etc/init.d/lm_sensors|/etc/rc.d/sensors|' prog/{detect/sensors-detect,init/lm_sensors.service}
- sed -i 's@\(/bin/systemctl\|/lib/systemd/system\)@/usr\1@g' prog/detect/sensors-detect
+prepare() {
+ cd ${pkgname}-${pkgver}
+ sed -i 's|/etc/sysconfig|/etc/conf.d|' prog/{detect/sensors-detect,init/{sensord,lm_sensors}.service}
sed -i 's/EnvironmentFile=/EnvironmentFile=-/' prog/init/lm_sensors.service
- patch -p1 < ../daemonarg.patch
- patch -p0 < ../linux_3.0.patch
+ patch -p0 -i "${srcdir}/lm_sensors-fancontrol.patch"
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
make PREFIX=/usr
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${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}/sensors.rc" "${pkgdir}/etc/rc.d/sensors"
- install -D -m755 "${srcdir}/fancontrol.rc" "${pkgdir}/etc/rc.d/fancontrol"
- install -D -m755 "${srcdir}/healthd" "${pkgdir}/usr/sbin/healthd"
- install -D -m755 "${srcdir}/healthd.rc" "${pkgdir}/etc/rc.d/healthd"
+ PREFIX=/usr SBINDIR=/usr/bin MANDIR=/usr/share/man DESTDIR="${pkgdir}" install
+
+ install -D -m755 "${srcdir}/healthd" "${pkgdir}/usr/bin/healthd"
+
install -D -m644 "${srcdir}/healthd.conf" "${pkgdir}/etc/healthd.conf"
- install -D -m755 "${srcdir}/sensord.rc" "${pkgdir}/etc/rc.d/sensord"
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"
+ install -D -m644 prog/init/*.service "${pkgdir}/usr/lib/systemd/system/"
}