Install Avahi service file

This commit is contained in:
Arnaud Quette 2011-12-02 20:40:30 +01:00
parent 968d86eb02
commit 39af1601d0
3 changed files with 7 additions and 0 deletions

1
debian/changelog vendored
View File

@ -1,6 +1,7 @@
nut (2.6.2-2) UNRELEASED; urgency=low
* debian/nut-server.{install,manpages}: add richcomm_usb
* debian/nut-server.install, debian/rules: install Avahi service file
-- Arnaud Quette <aquette@debian.org> Thu, 03 Nov 2011 21:34:14 -0400

View File

@ -2,6 +2,7 @@ debian/tmp/sbin/upsd
debian/tmp/usr/share/nut/cmdvartab
debian/tmp/usr/share/nut/driver.list
debian/tmp/*/udev/
debian/tmp/etc/avahi/services/nut.service
debian/tmp/etc/nut/ups.conf
debian/tmp/etc/nut/upsd.conf
debian/tmp/etc/nut/upsd.users

5
debian/rules vendored
View File

@ -43,6 +43,11 @@ common-install-arch::
cp $(CURDIR)/scripts/misc/nut.bash_completion \
$(CURDIR)/debian/tmp/etc/bash_completion.d/nut
# install the avahi service file
mkdir -p $(CURDIR)/debian/tmp/etc/avahi/services
cp $(CURDIR)/scripts/avahi/nut.service \
$(CURDIR)/debian/tmp/etc/avahi/services
# install the default configuration
for f in $(CURDIR)/debian/tmp/etc/nut/*; do \
nf=`basename $${f} | sed 's/\(.*\).sample/\1/'`; \