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
2 changed files with 13 additions and 0 deletions
1
srcpkgs/samba-cups
Symbolic link
1
srcpkgs/samba-cups
Symbolic link
|
@ -0,0 +1 @@
|
|||
samba
|
|
@ -83,6 +83,10 @@ post_install() {
|
|||
# Install pkg-config files.
|
||||
vmkdir 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() {
|
||||
|
@ -119,3 +123,11 @@ samba-devel_package() {
|
|||
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 a new issue