samba: link cups smb backend
Create new subpackage samba-cups, with a symlink from /usr/bin/smbpool to /usr/lib/cups/backend/smb - allows cups to use smb to find Windows printers.
This commit is contained in:
parent
c674e81f8c
commit
46a861ed02
|
@ -0,0 +1 @@
|
||||||
|
samba
|
|
@ -83,6 +83,10 @@ post_install() {
|
||||||
# Install pkg-config files.
|
# Install pkg-config files.
|
||||||
vmkdir usr/lib/pkgconfig
|
vmkdir usr/lib/pkgconfig
|
||||||
install -m644 source3/pkgconfig/*.pc ${DESTDIR}/usr/lib/pkgconfig
|
install -m644 source3/pkgconfig/*.pc ${DESTDIR}/usr/lib/pkgconfig
|
||||||
|
|
||||||
|
# Link cups backend
|
||||||
|
vmkdir usr/lib/cups/backend
|
||||||
|
ln -s /usr/bin/smbspool ${DESTDIR}/usr/lib/cups/backend/smb
|
||||||
}
|
}
|
||||||
|
|
||||||
smbclient_package() {
|
smbclient_package() {
|
||||||
|
@ -119,3 +123,11 @@ samba-devel_package() {
|
||||||
vmove usr/lib/libsmbclient.so
|
vmove usr/lib/libsmbclient.so
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
samba-cups_package() {
|
||||||
|
depends="${sourcepkg}-${version}_${revision}"
|
||||||
|
short_desc="SMB backend for cups"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/cups/backend/smb
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue