From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 21/54] samba: Export all printers from CUPS Date: Tue, 13 Oct 2020 16:07:39 +0000 Message-ID: <20201013160812.27754-21-michael.tremer@ipfire.org> In-Reply-To: <20201013160812.27754-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8286272242706892039==" List-Id: --===============8286272242706892039== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- config/rootfiles/packages/aarch64/samba | 1 + config/rootfiles/packages/armv5tel/samba | 1 + config/rootfiles/packages/i586/samba | 1 + config/rootfiles/packages/x86_64/samba | 1 + html/cgi-bin/samba.cgi | 6 ++++++ lfs/samba | 4 ++++ 6 files changed, 14 insertions(+) diff --git a/config/rootfiles/packages/aarch64/samba b/config/rootfiles/packa= ges/aarch64/samba index ad5ffb204..4ee93218e 100644 --- a/config/rootfiles/packages/aarch64/samba +++ b/config/rootfiles/packages/aarch64/samba @@ -807,6 +807,7 @@ var/lib/samba/bind-dns var/lib/samba/private var/lib/samba/winbindd_privileged var/nmbd +var/spool/samba srv/web/ipfire/cgi-bin/samba.cgi var/ipfire/menu.d/EX-samba.menu usr/local/bin/sambactrl diff --git a/config/rootfiles/packages/armv5tel/samba b/config/rootfiles/pack= ages/armv5tel/samba index 9d445db8f..471d81982 100644 --- a/config/rootfiles/packages/armv5tel/samba +++ b/config/rootfiles/packages/armv5tel/samba @@ -807,6 +807,7 @@ var/lib/samba/bind-dns var/lib/samba/private var/lib/samba/winbindd_privileged var/nmbd +var/spool/samba srv/web/ipfire/cgi-bin/samba.cgi var/ipfire/menu.d/EX-samba.menu usr/local/bin/sambactrl diff --git a/config/rootfiles/packages/i586/samba b/config/rootfiles/packages= /i586/samba index 0888fc6ed..73057db97 100644 --- a/config/rootfiles/packages/i586/samba +++ b/config/rootfiles/packages/i586/samba @@ -807,6 +807,7 @@ var/lib/samba/bind-dns var/lib/samba/private var/lib/samba/winbindd_privileged var/nmbd +var/spool/samba srv/web/ipfire/cgi-bin/samba.cgi var/ipfire/menu.d/EX-samba.menu usr/local/bin/sambactrl diff --git a/config/rootfiles/packages/x86_64/samba b/config/rootfiles/packag= es/x86_64/samba index 54afad4d2..1940211d6 100644 --- a/config/rootfiles/packages/x86_64/samba +++ b/config/rootfiles/packages/x86_64/samba @@ -807,6 +807,7 @@ var/lib/samba/bind-dns var/lib/samba/private var/lib/samba/winbindd_privileged var/nmbd +var/spool/samba srv/web/ipfire/cgi-bin/samba.cgi var/ipfire/menu.d/EX-samba.menu usr/local/bin/sambactrl diff --git a/html/cgi-bin/samba.cgi b/html/cgi-bin/samba.cgi index a9478a139..c0485b48d 100644 --- a/html/cgi-bin/samba.cgi +++ b/html/cgi-bin/samba.cgi @@ -198,6 +198,12 @@ logging =3D syslog preferred master =3D $sambasettings{'PREFERREDMASTER'} domain master =3D $sambasettings{'DOMAINMASTER'} local master =3D $sambasettings{'LOCALMASTER'} + +# Export all printers +[printers] +path =3D /var/spool/samba/ +printable =3D yes + END ; close FILE; diff --git a/lfs/samba b/lfs/samba index 5c527b257..38957cec9 100644 --- a/lfs/samba +++ b/lfs/samba @@ -110,6 +110,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) chmod 750 /var/lib/samba/winbindd_privileged chgrp wbpriv /var/lib/samba/winbindd_privileged =20 + # Create spool directory for print jobs + mkdir -p /var/spool/samba + chmod -v 1777 /var/spool/samba/ + #install initscripts $(call INSTALL_INITSCRIPT,samba) =20 --=20 2.20.1 --===============8286272242706892039==--