summaryrefslogtreecommitdiff
path: root/extra/smartmontools
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-24 00:04:12 +0000
committerroot <root@rshg054.dnsready.net>2012-06-24 00:04:12 +0000
commit4319f36e44d4e7c70bf010c3286bb1739c59d4de (patch)
tree570e5a756192067d69cbabeab8fcf6b81cec3c51 /extra/smartmontools
parent11357a5ab02a7d536375fb8333b2fb67278b4a36 (diff)
Sun Jun 24 00:04:11 UTC 2012
Diffstat (limited to 'extra/smartmontools')
-rw-r--r--extra/smartmontools/PKGBUILD18
1 files changed, 11 insertions, 7 deletions
diff --git a/extra/smartmontools/PKGBUILD b/extra/smartmontools/PKGBUILD
index 158ee6bd1..9c330fefc 100644
--- a/extra/smartmontools/PKGBUILD
+++ b/extra/smartmontools/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 145192 2011-12-19 12:38:49Z giovanni $
+# $Id: PKGBUILD 162164 2012-06-22 12:59:46Z dreisner $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: Jani Talikka <jani.talikka@gmail.com>
@@ -6,12 +6,12 @@
pkgname=smartmontools
pkgver=5.42
-pkgrel=3
+pkgrel=4
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' 'libcap-ng')
+depends=('gcc-libs' 'libcap-ng' 'bash')
backup=('etc/smartd.conf'
'etc/conf.d/smartd')
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
@@ -27,16 +27,20 @@ build() {
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-drivedb \
- --with-libcap-ng=yes
+ --with-libcap-ng=yes \
+ --with-systemdsystemunitdir=/usr/lib/systemd/system
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR=${pkgdir}/ install
+ sed -i -e "s:sysconfig/smartmontools:conf.d/smartd:g" smartd.service
+ sed -i -e "s:smartd_opts:SMARTD_ARGS:g" smartd.service
+
+ 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
+ install -Dm755 ${srcdir}/smartd.rc "${pkgdir}/etc/rc.d/smartd"
+ install -Dm644 ${srcdir}/smartd.conf "${pkgdir}/etc/conf.d/smartd"
}