2013-02-20 09:36:50 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
# contributor https://www.archlinux.org/packages/extra/x86_64/smartmontools/
|
|
|
|
|
|
|
|
pkgname=smartmontools
|
2013-10-20 18:42:01 +08:00
|
|
|
pkgver=6.2
|
2013-02-20 09:36:50 +08:00
|
|
|
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=('x86_64')
|
|
|
|
depends=('gcc-libs' 'libcap' 'bash')
|
|
|
|
backup=('etc/smartd.conf'
|
|
|
|
'etc/conf.d/smartd')
|
|
|
|
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
|
|
|
'smartd.conf')
|
2013-10-20 18:42:01 +08:00
|
|
|
md5sums=('d44f84081a12cef79cd17f78044351fc'
|
2013-02-20 09:36:50 +08:00
|
|
|
'28c1b80c41dac52d433961dcfb4f70e0')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--enable-drivedb \
|
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
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 -Dm644 ${srcdir}/smartd.conf "${pkgdir}/etc/conf.d/smartd"
|
|
|
|
}
|