smartmontools: added runit service.

This commit is contained in:
Juan RP 2014-10-13 16:43:02 +02:00
parent 7c4fd8cbd9
commit 578650fe86
3 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
# no devices found, disable smartd
[ $1 = 17 ] && sv d $(dirname $0)

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec smartd -n

View File

@ -1,17 +1,21 @@
# Template file for 'smartmontools'
pkgname=smartmontools
version=6.3
revision=1
revision=2
build_style=gnu-configure
configure_args="--enable-drivedb --with-libcap-ng=yes
--with-drivedbdir=/var/db/${pkgname}"
makedepends="libcap-ng-devel"
conf_files="/etc/smartd.conf"
mutable_files="/var/db/smartmontools/drivedb.h"
systemd_services="smartd.service on"
replaces="runit-void<20141013_2"
short_desc="S.M.A.R.T Monitoring Tools"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://smartmontools.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=a777065d1a5965d71b3672e054b09b7696200ec73aaf45ab636f34016538fe19
post_install() {
vsv smartd
}