mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
smartmontools: added runit service.
This commit is contained in:
parent
7c4fd8cbd9
commit
578650fe86
3 changed files with 11 additions and 2 deletions
3
srcpkgs/smartmontools/files/smartd/finish
Executable file
3
srcpkgs/smartmontools/files/smartd/finish
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# no devices found, disable smartd
|
||||||
|
[ $1 = 17 ] && sv d $(dirname $0)
|
2
srcpkgs/smartmontools/files/smartd/run
Executable file
2
srcpkgs/smartmontools/files/smartd/run
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec smartd -n
|
|
@ -1,17 +1,21 @@
|
||||||
# Template file for 'smartmontools'
|
# Template file for 'smartmontools'
|
||||||
pkgname=smartmontools
|
pkgname=smartmontools
|
||||||
version=6.3
|
version=6.3
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-drivedb --with-libcap-ng=yes
|
configure_args="--enable-drivedb --with-libcap-ng=yes
|
||||||
--with-drivedbdir=/var/db/${pkgname}"
|
--with-drivedbdir=/var/db/${pkgname}"
|
||||||
makedepends="libcap-ng-devel"
|
makedepends="libcap-ng-devel"
|
||||||
conf_files="/etc/smartd.conf"
|
conf_files="/etc/smartd.conf"
|
||||||
mutable_files="/var/db/smartmontools/drivedb.h"
|
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"
|
short_desc="S.M.A.R.T Monitoring Tools"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
homepage="http://smartmontools.sourceforge.net"
|
homepage="http://smartmontools.sourceforge.net"
|
||||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||||
checksum=a777065d1a5965d71b3672e054b09b7696200ec73aaf45ab636f34016538fe19
|
checksum=a777065d1a5965d71b3672e054b09b7696200ec73aaf45ab636f34016538fe19
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vsv smartd
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue