sane: add systemd service from systemd-arch-units.
This commit is contained in:
parent
e9f3e32a8a
commit
bb8122dd59
3 changed files with 21 additions and 1 deletions
9
srcpkgs/sane/files/saned.socket
Normal file
9
srcpkgs/sane/files/saned.socket
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=saned incoming socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=6566
|
||||
Accept=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
8
srcpkgs/sane/files/saned@.service
Normal file
8
srcpkgs/sane/files/saned@.service
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Scanner Service
|
||||
|
||||
[Service]
|
||||
Group=scanner
|
||||
ExecStart=/usr/sbin/saned
|
||||
StandardInput=socket
|
||||
StandardError=syslog
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue