summaryrefslogtreecommitdiff
path: root/extra/hddtemp
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-21 00:28:39 -0700
committerroot <root@rshg054.dnsready.net>2013-05-21 00:28:39 -0700
commite3f225daecfd5cfea4af1a4e8ac4b6c46c7ec363 (patch)
treeb3e36d93c34b5b08544b1698462c06fdb99560b8 /extra/hddtemp
parent383955a81810f344e11b1472bd4c5069fa77020c (diff)
Tue May 21 00:28:39 PDT 2013
Diffstat (limited to 'extra/hddtemp')
-rw-r--r--extra/hddtemp/PKGBUILD14
-rw-r--r--extra/hddtemp/conf.d2
-rw-r--r--extra/hddtemp/rc.d39
-rw-r--r--extra/hddtemp/service3
4 files changed, 5 insertions, 53 deletions
diff --git a/extra/hddtemp/PKGBUILD b/extra/hddtemp/PKGBUILD
index 94073ce8f..7d9238319 100644
--- a/extra/hddtemp/PKGBUILD
+++ b/extra/hddtemp/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 163630 2012-07-17 14:24:03Z bisson $
+# $Id: PKGBUILD 186029 2013-05-20 14:50:15Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
@@ -9,22 +9,17 @@ pkgname=hddtemp
_origver=0.3-beta15
_patchver=${_origver}-52
pkgver=${_patchver//-/.}
-pkgrel=1
+pkgrel=2
pkgdesc="Gives you the temperature of your hard drive by reading S.M.A.R.T. information"
url='https://savannah.nongnu.org/projects/hddtemp/'
license=('GPL')
arch=('i686' 'x86_64')
-backup=('etc/conf.d/hddtemp')
source=("http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${_origver}.tar.bz2"
"http://ftp.debian.org/debian/pool/main/h/${pkgname}/${pkgname}_${_patchver}.diff.gz"
- 'rc.d'
- 'conf.d'
'service')
sha1sums=('65393b0a4d9862c030c81702d95c1acd00da275b'
'b9bcdd0537c1540e55e5056445b571ea61d5a4a3'
- '71159486b1505ec6acfb7585e0d8fbe78afe54ec'
- 'd45e3022f614dbf8904ecb1a3e702bb71fcaa808'
- '501fcf4faf8b2689d010f9cbbf39f917211f611f')
+ '9b02e5bed22f81ceab2b69bae788a9a3aa5c2147')
options=('!libtool')
@@ -35,6 +30,7 @@ build() {
./configure \
--prefix=/usr \
+ --sbindir=/usr/bin \
--mandir=/usr/share/man \
--with-db-path="/usr/share/${pkgname}/hddtemp.db"
@@ -48,6 +44,4 @@ package() {
install -Dm644 "../${pkgname}-${_origver}/debian/hddtemp.db" "${pkgdir}/usr/share/${pkgname}/hddtemp.db"
install -Dm644 '../service' "${pkgdir}/usr/lib/systemd/system/hddtemp.service"
- install -Dm644 '../conf.d' "${pkgdir}/etc/conf.d/hddtemp"
- install -Dm755 '../rc.d' "${pkgdir}/etc/rc.d/hddtemp"
}
diff --git a/extra/hddtemp/conf.d b/extra/hddtemp/conf.d
deleted file mode 100644
index 6a1e18e0b..000000000
--- a/extra/hddtemp/conf.d
+++ /dev/null
@@ -1,2 +0,0 @@
-PARAMS="-q -l 127.0.0.1"
-DRIVES="/dev/sda"
diff --git a/extra/hddtemp/rc.d b/extra/hddtemp/rc.d
deleted file mode 100644
index 62f090808..000000000
--- a/extra/hddtemp/rc.d
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PARAMS=
-DRIVES=
-[ -f /etc/conf.d/hddtemp ] && . /etc/conf.d/hddtemp
-PID=$(pidof -o %PPID /usr/sbin/hddtemp)
-case "$1" in
- start)
- stat_busy "Starting HDDTemp"
- [ -z "$PID" ] && /usr/sbin/hddtemp -d $PARAMS $DRIVES
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon hddtemp
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping HDDTemp"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon hddtemp
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 2
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0
diff --git a/extra/hddtemp/service b/extra/hddtemp/service
index bc56d16b0..992b898ad 100644
--- a/extra/hddtemp/service
+++ b/extra/hddtemp/service
@@ -2,8 +2,7 @@
Description=Hard drive temperature monitor daemon
[Service]
-EnvironmentFile=/etc/conf.d/hddtemp
-ExecStart=/usr/sbin/hddtemp -dF $PARAMS $DRIVES
+ExecStart=/usr/bin/hddtemp -dF /dev/sda
[Install]
WantedBy=multi-user.target