network-ups-tools: enable avahi/neon support, install conf_files properly.
This commit is contained in:
parent
244e5637cf
commit
f706b1b836
|
@ -1,12 +1,15 @@
|
|||
# Template file for 'network-ups-tools'
|
||||
pkgname=network-ups-tools
|
||||
version=2.6.5
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--sbindir=/usr/bin --sysconfdir=/etc/ups --without-doc
|
||||
--datadir=/usr/share/ups --with-user=nut --with-group=nut --with-ssl --with-serial
|
||||
--with-usb --with-udev-dir=/usr/lib/udev --with-systemdsystemunitdir=/lib/systemd/system"
|
||||
makedepends="openssl-devel libusb-compat-devel"
|
||||
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"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="avahi-libs-devel openssl-devel libusb-compat-devel systemd-devel neon-devel"
|
||||
short_desc="NUT provides UPS control and monitoring features"
|
||||
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
|
||||
license="GPL-2"
|
||||
|
@ -15,9 +18,26 @@ distfiles="http://www.networkupstools.org/source/2.6/nut-$version.tar.gz"
|
|||
checksum=618df71cf1ca6e3700d1d3c282773a2dec85f9f20324c0d3234c824e97feb93f
|
||||
wrksrc="nut-${version}"
|
||||
|
||||
post_install() {
|
||||
# remove unused stuff
|
||||
rm -rf ${DESTDIR}/usr/{include,html,cgi-bin,lib/pkgconfig}
|
||||
# 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,}
|
||||
}
|
||||
|
||||
network-ups-tools_package() {
|
||||
system_accounts="nut"
|
||||
depends="shadow"
|
||||
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"
|
||||
pkg_install() {
|
||||
vmove all
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue