summaryrefslogtreecommitdiff
path: root/packaging
AgeCommit message (Collapse)AuthorFilesLines
2024-06-24packaging: Add missing quotes in smbprintAndreas Schneider1-1/+1
Found by Covscan. "Error: SHELLCHECK_WARNING (CWE-569): /usr/bin/smbprint:49:21: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it. 47| # Concat this with /.config to get the config file. 48| # 49|-> eval acct_file=\${$#} 50| spool_dir=$(dirname $acct_file) 51| config_file=$spool_dir/.config" Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Signed-off-by: Martin Schwenke <mschwenke@ddn.com> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Jun 24 07:14:54 UTC 2024 on atb-devel-224
2024-03-14packaging: Provide a systemd service file for samba-bgqdAndreas Schneider2-1/+18
There might be scenarios where the background queue daemon should be running all the time instead of being started on demand. This makes especially sense for bigger printing servers with a lot of printers. It takes ~1 sec to get a printer from cups, so a print server with 100 printers needs 100 seconds to update the printer_list.tdb. The service will be killed because of idle in the meantime. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15600 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Thu Mar 14 12:19:56 UTC 2024 on atb-devel-224
2023-06-23packaging:systemd: Fix code spellingAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2022-04-06ctdb-scripts: Drop uses of ctdbd_wrapperMartin Schwenke1-2/+2
The only value this now provides is use of a notification script to log when start/stop are called. This was used for debugging strange start/stop failures, which have not been recently seen. Also, systemd does a good job of logging start/stop. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2022-04-06packaging: move CTDB service file to top-levelVinit Agnihotri3-0/+32
Signed-off-by: Vinit Agnihotri <vagnihotri@ddn.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2022-02-24packaging: Reformat shell scriptsAndreas Schneider5-45/+47
shfmt -f packaging/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Feb 24 10:13:36 UTC 2022 on sn-devel-184
2020-05-12winbind.service: drop quotes from $WINBINDOPTIONS variableMarcos Mello1-1/+1
systemd parser splits arguments at whitespaces respecting quotes when necessary. Signed-off-by: Marcos Mello <marcosfrm@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue May 12 12:27:11 UTC 2020 on sn-devel-184
2020-05-12Drop NotifyAccess=all from systemd unitsMarcos Mello4-4/+0
The implicit NotifyAccess=main is enough since Samba daemons do not fork()/exit() anymore under systemd. Signed-off-by: Marcos Mello <marcosfrm@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2019-06-25packaging: Update READMEs to reflect current status.Karolin Seeger2-16/+0
Signed-off-by: Karolin Seeger <kseeger@samba.org> Reviewed-by: Björn Baumbach <bb@sernet.de> Autobuild-User(master): Karolin Seeger <kseeger@samba.org> Autobuild-Date(master): Tue Jun 25 12:09:39 UTC 2019 on sn-devel-184
2018-09-05packaging/wscript: update to handle waf 2.0.4Alexander Bokovoy1-2/+2
Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-08-03systemd: Only start smb when network interfaces are upOleksandr Natalenko1-1/+2
For smb, if the smb.conf contains explicit bindings to the network interfaces, the service must wait till network interfaces are up, otherwise the service won't be operational. The 0e571054a61e commit and the BZ 13184 have fixed this for nmb and samba, so do exactly the same here, for smb. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13559 Signed-off-by: Oleksandr Natalenko <oleksandr@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Aug 3 17:28:52 CEST 2018 on sn-devel-144
2018-01-16packaging: fix default systemd-dir path.Günther Deschner1-2/+2
https://bugzilla.samba.org/show_bug.cgi?id=13227 By default we should not end up with a /usr/usr/lib/systemd/system path. Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Tue Jan 16 21:02:28 CET 2018 on sn-devel-144
2018-01-14systemd: Fix kill pathMathieu Parent4-4/+4
Bug-Debian: https://bugs.debian.org/828730 BUG: https://bugzilla.samba.org/show_bug.cgi?id=12402 Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2018-01-14systemd: Add documentation to Unit filesMathieu Parent4-0/+4
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12402 Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2018-01-14systemd: syslog.target is obsoleteMathieu Parent4-4/+4
After=syslog.target is unnecessary by now because syslog is socket-activated and will therefore be started when needed. Ref: https://lintian.debian.org/tags/systemd-service-file-refers-to-obsolete-target.html BUG: https://bugzilla.samba.org/show_bug.cgi?id=12402 Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2018-01-08packaging: add configure option to preprocess and install systemd filesAurelien Aptel6-12/+82
Turn the systemd service files under packaging into template (.in) files with @VAR@ substitutions and add configure options to install and tweak them. Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2017-12-20systemd: Only start samba and nmbd when network interfaces are upAndreas Schneider2-2/+4
For samba and nmbd we need to wait till a network interface is up or they wont be operational. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13184 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Dec 20 04:21:51 CET 2017 on sn-devel-144
2017-11-28systemd: Start processes in forground and without a process groupAndreas Schneider4-4/+4
We should not double fork in notify mode or systemd think something during startup will be wrong and send SIGTERM to the process. So sometimes the daemon will not start up correctly. systemd will also handle the process group. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13129 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Nov 28 15:31:27 CET 2017 on sn-devel-144
2017-09-12packaging: Remove Solaris directory and contentsRowland Penny10-643/+0
Signed-off-by: Rowland Penny <rpenny@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Sep 12 06:46:35 CEST 2017 on sn-devel-144
2017-09-12packaging: Remove RHEL directory and contentsRowland Penny12-1236/+0
Signed-off-by: Rowland Penny <rpenny@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2017-09-12packaging: Remove RHEL-CTDB directory and contentsRowland Penny14-1405/+0
Signed-off-by: Rowland Penny <rpenny@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2017-05-10packaging: Remove MandrakeDavid Disseldorp1-3/+0
Mandriva was discontinued in 2011, and the link in the readme is dead. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed May 10 07:35:20 CEST 2017 on sn-devel-144
2017-05-10packaging: Remove SWAT references from SolarisAndreas Schneider7-102/+4
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2017-05-10packaging: Remove SWAT references from RHELAndreas Schneider2-57/+3
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2017-05-10packaging: Remove SWAT references from RHEL-CTDBAndreas Schneider3-52/+3
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2017-05-10packaging: Remove LSB packagingAndreas Schneider5-486/+0
This hasn't been touched since 2001. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2017-05-10packaging: Remove setup script for SWATAndreas Schneider1-27/+0
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2016-05-18packaging: Set default limit for core file size in service filesAnoop C S2-0/+2
This change adds the missing LimitCORE variable setting in nmb and winbind service files to have no limit for coredumps by default. Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Jose A. Rivera <jarrpa@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Wed May 18 19:26:49 CEST 2016 on sn-devel-144
2016-05-18packaging: Set default limit for core file size in init scriptsAnoop C S4-0/+8
SysV init scripts used for initiating smb and winbind services determines the value for default limit of coredump from variable named DAEMON_COREFILE_LIMIT within a bash env. Therefore this patch explicitly sets this variable to 'unlimited' so as to have no limit for core file size by default. Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Jose A. Rivera <jarrpa@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
2016-05-18packaging: Remove ulimit usage for setting core file size limitAnoop C S2-2/+0
Recent commit ebd139c4db7e51a2d7843a773991f15cadf504dd modified smb.init to set core file size to 'unlimited' by default using the ulimit command. But when smb and winbind services are initiated via sysv init scripts, another variable named DAEMON_COREFILE_LIMIT takes higher priority in deciding the core file size. Therefore setting default value using ulimit command is useless. Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Jose A. Rivera <jarrpa@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
2016-05-06init: set core file size to unlimited by defaultRaghavendra Talur3-0/+3
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11907 Signed-off-by: Raghavendra Talur <rtalur@redhat.com> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jose A. Rivera <jarrpa@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Fri May 6 19:15:17 CEST 2016 on sn-devel-144
2015-11-13s3: smbd: Remove --with-aio-support. We no longer would ever prefer POSIX-RT ↵Jeremy Allison2-3/+0
aio, use pthread_aio instead. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2015-11-11vfs: Remove smb_traffic_analyzerVolker Lendecke2-5/+0
Holger Hetterich told me in a personal email that he does not have time to care about this project anymore and that he is fine to remove it from Samba. Why the removal? It contains homegrown crypto that would need to be thoroughly audited and/or fixed. And if it's neither maintained nor widely used I'd rather have it removed. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Nov 11 00:23:35 CET 2015 on sn-devel-104
2015-11-06spec files: remove pam_smbpassAlexander Bokovoy3-7/+2
Remove remaining pam_smbpass options from RHEL spec file templates. Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-08-21vfs_scannedonly: Remove vfs_scannedonly from samba source tree.Robin Hack1-1/+0
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11459 Signed-off-by: Robin Hack <hack.robin@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Aug 21 07:17:35 CEST 2015 on sn-devel-104
2015-03-24smbd: Convert valid.dat to C codeVolker Lendecke2-5/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-03-24lib: Convert [up|low]case.dat to CVolker Lendecke2-3/+1
This creates a bit more source code, but it removes the requirement to explicitly mmap the files Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-02-10Update mailing list references to point at lists.samba.orgAndrew Bartlett2-2/+2
The mailing lists are on lists.samba.org, but there are many references that use the shorthand of samba.org Some references to samba@ have been changed to samba-technical@ where this make more sense. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Feb 10 07:08:28 CET 2015 on sn-devel-104
2015-02-10Remove obsolete SGI packagingAndrew Bartlett22-1679/+0
This has not worked since before the source3 and source4 trees were imported many years ago Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2014-12-04s3: leases: libsmbsharemodes no longer works with SMB2 leases inside our ↵Jeremy Allison3-6/+0
locking.tdb. Remove it until a maintainer can be found. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-04-23add systemd integrationAlexander Bokovoy4-4/+8
Add --with-systemd / --without-systemd options to check whether libsystemd-daemon library is available and use it to report service startup status to systemd for smbd/winbindd/nmbd and AD DC. The problem it solves is correct reporting of the Samba services at the point when they are ready to serve clients, important for high availability software integration. BUG: https://bugzilla.samba.org/show_bug.cgi?id=10517 Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2013-06-11Remove remaining references to "password level" in the treeAndrew Bartlett1-1/+0
Reviewed-by: Simo Sorce <idra@samba.org> Autobuild-User(master): Simo Sorce <idra@samba.org> Autobuild-Date(master): Tue Jun 11 16:25:54 CEST 2013 on sn-devel-104
2013-05-25building RPMs on RHEL fail because of a typo.Anand Avati1-1/+1
Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Simo Sorce <idra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat May 25 01:04:37 CEST 2013 on sn-devel-104
2013-04-22docs: Fix bug 9809 -- missing entry in specfileVolker Lendecke1-0/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Karolin Seeger <kseeger@samba.org> Autobuild-User(master): Karolin Seeger <kseeger@samba.org> Autobuild-Date(master): Mon Apr 22 11:35:52 CEST 2013 on sn-devel-104
2013-03-09packaging(RHEL-CTDB): Add idmap_rfc2307 moduleChristof Schmitt1-1/+1
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-02-22Make systemctl reference indirect in packaging/NetworkManager/30-winbind-systemdAlexander Bokovoy1-4/+4
Some distributions have clever dependency generators when building packages and generate dependencies for each executable called out in shell scripts. The end result is that a package built out of samba would contain explicit dependency to systemd even though it is usable without systemd. Making systemctl reference indirect avoids explicit dependency. Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Fri Feb 22 18:18:20 CET 2013 on sn-devel-104
2013-02-19packaging(RHEL-CTDB): remove unpackaged manpages (samba and samba-tool)Michael Adam1-0/+2
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-02-19packaging(RHEL-CTDB): package the fake-acls vfs moduleMichael Adam1-0/+1
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2012-11-22packaging: Remove long-gone --disable-merged-build from RHEL-CTDB packagingAndrew Bartlett2-2/+0
Reviewed-by: Andreas Schneider <asn@samba.org>
2012-11-22build: Remove --enable-smbtorture, require bin/smbtorture (from waf) for ↵Andrew Bartlett2-2/+0
make test This simply moves this to being a side-effect of --enable-selftest. The flag was renamed from --enable-smbtorture4 in a recent patch. Make test now relies on smbtorture4, and so this code to make the dependency optional for the tests is not required any more. Andrew Bartlett Reviewed-by: Andreas Schneider <asn@samba.org>