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 nut (2.6.2-2) UNRELEASED; urgency=low
* debian/nut-server.{install,manpages}: add richcomm_usb * 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 -- 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/cmdvartab
debian/tmp/usr/share/nut/driver.list debian/tmp/usr/share/nut/driver.list
debian/tmp/*/udev/ debian/tmp/*/udev/
debian/tmp/etc/avahi/services/nut.service
debian/tmp/etc/nut/ups.conf debian/tmp/etc/nut/ups.conf
debian/tmp/etc/nut/upsd.conf debian/tmp/etc/nut/upsd.conf
debian/tmp/etc/nut/upsd.users 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 \ cp $(CURDIR)/scripts/misc/nut.bash_completion \
$(CURDIR)/debian/tmp/etc/bash_completion.d/nut $(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 # install the default configuration
for f in $(CURDIR)/debian/tmp/etc/nut/*; do \ for f in $(CURDIR)/debian/tmp/etc/nut/*; do \
nf=`basename $${f} | sed 's/\(.*\).sample/\1/'`; \ nf=`basename $${f} | sed 's/\(.*\).sample/\1/'`; \