network-ups-tools: added runit services.

This commit is contained in:
Juan RP 2014-10-13 14:42:23 +02:00
parent 656569a0ad
commit dfdc1e9951
4 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,4 @@
#!/bin/sh
# Network UPS Tools - information server
# upsmon will run in the foreground and prints information on stdout
exec upsd -D

View File

@ -0,0 +1,3 @@
#!/bin/sh
# Network UPS Tools - driver controller
exec upsdrvctl -D start

View File

@ -0,0 +1,4 @@
#!/bin/sh
# Network UPS Tools - monitor and shutdown controller
# upsmon will run in the foreground and prints information on stdout
exec upsmon -D

View File

@ -1,7 +1,7 @@
# Template file for 'network-ups-tools'
pkgname=network-ups-tools
version=2.7.2
revision=3
revision=4
build_style=gnu-configure
configure_args="
--sbindir=/usr/bin --sysconfdir=/etc/ups --without-doc --disable-static
@ -11,6 +11,7 @@ configure_args="
hostmakedepends="pkg-config"
makedepends="avahi-libs-devel libressl-devel libusb-compat-devel neon-devel"
system_accounts="nut"
replaces="runit-void<20141013_2"
conf_files="
/etc/ups/ups.conf
/etc/ups/upsd.users
@ -44,6 +45,11 @@ post_install() {
mv ${DESTDIR}/etc/ups/${f}.conf{.sample,}
done
mv ${DESTDIR}/etc/ups/upsd.users{.sample,}
# runit services
vsv upsd
vsv upsmon
vsv upsdrvctl
}
libnetwork-ups-tools_package() {
@ -52,7 +58,6 @@ libnetwork-ups-tools_package() {
vmove "usr/lib/*.so.*"
}
}
network-ups-tools-devel_package() {
short_desc+=" - development files"
depends="lib${sourcepkg}>=${version}_${revision}"