network-ups-tools: change config location
This commit is contained in:
parent
83d7dd4096
commit
0dc65f5974
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'network-ups-tools'
|
# Template file for 'network-ups-tools'
|
||||||
pkgname=network-ups-tools
|
pkgname=network-ups-tools
|
||||||
version=2.7.2
|
version=2.7.2
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="
|
configure_args="
|
||||||
--sbindir=/usr/bin --sysconfdir=/etc/ups --without-doc --disable-static
|
--sbindir=/usr/bin --sysconfdir=/etc/ups --without-doc --disable-static
|
||||||
|
@ -12,12 +12,12 @@ hostmakedepends="pkg-config"
|
||||||
makedepends="avahi-libs-devel libressl-devel libusb-compat-devel neon-devel"
|
makedepends="avahi-libs-devel libressl-devel libusb-compat-devel neon-devel"
|
||||||
system_accounts="nut"
|
system_accounts="nut"
|
||||||
conf_files="
|
conf_files="
|
||||||
/etc/ups/ups.conf
|
/etc/nut/ups.conf
|
||||||
/etc/ups/upsd.users
|
/etc/nut/upsmon.conf
|
||||||
/etc/ups/upsmon.conf
|
/etc/nut/upsd.conf
|
||||||
/etc/ups/upsd.conf
|
/etc/nut/upssched.conf
|
||||||
/etc/ups/upssched.conf
|
/etc/nut/nut.conf
|
||||||
/etc/ups/nut.conf"
|
/etc/nut/upsd.users"
|
||||||
short_desc="NUT provides UPS control and monitoring features"
|
short_desc="NUT provides UPS control and monitoring features"
|
||||||
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
|
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
|
@ -41,9 +41,9 @@ post_install() {
|
||||||
rm -rf ${DESTDIR}/usr/{html,cgi-bin}
|
rm -rf ${DESTDIR}/usr/{html,cgi-bin}
|
||||||
# Prepare configuration files
|
# Prepare configuration files
|
||||||
for f in ups upsd upsmon upssched nut; do
|
for f in ups upsd upsmon upssched nut; do
|
||||||
mv ${DESTDIR}/etc/ups/${f}.conf{.sample,}
|
mv ${DESTDIR}/etc/nut/${f}.conf{.sample,}
|
||||||
done
|
done
|
||||||
mv ${DESTDIR}/etc/ups/upsd.users{.sample,}
|
mv ${DESTDIR}/etc/nut/upsd.users{.sample,}
|
||||||
}
|
}
|
||||||
|
|
||||||
libnetwork-ups-tools_package() {
|
libnetwork-ups-tools_package() {
|
||||||
|
|
Loading…
Reference in New Issue