summaryrefslogtreecommitdiff
path: root/community/hdapsd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-31 06:21:03 -0700
committerroot <root@rshg054.dnsready.net>2013-05-31 06:21:03 -0700
commit7e7561a9640d0e1f54288a391239feb6bd691b56 (patch)
treed3b51b006a1133ace68d149692d9bd9fb3f981a9 /community/hdapsd
parent94a3b302f520438e919ef8706ce9cf42ad7c2e11 (diff)
Fri May 31 06:21:01 PDT 2013
Diffstat (limited to 'community/hdapsd')
-rw-r--r--community/hdapsd/PKGBUILD18
-rw-r--r--community/hdapsd/hdapsd.conf.d22
-rw-r--r--community/hdapsd/hdapsd.systemd2
-rw-r--r--community/hdapsd/hdapsd.wrapper20
4 files changed, 6 insertions, 56 deletions
diff --git a/community/hdapsd/PKGBUILD b/community/hdapsd/PKGBUILD
index 61c0d5d0d..7381649b5 100644
--- a/community/hdapsd/PKGBUILD
+++ b/community/hdapsd/PKGBUILD
@@ -4,26 +4,21 @@
pkgname=hdapsd
pkgver=20090401
-pkgrel=6
+pkgrel=7
pkgdesc='HDAPS userspace hard drive protection daemon'
arch=('i686' 'x86_64')
url='http://sourceforge.net/projects/hdaps/'
license=('GPL')
-depends=('glibc')
-backup=('etc/conf.d/hdapsd')
+depends=('glibc' 'bash')
source=("http://downloads.sourceforge.net/hdaps/hdapsd-${pkgver}.tar.gz"
- 'hdapsd.conf.d'
- 'hdapsd.systemd'
- 'hdapsd.wrapper')
+ 'hdapsd.systemd')
md5sums=('897cee8b0192febd127470f3e9506aeb'
- '07fc036c8717bf5a38bbc269ed38ad19'
- '4b1378d43dc9431982f6605265c24f3b'
- '11270661f3a543268786a68bbe74a6bb')
+ '61ac40d4d77e57863da68d9fd94c58e7')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- ./configure --prefix=/usr --sysconfdir=/etc
+ ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
make ${MAKEFLAGS}
}
@@ -32,8 +27,5 @@ package() {
make DESTDIR="${pkgdir}/" install
- # install rc script and its configuration file
- install -Dm0644 "${srcdir}/hdapsd.conf.d" "${pkgdir}/etc/conf.d/hdapsd"
install -Dm0644 "${srcdir}/hdapsd.systemd" "${pkgdir}/usr/lib/systemd/system/hdapsd.service"
- install -Dm0755 "${srcdir}/hdapsd.wrapper" "${pkgdir}/usr/sbin/hdapsd-wrapper"
}
diff --git a/community/hdapsd/hdapsd.conf.d b/community/hdapsd/hdapsd.conf.d
deleted file mode 100644
index eb99fdc2c..000000000
--- a/community/hdapsd/hdapsd.conf.d
+++ /dev/null
@@ -1,22 +0,0 @@
-# DEVICE specifies the device to monitor, defaults to "sda".
-#DEVICE='sda'
-
-# If an ultrabay hard drive is inserted, the following can be used:
-#DEVICE=('sda' 'sdb')
-
-# SENSITIVITY is self explanatory, defaults to "15".
-#SENSITIVITY='15'
-
-# Set ADAPTIVE to "yes" to enable adaptive threshold (automatically increase
-# when the built-in keyboard/mouse is used).
-#ADAPTIVE='yes'
-
-# Set SYSLOG to "yes" to have the daemon report errors to syslog (instead of
-# stderr/stdout).
-SYSLOG='yes'
-
-# Set FORCE to "yes" to force the kernel to use the unload heads feature on
-# some old hard drives for which support cannot be autodetected (don't use this
-# unless you're absolutely sure your hard drive really supports unloading
-# heads).
-#FORCE='yes'
diff --git a/community/hdapsd/hdapsd.systemd b/community/hdapsd/hdapsd.systemd
index 328699bc7..d3927d61e 100644
--- a/community/hdapsd/hdapsd.systemd
+++ b/community/hdapsd/hdapsd.systemd
@@ -5,7 +5,7 @@ After=syslog.target
[Service]
Type=forking
PIDFile=/var/run/hdapsd.pid
-ExecStart=/usr/sbin/hdapsd-wrapper
+ExecStart=/usr/bin/hdapsd-wrapper
ExecReload=/bin/kill -HUP ${MAINPID}
[Install]
diff --git a/community/hdapsd/hdapsd.wrapper b/community/hdapsd/hdapsd.wrapper
deleted file mode 100644
index d74fd272d..000000000
--- a/community/hdapsd/hdapsd.wrapper
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-[ -f /etc/conf.d/hdapsd ] && source /etc/conf.d/hdapsd
-
-OPTS="-bp"
-
-if [ -z "${DEVICE}" ]; then
- OPTS="${OPTS} -d sda"
-else
- for i in ${DEVICE[@]}; do
- OPTS="${OPTS} -d ${i}"
- done
-fi
-
-[ ! -z "${SENSITIVITY}" ] && OPTS="${OPTS} -s ${SENSITIVITY}"
-[ "${ADAPTIVE}" == "yes" ] && OPTS="${OPTS} -a"
-[ "${SYSLOG}" == "yes" ] && OPTS="${OPTS} -l"
-[ "${FORCE}" == "yes" ] && OPTS="${OPTS} -f"
-
-/usr/sbin/hdapsd ${OPTS}