[arch-commits] Commit in hdapsd/trunk (PKGBUILD hdapsd.rc.d)

Lukas Fleischer lfleischer at nymeria.archlinux.org
Mon May 13 07:35:55 UTC 2013


    Date: Monday, May 13, 2013 @ 09:35:55
  Author: lfleischer
Revision: 90556

upgpkg: hdapsd 20090401-6

Remove rc.d script.

Modified:
  hdapsd/trunk/PKGBUILD
Deleted:
  hdapsd/trunk/hdapsd.rc.d

-------------+
 PKGBUILD    |    5 ----
 hdapsd.rc.d |   60 ----------------------------------------------------------
 2 files changed, 1 insertion(+), 64 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 07:12:03 UTC (rev 90555)
+++ PKGBUILD	2013-05-13 07:35:55 UTC (rev 90556)
@@ -4,7 +4,7 @@
 
 pkgname=hdapsd
 pkgver=20090401
-pkgrel=5
+pkgrel=6
 pkgdesc='HDAPS userspace hard drive protection daemon'
 arch=('i686' 'x86_64')
 url='http://sourceforge.net/projects/hdaps/'
@@ -13,12 +13,10 @@
 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')
 
@@ -36,7 +34,6 @@
 
   # 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"
 }

Deleted: hdapsd.rc.d
===================================================================
--- hdapsd.rc.d	2013-05-13 07:12:03 UTC (rev 90555)
+++ hdapsd.rc.d	2013-05-13 07:35:55 UTC (rev 90556)
@@ -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




More information about the arch-commits mailing list