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

Gaetan Bisson bisson at nymeria.archlinux.org
Mon May 13 10:04:28 UTC 2013


    Date: Monday, May 13, 2013 @ 12:04:28
  Author: bisson
Revision: 185320

remove deprecated rc script

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

----------+
 PKGBUILD |    3 ---
 rc.d     |   39 ---------------------------------------
 2 files changed, 42 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 10:03:41 UTC (rev 185319)
+++ PKGBUILD	2013-05-13 10:04:28 UTC (rev 185320)
@@ -16,11 +16,9 @@
 arch=('i686' 'x86_64')
 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'
         'service')
 sha1sums=('65393b0a4d9862c030c81702d95c1acd00da275b'
           'b9bcdd0537c1540e55e5056445b571ea61d5a4a3'
-          '71159486b1505ec6acfb7585e0d8fbe78afe54ec'
           'b5e284595b5f9a46f5e608b8b0df623e0a2954a5')
 
 options=('!libtool')
@@ -45,5 +43,4 @@
 
 	install -Dm644 "../${pkgname}-${_origver}/debian/hddtemp.db" "${pkgdir}/usr/share/${pkgname}/hddtemp.db"
 	install -Dm644 '../service' "${pkgdir}/usr/lib/systemd/system/hddtemp.service"
-	install -Dm755 '../rc.d' "${pkgdir}/etc/rc.d/hddtemp"
 }

Deleted: rc.d
===================================================================
--- rc.d	2013-05-13 10:03:41 UTC (rev 185319)
+++ rc.d	2013-05-13 10:04:28 UTC (rev 185320)
@@ -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




More information about the arch-commits mailing list