sane: add systemd service from systemd-arch-units.

This commit is contained in:
Juan RP 2012-05-18 11:15:44 +02:00
parent e9f3e32a8a
commit bb8122dd59
3 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,9 @@
[Unit]
Description=saned incoming socket
[Socket]
ListenStream=6566
Accept=yes
[Install]
WantedBy=sockets.target

View File

@ -0,0 +1,8 @@
[Unit]
Description=Scanner Service
[Service]
Group=scanner
ExecStart=/usr/sbin/saned
StandardInput=socket
StandardError=syslog

View File

@ -1,7 +1,7 @@
# Template build file for 'sane'.
pkgname=sane
version=1.0.22
revision=1
revision=2
patch_args="-Np1"
wrksrc="sane-backends-${version}"
distfiles="ftp://ftp2.sane-project.org/pub/sane/sane-backends-${version}/sane-backends-${version}.tar.gz"
@ -116,4 +116,7 @@ post_install() {
vinstall tools/udev/libsane.rules 644 /lib/udev/rules.d 53-sane.rules
# fix udev rules
sed -i 's|NAME="%k", ||g' ${DESTDIR}/lib/udev/rules.d/53-sane.rules
# Install systemd service.
vinstall ${FILESDIR}/saned@.service 644 lib/systemd/system
vinstall ${FILESDIR}/saned.socket 644 lib/systemd/system
}