diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-07-08 06:40:34 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-07-08 06:41:26 +0000 |
commit | 7d7811aa6295c3373d5cddd0cdffaa55293855c2 (patch) | |
tree | 6836da6a88e582718cd736cded4853ff028a007d /main/lm_sensors | |
parent | 45d067d771d80f46dacfb9bae9502fd29ed7db92 (diff) | |
download | aports-7d7811aa6295c3373d5cddd0cdffaa55293855c2.tar.bz2 aports-7d7811aa6295c3373d5cddd0cdffaa55293855c2.tar.xz |
main/lm_sensors: build sensord package and put into a separate subpkg, since it depends on rrdtools
Diffstat (limited to 'main/lm_sensors')
-rw-r--r-- | main/lm_sensors/APKBUILD | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/main/lm_sensors/APKBUILD b/main/lm_sensors/APKBUILD index 7cc2e3595e..9e5076d4ac 100644 --- a/main/lm_sensors/APKBUILD +++ b/main/lm_sensors/APKBUILD @@ -1,14 +1,14 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lm_sensors pkgver=3.3.5 -pkgrel=0 +pkgrel=2 pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring." url="http://www.lm-sensors.org/" arch="all" license="GPL" -depends="sysfsutils rrdtool" +depends="sysfsutils" makedepends="perl rrdtool-dev bison flex" -subpackages="$pkgname-dev $pkgname-doc $pkgname-detect" +subpackages="$pkgname-dev $pkgname-doc $pkgname-detect $pkgname-sensord" #install=sensors.install source="http://dl.lm-sensors.org/lm-sensors/releases/$pkgname-$pkgver.tar.bz2 sensors-detect-alpine.patch @@ -46,7 +46,7 @@ build() { package() { cd "$_builddir" - make user_install \ + make PROG_EXTRA:=sensord user_install \ PREFIX=/usr \ MANDIR=/usr/share/man \ DESTDIR="$pkgdir" || return 1 @@ -54,8 +54,6 @@ package() { cd "$srcdir" install -Dm755 fancontrol.initd "$pkgdir"/etc/init.d/fancontrol install -Dm755 lm_sensors.initd "$pkgdir"/etc/init.d/lm_sensors - install -Dm755 sensord.initd "$pkgdir"/etc/init.d/sensord - install -Dm755 sensord.confd "$pkgdir"/etc/conf.d/sensord } detect() { @@ -67,6 +65,15 @@ detect() { mv usr/sbin/sensors-detect "$subpkgdir"/usr/bin/ } +sensord() { + pkgdesc="sensord daemon" + cd $_builddir + mkdir -p "$subpkgdir"/usr/sbin + mv "$pkgdir"/usr/sbin/sensord "$subpkgdir"/usr/sbin/sensord || return 1 + install -Dm755 "$srcdir"/sensord.initd "$subpkgdir"/etc/init.d/sensord + install -Dm755 "$srcdir"/sensord.confd "$subpkgdir"/etc/conf.d/sensord +} + md5sums="da506dedceb41822e64865f6ba34828a lm_sensors-3.3.5.tar.bz2 e507d7c34067c03602dd652f31f14f2f sensors-detect-alpine.patch 9411b5410420df8251c6e6c9c958fd89 musl-fix-includes.patch |