[arch-commits] Commit in smartmontools/trunk (PKGBUILD smartd)
Giovanni Scafora
giovanni at archlinux.org
Tue Oct 27 21:46:46 UTC 2009
Date: Tuesday, October 27, 2009 @ 17:46:46
Author: giovanni
Revision: 56779
upgpkg: smartmontools 5.38-2
Fixed FS16861
Modified:
smartmontools/trunk/PKGBUILD
Deleted:
smartmontools/trunk/smartd
----------+
PKGBUILD | 25 ++++++++++++++++---------
smartd | 35 -----------------------------------
2 files changed, 16 insertions(+), 44 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-10-27 20:59:43 UTC (rev 56778)
+++ PKGBUILD 2009-10-27 21:46:46 UTC (rev 56779)
@@ -2,26 +2,33 @@
# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
# Contributor: Jeff Mickey <jeff at archlinux.org>
# Contributor: Jani Talikka <jani.talikka at gmail.com>
+# Contributor: Ralf Barth <archlinux.org at haggy.org>
pkgname=smartmontools
pkgver=5.38
-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')
arch=('i686' 'x86_64')
depends=('gcc-libs')
-backup=('etc/smartd.conf')
+backup=('etc/smartd.conf'
+ 'etc/conf.d/smartd')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz \
- smartd)
+ smartd.conf
+ smartd.rc)
+md5sums=('a282846532ecbd6b4a28072373b3a70b'
+ '28c1b80c41dac52d433961dcfb4f70e0'
+ 'fb30e07f87f2c1d99532e018291ad3e8')
build()
{
- cd ${startdir}/src/${pkgname}-${pkgver}
- ./configure --prefix=/usr --sysconfdir=/etc
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc
make || return 1
- make DESTDIR=${startdir}/pkg install
- rm -rf ${startdir}/pkg/etc/rc.d
- install -D -m 755 ../smartd ${startdir}/pkg/etc/rc.d/smartd
+ 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
}
-md5sums=('a282846532ecbd6b4a28072373b3a70b' '850f98b6792b7642ff193a49a2f1139d')
Deleted: smartd
===================================================================
--- smartd 2009-10-27 20:59:43 UTC (rev 56778)
+++ smartd 2009-10-27 21:46:46 UTC (rev 56779)
@@ -1,35 +0,0 @@
-#!/bin/bash
-
- . /etc/rc.conf
- . /etc/rc.d/functions
-
- case "$1" in
-
- start)
- stat_busy "Starting smartd"
- /usr/sbin/smartd &>/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