add systemd units to saned

This commit is contained in:
Samir 2012-06-23 15:55:34 +00:00
parent 611c6f3c5d
commit 8bb3768f76
2 changed files with 8 additions and 7 deletions

View File

@ -4,7 +4,7 @@
pkgname=sane
pkgver=1.0.22
pkgrel=1
pkgrel=2
pkgdesc="Scanner Access Now Easy"
url="http://www.sane-project.org"
arch=('i686' 'x86_64')
@ -65,10 +65,9 @@ package () {
install -D -m644 tools/sane-backends.pc \
"${pkgdir}/usr/lib/pkgconfig/sane-backends.pc"
# TODO: install systemd files , this conflicts with systemd-units
# and this will be removed later.
#install -D -m644 ${srcdir}/saned.socket \
# "${pkgdir}/usr/lib/systemd/system/saned.socket"
#install -D -m644 ${srcdir}/saned.service \
# "${pkgdir}/usr/lib/systemd/system/saned@.service"
# install systemd files
install -D -m644 ${srcdir}/saned.socket \
"${pkgdir}/usr/lib/systemd/system/saned.socket"
install -D -m644 ${srcdir}/saned.service \
"${pkgdir}/usr/lib/systemd/system/saned@.service"
}

View File

@ -30,4 +30,6 @@ package() {
rm "$pkgdir"/usr/lib/systemd/system/oss.service
rm "$pkgdir"/usr/lib/systemd/system/pommed.service
rm "$pkgdir"/usr/lib/systemd/system/postgresql.service
rm "$pkgdir"/usr/lib/systemd/system/saned@.service
rm "$pkgdir"/usr/lib/systemd/system/saned.socket
}