diff --git a/srcpkgs/smartmontools/files/smartd/finish b/srcpkgs/smartmontools/files/smartd/finish new file mode 100755 index 00000000000..85e568f0600 --- /dev/null +++ b/srcpkgs/smartmontools/files/smartd/finish @@ -0,0 +1,3 @@ +#!/bin/sh +# no devices found, disable smartd +[ $1 = 17 ] && sv d $(dirname $0) diff --git a/srcpkgs/smartmontools/files/smartd/run b/srcpkgs/smartmontools/files/smartd/run new file mode 100755 index 00000000000..1dc3cc9966a --- /dev/null +++ b/srcpkgs/smartmontools/files/smartd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec smartd -n diff --git a/srcpkgs/smartmontools/template b/srcpkgs/smartmontools/template index 550a77b62ac..b21bfe9e77e 100644 --- a/srcpkgs/smartmontools/template +++ b/srcpkgs/smartmontools/template @@ -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 " license="GPL-2" homepage="http://smartmontools.sourceforge.net" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" checksum=a777065d1a5965d71b3672e054b09b7696200ec73aaf45ab636f34016538fe19 + +post_install() { + vsv smartd +}