From 3990526950d6d8cbd2a9b1a70cee0c7bfe906c99 Mon Sep 17 00:00:00 2001
From: Michael Hanson <hansonorders@verizon.net>
Date: Tue, 15 Feb 2011 03:35:29 +0000
Subject: smartmontools: update to 5.40

---
 abs/extra/smartmontools/PKGBUILD | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/abs/extra/smartmontools/PKGBUILD b/abs/extra/smartmontools/PKGBUILD
index dbee715..ecb4fd5 100644
--- a/abs/extra/smartmontools/PKGBUILD
+++ b/abs/extra/smartmontools/PKGBUILD
@@ -4,7 +4,7 @@
 # Contributor: Jani Talikka <jani.talikka@gmail.com>
 
 pkgname=smartmontools
-pkgver=5.38
+pkgver=5.40
 pkgrel=1
 pkgdesc="Control and monitor S.M.A.R.T. enabled ATA and SCSI Hard Drives."
 url="http://smartmontools.sourceforge.net"
@@ -17,11 +17,15 @@ source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkg
 
 build()
 {
-  cd ${startdir}/src/${pkgname}-${pkgver}
-  ./configure --prefix=/usr --sysconfdir=/etc
+  cd ${srcdir}/${pkgname}-${pkgver}
+  ./configure --prefix=/usr --sysconfdir=/etc --includedir=/usr/src/linux-2.6.37-LinHES
   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
 }
-md5sums=('a282846532ecbd6b4a28072373b3a70b' '850f98b6792b7642ff193a49a2f1139d')
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  make DESTDIR=${pkgdir} install
+  rm -rf ${pkgdir}/etc/rc.d
+  install -D -m 755 ../smartd ${pkgdir}/etc/rc.d/smartd
+}
+md5sums=('0f0be0239914ad87830a4fff594bda5b'
+         '850f98b6792b7642ff193a49a2f1139d')
-- 
cgit v0.12