[arch-commits] Commit in smartmontools/trunk (PKGBUILD smartd.rc)

Giovanni Scafora giovanni at nymeria.archlinux.org
Sun Feb 3 16:40:48 UTC 2013


    Date: Sunday, February 3, 2013 @ 17:40:48
  Author: giovanni
Revision: 176999

upgpkg: smartmontools 6.0-2

drop support for initscripts

Modified:
  smartmontools/trunk/PKGBUILD
Deleted:
  smartmontools/trunk/smartd.rc

-----------+
 PKGBUILD  |    9 +++------
 smartd.rc |   39 ---------------------------------------
 2 files changed, 3 insertions(+), 45 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-02-03 16:13:46 UTC (rev 176998)
+++ PKGBUILD	2013-02-03 16:40:48 UTC (rev 176999)
@@ -6,7 +6,7 @@
 
 pkgname=smartmontools
 pkgver=6.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Control and monitor S.M.A.R.T. enabled ATA and SCSI Hard Drives"
 url="http://smartmontools.sourceforge.net"
 license=('GPL')
@@ -15,11 +15,9 @@
 backup=('etc/smartd.conf'
         'etc/conf.d/smartd')
 source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
-        'smartd.conf'
-        'smartd.rc')
+        'smartd.conf')
 md5sums=('5646a07f5f4bee8e2e649de8c6b7ae87'
-         '28c1b80c41dac52d433961dcfb4f70e0'
-         'fb30e07f87f2c1d99532e018291ad3e8')
+         '28c1b80c41dac52d433961dcfb4f70e0')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
@@ -41,6 +39,5 @@
   make DESTDIR="${pkgdir}" install
 
   rm -rf ${pkgdir}/etc/rc.d
-  install -Dm755 ${srcdir}/smartd.rc "${pkgdir}/etc/rc.d/smartd"
   install -Dm644 ${srcdir}/smartd.conf "${pkgdir}/etc/conf.d/smartd"
 }

Deleted: smartd.rc
===================================================================
--- smartd.rc	2013-02-03 16:13:46 UTC (rev 176998)
+++ smartd.rc	2013-02-03 16:40:48 UTC (rev 176999)
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-# source application-specific settings
-SMARTD_ARGS=
-[ -f /etc/conf.d/smartd ] && . /etc/conf.d/smartd
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-case "$1" in
-
-   start)
-     stat_busy "Starting smartd"
-     /usr/sbin/smartd ${SMARTD_ARGS} &>/dev/null
-     if [ $? -ne 0 ]; then
-       stat_fail
-     else
-       add_daemon smartd
-       stat_done
-     fi
-   ;;
-
-   stop)
-     stat_busy "Stopping smartd"
-     kill -9 `pidof /usr/sbin/smartd` &>/dev/null
-     rm_daemon smartd
-     stat_done
-   ;;
-
-   restart)
-     stat_busy "Restarting smartd ..."
-     $0 stop
-     $0 start
-     stat_done
-   ;;
-
-   *)
-     echo "usage: $0 {start|stop|restart}"
-esac




More information about the arch-commits mailing list