void-packages/srcpkgs/network-ups-tools/template

55 lines
1.6 KiB
Text
Raw Normal View History

2013-09-29 16:18:53 +00:00
# Template file for 'network-ups-tools'
pkgname=network-ups-tools
version=2.7.2
2014-07-15 07:34:09 +00:00
revision=2
2013-09-29 16:18:53 +00:00
build_style=gnu-configure
configure_args="
--sbindir=/usr/bin --sysconfdir=/etc/ups --without-doc --disable-static
--datadir=/usr/share/ups --with-user=nut --with-group=nut --with-ssl
--with-usb --without-dev --with-serial -with-avahi --with-udev-dir=/usr/lib/udev
--with-systemdsystemunitdir=/lib/systemd/system --without-libltdl --without-ipmi
--without-freeipmi"
hostmakedepends="pkg-config"
2014-07-15 07:34:09 +00:00
makedepends="avahi-libs-devel libressl-devel libusb-compat-devel systemd-devel neon-devel"
system_accounts="nut"
conf_files="
/etc/ups/ups.conf
/etc/ups/upsd.users
/etc/ups/upsmon.conf
/etc/ups/upsd.conf
/etc/ups/upssched.conf
/etc/ups/nut.conf"
2013-09-29 16:18:53 +00:00
short_desc="NUT provides UPS control and monitoring features"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="GPL-2"
homepage="http://www.networkupstools.org/"
distfiles="http://www.networkupstools.org/source/2.7/nut-$version.tar.gz"
checksum=4d5365359b059d96dfcb77458f361a114d26c84f1297ffcd0c6c166f7200376d
2013-09-29 16:18:53 +00:00
wrksrc="nut-${version}"
post_install() {
# remove unused stuff
rm -rf ${DESTDIR}/usr/{html,cgi-bin}
# Prepare configuration files
for f in ups upsd upsmon upssched nut; do
mv ${DESTDIR}/etc/ups/${f}.conf{.sample,}
done
mv ${DESTDIR}/etc/ups/upsd.users{.sample,}
}
libnetwork-ups-tools_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
network-ups-tools-devel_package() {
short_desc+=" - development files"
depends="lib${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove "usr/lib/*.so"
}
}