blob: 8fe05b377e6ae8cce26948d2104cff7cbef57ca2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $Id: PKGBUILD 96222 2010-10-19 12:09:31Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: Jani Talikka <jani.talikka@gmail.com>
# Contributor: Ralf Barth <archlinux.org@haggy.org>
pkgname=smartmontools
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"
license=('GPL')
arch=('i686' 'x86_64' 'mips64el')
depends=('gcc-libs')
backup=('etc/smartd.conf'
'etc/conf.d/smartd')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz \
smartd.conf
smartd.rc)
md5sums=('0f0be0239914ad87830a4fff594bda5b'
'28c1b80c41dac52d433961dcfb4f70e0'
'fb30e07f87f2c1d99532e018291ad3e8')
build()
{
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-drivedb
make || return 1
}
package()
{
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR=${pkgdir}/ install || return 1
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
}
|