[arch-commits] Commit in hdapsd/repos (18 files)
Lukas Fleischer
lfleischer at nymeria.archlinux.org
Mon May 13 07:36:15 UTC 2013
Date: Monday, May 13, 2013 @ 09:36:14
Author: lfleischer
Revision: 90557
archrelease: copy trunk to community-i686, community-x86_64
Added:
hdapsd/repos/community-i686/PKGBUILD
(from rev 90556, hdapsd/trunk/PKGBUILD)
hdapsd/repos/community-i686/hdapsd.conf.d
(from rev 90556, hdapsd/trunk/hdapsd.conf.d)
hdapsd/repos/community-i686/hdapsd.systemd
(from rev 90556, hdapsd/trunk/hdapsd.systemd)
hdapsd/repos/community-i686/hdapsd.wrapper
(from rev 90556, hdapsd/trunk/hdapsd.wrapper)
hdapsd/repos/community-x86_64/PKGBUILD
(from rev 90556, hdapsd/trunk/PKGBUILD)
hdapsd/repos/community-x86_64/hdapsd.conf.d
(from rev 90556, hdapsd/trunk/hdapsd.conf.d)
hdapsd/repos/community-x86_64/hdapsd.systemd
(from rev 90556, hdapsd/trunk/hdapsd.systemd)
hdapsd/repos/community-x86_64/hdapsd.wrapper
(from rev 90556, hdapsd/trunk/hdapsd.wrapper)
Deleted:
hdapsd/repos/community-i686/PKGBUILD
hdapsd/repos/community-i686/hdapsd.conf.d
hdapsd/repos/community-i686/hdapsd.rc.d
hdapsd/repos/community-i686/hdapsd.systemd
hdapsd/repos/community-i686/hdapsd.wrapper
hdapsd/repos/community-x86_64/PKGBUILD
hdapsd/repos/community-x86_64/hdapsd.conf.d
hdapsd/repos/community-x86_64/hdapsd.rc.d
hdapsd/repos/community-x86_64/hdapsd.systemd
hdapsd/repos/community-x86_64/hdapsd.wrapper
---------------------------------+
/PKGBUILD | 78 ++++++++++++++++++++++++++++++++++++++
/hdapsd.conf.d | 44 +++++++++++++++++++++
/hdapsd.systemd | 24 +++++++++++
/hdapsd.wrapper | 40 +++++++++++++++++++
community-i686/PKGBUILD | 42 --------------------
community-i686/hdapsd.conf.d | 22 ----------
community-i686/hdapsd.rc.d | 60 -----------------------------
community-i686/hdapsd.systemd | 12 -----
community-i686/hdapsd.wrapper | 20 ---------
community-x86_64/PKGBUILD | 42 --------------------
community-x86_64/hdapsd.conf.d | 22 ----------
community-x86_64/hdapsd.rc.d | 60 -----------------------------
community-x86_64/hdapsd.systemd | 12 -----
community-x86_64/hdapsd.wrapper | 20 ---------
14 files changed, 186 insertions(+), 312 deletions(-)
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2013-05-13 07:35:55 UTC (rev 90556)
+++ community-i686/PKGBUILD 2013-05-13 07:36:14 UTC (rev 90557)
@@ -1,42 +0,0 @@
-# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
-# Contributor: Emil Renner Berthing <esmil at mailme.dk>
-# Contributor: Xiao-Long Chen <chenxiaolong at cxl.epac.to>
-
-pkgname=hdapsd
-pkgver=20090401
-pkgrel=5
-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')
-source=("http://downloads.sourceforge.net/hdaps/hdapsd-${pkgver}.tar.gz"
- 'hdapsd.conf.d'
- 'hdapsd.rc.d'
- 'hdapsd.systemd'
- 'hdapsd.wrapper')
-md5sums=('897cee8b0192febd127470f3e9506aeb'
- '07fc036c8717bf5a38bbc269ed38ad19'
- '9ab70348da9751810a2bbac51e18ac75'
- '4b1378d43dc9431982f6605265c24f3b'
- '11270661f3a543268786a68bbe74a6bb')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- ./configure --prefix=/usr --sysconfdir=/etc
- make ${MAKEFLAGS}
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- make DESTDIR="${pkgdir}/" install
-
- # install rc script and its configuration file
- install -Dm0644 "${srcdir}/hdapsd.conf.d" "${pkgdir}/etc/conf.d/hdapsd"
- install -Dm0755 "${srcdir}/hdapsd.rc.d" "${pkgdir}/etc/rc.d/hdapsd"
- install -Dm0644 "${srcdir}/hdapsd.systemd" "${pkgdir}/usr/lib/systemd/system/hdapsd.service"
- install -Dm0755 "${srcdir}/hdapsd.wrapper" "${pkgdir}/usr/sbin/hdapsd-wrapper"
-}
Copied: hdapsd/repos/community-i686/PKGBUILD (from rev 90556, hdapsd/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2013-05-13 07:36:14 UTC (rev 90557)
@@ -0,0 +1,39 @@
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Emil Renner Berthing <esmil at mailme.dk>
+# Contributor: Xiao-Long Chen <chenxiaolong at cxl.epac.to>
+
+pkgname=hdapsd
+pkgver=20090401
+pkgrel=6
+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')
+source=("http://downloads.sourceforge.net/hdaps/hdapsd-${pkgver}.tar.gz"
+ 'hdapsd.conf.d'
+ 'hdapsd.systemd'
+ 'hdapsd.wrapper')
+md5sums=('897cee8b0192febd127470f3e9506aeb'
+ '07fc036c8717bf5a38bbc269ed38ad19'
+ '4b1378d43dc9431982f6605265c24f3b'
+ '11270661f3a543268786a68bbe74a6bb')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make ${MAKEFLAGS}
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ 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"
+}
Deleted: community-i686/hdapsd.conf.d
===================================================================
--- community-i686/hdapsd.conf.d 2013-05-13 07:35:55 UTC (rev 90556)
+++ community-i686/hdapsd.conf.d 2013-05-13 07:36:14 UTC (rev 90557)
@@ -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'
Copied: hdapsd/repos/community-i686/hdapsd.conf.d (from rev 90556, hdapsd/trunk/hdapsd.conf.d)
===================================================================
--- community-i686/hdapsd.conf.d (rev 0)
+++ community-i686/hdapsd.conf.d 2013-05-13 07:36:14 UTC (rev 90557)
@@ -0,0 +1,22 @@
+# 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'
Deleted: community-i686/hdapsd.rc.d
===================================================================
--- community-i686/hdapsd.rc.d 2013-05-13 07:35:55 UTC (rev 90556)
+++ community-i686/hdapsd.rc.d 2013-05-13 07:36:14 UTC (rev 90557)
@@ -1,60 +0,0 @@
-#!/bin/bash
-
-[ -f /etc/conf.d/hdapsd ] && . /etc/conf.d/hdapsd
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PIDFILE=/var/run/hdapsd.pid
-PID=`cat ${PIDFILE} 2> /dev/null`
-
-case "$1" in
- start)
- stat_busy "Starting hdapsd"
-
- ## The daemon will try to autoload the kernel module
- #if [ ! -d /sys/devices/platform/hdaps ]; then
- # stat_fail
- # echo "You need to load the hdaps kernel module."
- # exit 1
- #fi
-
- ## Set up options to the hdapsd daemon
- HDAPSD_OPTS="-bp"
- if [ -z "${DEVICE}" ]; then
- HDAPSD_OPTS="${HDAPSD_OPTS} -d sda"
- else
- for i in ${DEVICE[@]}; do
- HDAPSD_OPTS="${HDAPSD_OPTS} -d ${i}"
- done
- fi
- [ ! -z "${SENSITIVITY}" ] && HDAPSD_OPTS="${HDAPSD_OPTS} -s ${SENSITIVITY}"
- [ "${ADAPTIVE}" = "yes" ] && HDAPSD_OPTS="${HDAPSD_OPTS} -a"
- [ "${SYSLOG}" = "yes" ] && HDAPSD_OPTS="${HDAPSD_OPTS} -l"
- [ "${FORCE}" = "yes" ] && HDAPSD_OPTS="${HDAPSD_OPTS} -f"
- [ -z "${PID}" ] && /usr/sbin/hdapsd ${HDAPSD_OPTS}
- if [ ${?} -gt 0 ]; then
- stat_fail
- else
- add_daemon hdapsd
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping hdapsd"
- [ ! -z "${PID}" ] && kill $PID &> /dev/null
- if [ ${?} -gt 0 ]; then
- stat_fail
- else
- rm_daemon hdapsd
- stat_done
- fi
- ;;
- restart)
- ${0} stop
- sleep 1
- ${0} start
- ;;
- *)
- echo "usage: ${0} {start|stop|restart}"
-esac
Deleted: community-i686/hdapsd.systemd
===================================================================
--- community-i686/hdapsd.systemd 2013-05-13 07:35:55 UTC (rev 90556)
+++ community-i686/hdapsd.systemd 2013-05-13 07:36:14 UTC (rev 90557)
@@ -1,12 +0,0 @@
-[Unit]
-Description=HDAPS userspace hard drive protection daemon
-After=syslog.target
-
-[Service]
-Type=forking
-PIDFile=/var/run/hdapsd.pid
-ExecStart=/usr/sbin/hdapsd-wrapper
-ExecReload=/bin/kill -HUP ${MAINPID}
-
-[Install]
-WantedBy=multi-user.target
Copied: hdapsd/repos/community-i686/hdapsd.systemd (from rev 90556, hdapsd/trunk/hdapsd.systemd)
===================================================================
--- community-i686/hdapsd.systemd (rev 0)
+++ community-i686/hdapsd.systemd 2013-05-13 07:36:14 UTC (rev 90557)
@@ -0,0 +1,12 @@
+[Unit]
+Description=HDAPS userspace hard drive protection daemon
+After=syslog.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/hdapsd.pid
+ExecStart=/usr/sbin/hdapsd-wrapper
+ExecReload=/bin/kill -HUP ${MAINPID}
+
+[Install]
+WantedBy=multi-user.target
Deleted: community-i686/hdapsd.wrapper
===================================================================
--- community-i686/hdapsd.wrapper 2013-05-13 07:35:55 UTC (rev 90556)
+++ community-i686/hdapsd.wrapper 2013-05-13 07:36:14 UTC (rev 90557)
@@ -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}
Copied: hdapsd/repos/community-i686/hdapsd.wrapper (from rev 90556, hdapsd/trunk/hdapsd.wrapper)
===================================================================
--- community-i686/hdapsd.wrapper (rev 0)
+++ community-i686/hdapsd.wrapper 2013-05-13 07:36:14 UTC (rev 90557)
@@ -0,0 +1,20 @@
+#!/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}
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2013-05-13 07:35:55 UTC (rev 90556)
+++ community-x86_64/PKGBUILD 2013-05-13 07:36:14 UTC (rev 90557)
@@ -1,42 +0,0 @@
-# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
-# Contributor: Emil Renner Berthing <esmil at mailme.dk>
-# Contributor: Xiao-Long Chen <chenxiaolong at cxl.epac.to>
-
-pkgname=hdapsd
-pkgver=20090401
-pkgrel=5
-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')
-source=("http://downloads.sourceforge.net/hdaps/hdapsd-${pkgver}.tar.gz"
- 'hdapsd.conf.d'
- 'hdapsd.rc.d'
- 'hdapsd.systemd'
- 'hdapsd.wrapper')
-md5sums=('897cee8b0192febd127470f3e9506aeb'
- '07fc036c8717bf5a38bbc269ed38ad19'
- '9ab70348da9751810a2bbac51e18ac75'
- '4b1378d43dc9431982f6605265c24f3b'
- '11270661f3a543268786a68bbe74a6bb')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- ./configure --prefix=/usr --sysconfdir=/etc
- make ${MAKEFLAGS}
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- make DESTDIR="${pkgdir}/" install
-
- # install rc script and its configuration file
- install -Dm0644 "${srcdir}/hdapsd.conf.d" "${pkgdir}/etc/conf.d/hdapsd"
- install -Dm0755 "${srcdir}/hdapsd.rc.d" "${pkgdir}/etc/rc.d/hdapsd"
- install -Dm0644 "${srcdir}/hdapsd.systemd" "${pkgdir}/usr/lib/systemd/system/hdapsd.service"
- install -Dm0755 "${srcdir}/hdapsd.wrapper" "${pkgdir}/usr/sbin/hdapsd-wrapper"
-}
Copied: hdapsd/repos/community-x86_64/PKGBUILD (from rev 90556, hdapsd/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2013-05-13 07:36:14 UTC (rev 90557)
@@ -0,0 +1,39 @@
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Emil Renner Berthing <esmil at mailme.dk>
+# Contributor: Xiao-Long Chen <chenxiaolong at cxl.epac.to>
+
+pkgname=hdapsd
+pkgver=20090401
+pkgrel=6
+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')
+source=("http://downloads.sourceforge.net/hdaps/hdapsd-${pkgver}.tar.gz"
+ 'hdapsd.conf.d'
+ 'hdapsd.systemd'
+ 'hdapsd.wrapper')
+md5sums=('897cee8b0192febd127470f3e9506aeb'
+ '07fc036c8717bf5a38bbc269ed38ad19'
+ '4b1378d43dc9431982f6605265c24f3b'
+ '11270661f3a543268786a68bbe74a6bb')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make ${MAKEFLAGS}
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ 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"
+}
Deleted: community-x86_64/hdapsd.conf.d
===================================================================
--- community-x86_64/hdapsd.conf.d 2013-05-13 07:35:55 UTC (rev 90556)
+++ community-x86_64/hdapsd.conf.d 2013-05-13 07:36:14 UTC (rev 90557)
@@ -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'
Copied: hdapsd/repos/community-x86_64/hdapsd.conf.d (from rev 90556, hdapsd/trunk/hdapsd.conf.d)
===================================================================
--- community-x86_64/hdapsd.conf.d (rev 0)
+++ community-x86_64/hdapsd.conf.d 2013-05-13 07:36:14 UTC (rev 90557)
@@ -0,0 +1,22 @@
+# 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'
Deleted: community-x86_64/hdapsd.rc.d
===================================================================
--- community-x86_64/hdapsd.rc.d 2013-05-13 07:35:55 UTC (rev 90556)
+++ community-x86_64/hdapsd.rc.d 2013-05-13 07:36:14 UTC (rev 90557)
@@ -1,60 +0,0 @@
-#!/bin/bash
-
-[ -f /etc/conf.d/hdapsd ] && . /etc/conf.d/hdapsd
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PIDFILE=/var/run/hdapsd.pid
-PID=`cat ${PIDFILE} 2> /dev/null`
-
-case "$1" in
- start)
- stat_busy "Starting hdapsd"
-
- ## The daemon will try to autoload the kernel module
- #if [ ! -d /sys/devices/platform/hdaps ]; then
- # stat_fail
- # echo "You need to load the hdaps kernel module."
- # exit 1
- #fi
-
- ## Set up options to the hdapsd daemon
- HDAPSD_OPTS="-bp"
- if [ -z "${DEVICE}" ]; then
- HDAPSD_OPTS="${HDAPSD_OPTS} -d sda"
- else
- for i in ${DEVICE[@]}; do
- HDAPSD_OPTS="${HDAPSD_OPTS} -d ${i}"
- done
- fi
- [ ! -z "${SENSITIVITY}" ] && HDAPSD_OPTS="${HDAPSD_OPTS} -s ${SENSITIVITY}"
- [ "${ADAPTIVE}" = "yes" ] && HDAPSD_OPTS="${HDAPSD_OPTS} -a"
- [ "${SYSLOG}" = "yes" ] && HDAPSD_OPTS="${HDAPSD_OPTS} -l"
- [ "${FORCE}" = "yes" ] && HDAPSD_OPTS="${HDAPSD_OPTS} -f"
- [ -z "${PID}" ] && /usr/sbin/hdapsd ${HDAPSD_OPTS}
- if [ ${?} -gt 0 ]; then
- stat_fail
- else
- add_daemon hdapsd
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping hdapsd"
- [ ! -z "${PID}" ] && kill $PID &> /dev/null
- if [ ${?} -gt 0 ]; then
- stat_fail
- else
- rm_daemon hdapsd
- stat_done
- fi
- ;;
- restart)
- ${0} stop
- sleep 1
- ${0} start
- ;;
- *)
- echo "usage: ${0} {start|stop|restart}"
-esac
Deleted: community-x86_64/hdapsd.systemd
===================================================================
--- community-x86_64/hdapsd.systemd 2013-05-13 07:35:55 UTC (rev 90556)
+++ community-x86_64/hdapsd.systemd 2013-05-13 07:36:14 UTC (rev 90557)
@@ -1,12 +0,0 @@
-[Unit]
-Description=HDAPS userspace hard drive protection daemon
-After=syslog.target
-
-[Service]
-Type=forking
-PIDFile=/var/run/hdapsd.pid
-ExecStart=/usr/sbin/hdapsd-wrapper
-ExecReload=/bin/kill -HUP ${MAINPID}
-
-[Install]
-WantedBy=multi-user.target
Copied: hdapsd/repos/community-x86_64/hdapsd.systemd (from rev 90556, hdapsd/trunk/hdapsd.systemd)
===================================================================
--- community-x86_64/hdapsd.systemd (rev 0)
+++ community-x86_64/hdapsd.systemd 2013-05-13 07:36:14 UTC (rev 90557)
@@ -0,0 +1,12 @@
+[Unit]
+Description=HDAPS userspace hard drive protection daemon
+After=syslog.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/hdapsd.pid
+ExecStart=/usr/sbin/hdapsd-wrapper
+ExecReload=/bin/kill -HUP ${MAINPID}
+
+[Install]
+WantedBy=multi-user.target
Deleted: community-x86_64/hdapsd.wrapper
===================================================================
--- community-x86_64/hdapsd.wrapper 2013-05-13 07:35:55 UTC (rev 90556)
+++ community-x86_64/hdapsd.wrapper 2013-05-13 07:36:14 UTC (rev 90557)
@@ -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}
Copied: hdapsd/repos/community-x86_64/hdapsd.wrapper (from rev 90556, hdapsd/trunk/hdapsd.wrapper)
===================================================================
--- community-x86_64/hdapsd.wrapper (rev 0)
+++ community-x86_64/hdapsd.wrapper 2013-05-13 07:36:14 UTC (rev 90557)
@@ -0,0 +1,20 @@
+#!/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}
More information about the arch-commits
mailing list