summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/samba
Commit message (Collapse)AuthorAgeFilesLines
* Samba: use built-in libteventSzombathelyi György2017-02-221-2/+2
| | | | | | | | | | Since Samba uses libtevent-internal.h in some places, it is incompatible with external libtevent versions if they're not the same as the built-in, and just crashes. Signed-off-by: Gyorgy Szombathelyi <gyurco@freemail.hu> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* waf-samba.bbclass: fix build error with PARALLEL_MAKE="-j X -l Y"Andreas Oberritter2017-01-191-1/+0
| | | | | | | | | Waf doesn't handle -l. Use a function already provided by waf.bbclass in OE-Core. Inheriting waf.bbclass also makes overriding DISABLE_STATIC redundant, so drop it from recipes inheriting waf-samba. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* samba: conditionalize sed call for onnodeAndreas Oberritter2017-01-191-1/+3
| | | | | | | | sed: can't read .../4.4.5-r0/image/usr/bin/onnode: No such file or directory Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* samba: simplify LSB handlingAndreas Oberritter2016-12-171-8/+5
| | | | | Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: start on boot with systemdAndreas Oberritter2016-12-171-0/+4
| | | | | Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: move /etc/sysconfig to more common /etc/default, package tmpfiles.d ↵Andreas Oberritter2016-12-171-3/+6
| | | | | | | in samba-common Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: add packages samba-dsdb-modules, samba-testsuite and registry-toolsAndreas Oberritter2016-12-171-0/+14
| | | | | | | Inspired by Debian. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: split libraries into their own packagesAndreas Oberritter2016-12-171-104/+30
| | | | | | | | | | It's quite hard to track library dependencies manually between releases. Splitting libraries into their own packages creates some overhead but effectively uses less storage in minimal installations. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: simplify files list for samba-pythonAndreas Oberritter2016-12-171-17/+1
| | | | | Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: install manpagesAndreas Oberritter2016-12-171-0/+9
| | | | | Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: add smbclient packageAndreas Oberritter2016-12-171-4/+15
| | | | | Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: install systemd units and initscripts unconditionallyAndreas Oberritter2016-12-161-11/+10
| | | | | | | Fixes hybrid systemd/sysvinit setups. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: rename initscript from 'samba.sh' to more common 'samba'Andreas Oberritter2016-12-161-5/+5
| | | | | | | This gets masked automatically by samba.service if systemd is running. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: install all systemd unit filesAndreas Oberritter2016-12-141-3/+2
| | | | | | | | This includes samba.service, which other major distributions install, too. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: remove superflous listing of pam_smbpass.soAndreas Oberritter2016-12-141-4/+1
| | | | | | | | | EXTRA_OECONF includes --with-pammodulesdir=${base_libdir}/security when pam is enabled. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: use systemd_system_unitdir variableAndreas Oberritter2016-12-141-8/+7
| | | | | | Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: remove unneeded conditionals for sysvinit and systemdAndreas Oberritter2016-12-141-8/+4
| | | | | | | | systemd.bbclass takes care of deleting unused startup scripts. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: use default packaging rules for -dbg and -dev packagesAndreas Oberritter2016-12-141-30/+4
| | | | | | | | There's no need to create multiple packages. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: Avoid timeout for nmbd if started offline with systemdAndreas Oberritter2016-12-142-0/+32
| | | | | | | | | | If no network connection appears within DefaultTimeoutStartSec (~ 90s) after startup, nmbd fails to notify systemd and will therefore get killed. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: fix the hardcoded path in init scriptJackie Huang2016-12-141-0/+1
| | | | | | | | | | | | Replace the hardcoded path with base_bindir in init script to fix the error: /etc/init.d/samba.sh: line 15: /usr/bin/ps: No such file or directory /etc/init.d/samba.sh: line 17: /usr/bin/sed: No such file or directory /etc/init.d/samba.sh: line 16: /usr/bin/grep: No such file or directory Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: correct sub-package name for multilibKai Kang2016-12-141-2/+2
| | | | | | | | | The name of sub-package lib${PN}-base is not right when extended by multilib. Correct it by replace ${PN} with ${BPN}. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: Fix qa issue and update ctdb-testsKai Kang2016-12-141-1/+16
| | | | | | | | | | | | | | | | | | Fix file-rdeps QA warning by replace shell interpreter of script ${bindir}/onnode with /bin/sh that it doesn't has any bashism. File ${bindir}/ctdb_run_cluster_tests which is a link to ${bindir}/ctdb_run_tests is split into package samba. That causes wrong runtime dependency that samba depends on samba-ctdb-tests. Split the file to samba-ctdb-tests to fix the issue. Script ctdb_run_tests calls command 'getopt', so add runtime dependency util-linux-getopt. Install config file and test cases for samba-ctdt-tests at same time. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: Fix build with muslKhem Raj2016-12-143-0/+130
| | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: replace pam packageconfig by hard dependencyAndreas Müller2016-10-201-4/+3
| | | | | | | | | | | | | samba links against libpam even if pam is not in packageconfig and libpam was built before. This patch avoid this floating dependency - other solution could not be found. For those who want packageconfig back, see discussion iat [1] for further inspiration. [1] http://lists.openembedded.org/pipermail/openembedded-devel/2016-September/109143.html Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: un-blacklistJoe MacDonald2016-10-201-5/+0
| | | | | | | | Commit b60c60806e57f69233db582ef88d113867c2ecd1 resolves the linking issue, later commits (mainly 12a118989296d13e036d0daa9f9a3d45eee03ded) resolve the packaging issue, so re-enable samba for everyone. Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: fix build by linking with bfd instead of goldAndreas Müller2016-09-121-1/+1
| | | | | | | | Use this workaround as long as there is no better (upstream) fix Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: fix to package pidl in samba-pidlMingli Yu2016-09-121-1/+1
| | | | | | | | | | | | * Use =+ to replace the previous += to let samba-pidl do package before samba to guarantee the file /usr/bin/pidl packaged in samba-pidl as both samba and samba-pidl have rules to package /usr/bin/pidl and the command pidl depends on perl modules such as Parse/Pidl.pm resides in samba-pidl Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: blacklist, fails to build with new binutils-2.27Martin Jansa2016-09-051-0/+5
| | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: upgrade to 4.4.5Jackie Huang2016-08-169-83/+32
| | | | | | | | | | | | | | | * This is a security release in order to address the following defect: - CVE-2016-2119 (Client side SMB2/3 required signing can be downgraded) * Detail release note: - https://www.samba.org/samba/history/samba-4.4.5.html * Removed part of the 10-use-only-libsystemd.patch which has been fixed in new version. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: remove ${localstatedir}/logRobert Yang2016-08-161-2/+1
| | | | | | | | | | | | | | Fixed do_package error: WARNING: samba-4.4.2-r0 do_package: FILES contains file '/var/log/samba' which resides under a directory symlink. Please fix the recipe and use the real path for the file. ERROR: samba-4.4.2-r0 do_package: File './var/log/samba' cannot be packaged into 'samba-base' because its parent directory structure does not exist. One of its parent directories is a symlink whose target directory is not included in the package. ERROR: samba-4.4.2-r0 do_package: Function failed: populate_packages It has a file ${sysconfdir}/tmpfiles.d/samba.conf which will create /var/log/samba when systemd, and volatiles.03_samba when sysvinit. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: inherit update-rc.d to manage init scriptJackie Huang2016-08-051-5/+4
| | | | | | | | | | | inherit update-rc.d to manage init script, so we can avoid duplicating the update-rc.d commands, and the default behavior can be easily overridden by distro. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* Samba: use only libsystemdSzombathelyi György2016-07-072-0/+82
| | | | | | | | This patch was disappeared while moved to 4.4.2 Signed-off-by: Gyorgy Szombathelyi <gyurco@freemail.hu> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* meta-networking: use bb.utils.contains() instead of base_contains()Ross Burton2016-05-051-3/+3
| | | | | | | | | base_contains() is a compatibility wrapper and may warn in the future, so replace all instances with bb.utils.contains(). Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: remove dependency on ctdbMark Asselstine2016-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | During rootfs creation the following error is being hit Preparing... ######################################## [ 0%] warning: Removing ctdb-2.5.1-r0@core2_64 due to file /usr/bin/ctdb conflicting with samba-4.4.2-r0@core2_64 error: ctdb-dev-2.5.1-r0 conflicts with ctdb = 2.5.1-r0 Looking at the relationship between samba and ctdb it appears that the landscape has changed some starting in version 4.2. Samba now includes and installs ctdb instead of relying on stand-alone ctdb. Referencing https://wiki.samba.org/index.php/CTDB_Setup we see this activated by '--with-cluster-support' which we do pass to configure based on the bb. Dropping the DEPENDS on ctdb resolves this issue. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: fix paths in sysv initscriptRichard Leitner2016-04-291-0/+5
| | | | | | | | | | | | The sysv initscript provided by samba assumes smbd and nmbd are installed in /opt/samba/bin/. In our case both binaries are installed to /usr/sbin/ by default. Therefore fix these paths. Furthermore fix the log and config directory as well as the name of the initscript in its usage text. Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: fix QA warnings.Armin Kuster2016-04-291-1/+4
| | | | | | | | | | | | | | V2: Fix WARN: samba: samba rdepends on libarchive, but it isn't a build dependency? V1: WARNING: samba-4.4.2-r0 do_package_qa: QA Issue: samba rdepends on libaio, but it isn't a build dependency, missing libaio in DEPENDS or PACKAGECONFIG? [build-deps] WARNING: samba-4.4.2-r0 do_package_qa: QA Issue: samba rdepends on lttng-ust, but it isn't a build dependency, missing lttng-ust in DEPENDS or PACKAGECONFIG? [build-deps] Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: add volatile file to support readonly rootfsJohannes Pointner2016-04-202-0/+5
| | | | | | | | | | This patch adds a volatile file for samba which was removed by the update from 3.6.25 to 4.1.12. This file is necessary to build a image that uses the read-only-rootfs feature. Signed-off-by: Johannes Pointner <johannes.pointner@br-automation.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: Update to latest stableJoe MacDonald2016-04-2032-35585/+81
| | | | | | | | | The previous version of Samba had many critical security updates that would've required significant backporting effort. Update to the latest stable release instead. Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* samba: Fix typo in PACKAGECONFIG for "acl" and "aio"mike.looijmans@topic.nl2016-02-291-2/+2
| | | | | | | | | | | | There's a "-" too many in PACKAGECONFIG[acl] and PACKAGECONFIG[aio] resulting in errors like this if built without acl: waf: error: no such option: ---without-acl-support Remove the extra "-" to fix the issue. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: update systemd service filesKai Kang2016-02-291-3/+1
| | | | | | | | | | Update systemd service files of samba. There are no '@BASE_BINDIR@' and '@SBINDIR@' in these service files, so drop the original replacement. Command kill is installed to /bin/kill, then correct in the service files. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: Fix build when static libs disabledJoe MacDonald2016-02-221-0/+1
| | | | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* fix missing packageconfig for samba with sysvinitStephano Cetola2016-02-221-0/+1
| | | | | | | | | Building samba with sysvinit currently throws a QA warning about "invalid PACKAGECONFIG: sysv". This fixes that issue. Signed-off-by: Stephano Cetola <stephanoc@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* recipes-connectivity/samba: Only rmdir directories that existmike.looijmans@topic.nl2016-01-201-2/+6
| | | | | | | | | | | | | | Depending on PACKAGECONFIG selection, the /run/samba directory may not have been created. Make the do_install_append handle both situations by checking whether these directories exist before attempting to remove them. This fixes do_install failing with an error like this: rmdir: failed to remove '/.../samba/4.1.12-r0/image/run/samba': No such file or directory Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: backport patches for cross-compilingJackie Huang2016-01-208-0/+554
| | | | | | | | | | | | | | | | * Adds a new mode for samba cross-compiling: When both --cross-answers and --cross-execute are set, this means: - Use cross-answers - If answer is unknown, then instead of adding UNKNOWN to the cross-answers file and failing configure, the new mode runs cross-execute to determine the answer and adds that to the cross-answers file. * And some fixes and improvements for cross-compiling. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: fix the incorrect tmpfiles installed directoryJackie Huang2016-01-201-6/+3
| | | | | | | | | | | | - The tmpfiles are always installed in /usr/lib even for multilib. - It makes no sense to have two tmpfiles in both /usr/lib/tmpfiles.d and /etc/tmpfiles.d, install it as one in /etc/tmpfiles.d. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: move RDEPENDS of perl from samba to samba-pidlJens Rehsack2016-01-051-0/+3
| | | | | | | | samba-pidl is the package containing the perl-extension, so RDEPENDS must include perl for samba-pidl, not for samba. Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: split packages similar to samba3Jens Rehsack2016-01-051-12/+149
| | | | | | | | | Since entire samba4 package is around 25MB, trying to save some space by splitting the package into several ones logically grouped as they were at samba3 in fido. Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: add PACKAGECONFIG for valgrindWenzong Fan2016-01-052-0/+65
| | | | | | | | | | | | | | | * Add configure options '--without-valgrind' * Disable valgrind by default since it doesn't build for all targets This fixes build errors: ../source3/include/includes.h:156:31: fatal error: \ valgrind/memcheck.h: No such file or directory compilation terminated. Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: make cyrus-sasl optionalJens Rehsack2016-01-042-2/+14
| | | | | | | | Since waf doesn't allow override check results via environment, a patch is needed to remove the bad check when an optional feature is unwanted. Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* samba: fix typo distinguishing between plain sysv init and lsb initJens Rehsack2016-01-041-1/+1
| | | | | | | | During fix for distinguishing between lsb flavoured sysv init and pure, on the rocks version, author introduced a typo. Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>