cups-filters: add a runit service for cups-browsed(8).

This commit is contained in:
Juan RP 2015-04-08 17:37:39 +02:00
parent f02b80cc3c
commit 2ce3149b49
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
sv check avahi-daemon >/dev/null || exit 1
exec cups-browsed

View File

@ -1,10 +1,10 @@
# Template file for 'cups-filters'
pkgname=cups-filters
version=1.0.67
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-static --with-rcdir=no --enable-avahi
--with-browseremoteprotocols=DNSSD,CUPS"
--with-browseremoteprotocols=DNSSD,CUPS --sbindir=/usr/bin"
hostmakedepends="pkg-config ghostscript poppler-utils"
makedepends="lcms2-devel libpng-devel libqpdf-devel
poppler-cpp-devel fontconfig-devel avahi-glib-libs-devel
@ -28,6 +28,8 @@ replaces="foomatic-filters>=0"
post_install() {
if [ "$build_option_systemd" ]; then
vinstall utils/cups-browsed.service 644 usr/lib/systemd/system
else
vsv cups-browsed
fi
}