diff options
| author | Khem Raj <raj.khem@gmail.com> | 2017-04-23 22:20:58 -0700 |
|---|---|---|
| committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-04-25 16:10:55 -0400 |
| commit | d16352e9b4a916fa520896e9df96819f1388aef3 (patch) | |
| tree | 0d9be307c5c50e286be4aa539a962e567f0e25c7 /meta-networking/recipes-connectivity/samba/samba_4.4.5.bb | |
| parent | 8ef5e3ffc3810d59c782e951e9d3705ced6ed890 (diff) | |
| download | meta-openembedded-d16352e9b4a916fa520896e9df96819f1388aef3.tar.gz | |
samba: Upgrade to 4.6.2
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>
Diffstat (limited to 'meta-networking/recipes-connectivity/samba/samba_4.4.5.bb')
| -rw-r--r-- | meta-networking/recipes-connectivity/samba/samba_4.4.5.bb | 256 |
1 files changed, 0 insertions, 256 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb b/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb deleted file mode 100644 index f2d52a2c8e..0000000000 --- a/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb +++ /dev/null | |||
| @@ -1,256 +0,0 @@ | |||
| 1 | SECTION = "console/network" | ||
| 2 | |||
| 3 | LICENSE = "GPL-3.0+ & LGPL-3.0+ & GPL-2.0+" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 5 | file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \ | ||
| 6 | file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 " | ||
| 7 | |||
| 8 | SAMBA_MIRROR = "http://samba.org/samba/ftp" | ||
| 9 | MIRRORS += "\ | ||
| 10 | ${SAMBA_MIRROR} http://mirror.internode.on.net/pub/samba \n \ | ||
| 11 | ${SAMBA_MIRROR} http://www.mirrorservice.org/sites/ftp.samba.org \n \ | ||
| 12 | " | ||
| 13 | |||
| 14 | SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \ | ||
| 15 | file://00-fix-typos-in-man-pages.patch \ | ||
| 16 | file://10-use-only-libsystemd.patch \ | ||
| 17 | file://16-do-not-check-xsltproc-manpages.patch \ | ||
| 18 | file://20-do-not-import-target-module-while-cross-compile.patch \ | ||
| 19 | file://21-add-config-option-without-valgrind.patch \ | ||
| 20 | file://0001-packaging-Avoid-timeout-for-nmbd-if-started-offline-.patch \ | ||
| 21 | file://0006-avoid-using-colon-in-the-checking-msg.patch \ | ||
| 22 | file://internal_tevent_to_0.9.31.patch \ | ||
| 23 | file://volatiles.03_samba \ | ||
| 24 | " | ||
| 25 | SRC_URI_append_libc-musl = " \ | ||
| 26 | file://samba-4.2.7-pam.patch \ | ||
| 27 | file://samba-4.3.9-remove-getpwent_r.patch \ | ||
| 28 | " | ||
| 29 | |||
| 30 | SRC_URI[md5sum] = "6950c5e9f7bdeb8a610c2ca957a15be4" | ||
| 31 | SRC_URI[sha256sum] = "b876ef2e63f66265490e80a122e66ef2d7616112b839df68f56ac2e1ce17a7bd" | ||
| 32 | |||
| 33 | inherit systemd waf-samba cpan-base perlnative update-rc.d | ||
| 34 | # remove default added RDEPENDS on perl | ||
| 35 | RDEPENDS_${PN}_remove = "perl" | ||
| 36 | |||
| 37 | DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libldb krb5 libbsd libaio libpam" | ||
| 38 | DEPENDS_append_libc-musl = " libtirpc" | ||
| 39 | CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc" | ||
| 40 | LDFLAGS_append_libc-musl = " -ltirpc" | ||
| 41 | |||
| 42 | LSB = "" | ||
| 43 | LSB_linuxstdbase = "lsb" | ||
| 44 | |||
| 45 | INITSCRIPT_NAME = "samba" | ||
| 46 | INITSCRIPT_PARAMS = "start 20 3 5 . stop 20 0 1 6 ." | ||
| 47 | |||
| 48 | SYSTEMD_PACKAGES = "${PN}-base winbind" | ||
| 49 | SYSTEMD_SERVICE_${PN}-base = "nmb.service smb.service" | ||
| 50 | SYSTEMD_SERVICE_winbind = "winbind.service" | ||
| 51 | |||
| 52 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd zeroconf', d)} \ | ||
| 53 | acl cups ldap \ | ||
| 54 | " | ||
| 55 | |||
| 56 | RDEPENDS_${PN}-base += "${LSB}" | ||
| 57 | RDEPENDS_${PN}-ctdb-tests += "bash util-linux-getopt" | ||
| 58 | |||
| 59 | PACKAGECONFIG[acl] = "--with-acl-support,--without-acl-support,acl" | ||
| 60 | PACKAGECONFIG[fam] = "--with-fam,--without-fam,gamin" | ||
| 61 | PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,cups" | ||
| 62 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" | ||
| 63 | PACKAGECONFIG[sasl] = ",,cyrus-sasl" | ||
| 64 | PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd" | ||
| 65 | PACKAGECONFIG[dmapi] = "--with-dmapi,--without-dmapi,dmapi" | ||
| 66 | PACKAGECONFIG[zeroconf] = "--enable-avahi,--disable-avahi,avahi" | ||
| 67 | PACKAGECONFIG[valgrind] = ",--without-valgrind,valgrind," | ||
| 68 | PACKAGECONFIG[lttng] = "--with-lttng, --without-lttng,lttng-ust" | ||
| 69 | PACKAGECONFIG[archive] = "--with-libarchive, --without-libarchive, libarchive" | ||
| 70 | |||
| 71 | |||
| 72 | SAMBA4_IDMAP_MODULES="idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2" | ||
| 73 | SAMBA4_PDB_MODULES="pdb_tdbsam,${@bb.utils.contains('PACKAGECONFIG', 'ldap', 'pdb_ldap,', '', d)}pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4" | ||
| 74 | SAMBA4_AUTH_MODULES="auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4" | ||
| 75 | SAMBA4_MODULES="${SAMBA4_IDMAP_MODULES},${SAMBA4_PDB_MODULES},${SAMBA4_AUTH_MODULES}" | ||
| 76 | |||
| 77 | SAMBA4_LIBS="heimdal,!zlib,!popt,!talloc,!pytalloc,!pytalloc-util,!tevent,!pytevent,!tdb,!pytdb,!ldb,!pyldb" | ||
| 78 | |||
| 79 | EXTRA_OECONF += "--enable-fhs \ | ||
| 80 | --with-piddir=/run \ | ||
| 81 | --with-sockets-dir=/run/samba \ | ||
| 82 | --with-modulesdir=${libdir}/samba \ | ||
| 83 | --with-lockdir=${localstatedir}/lib/samba \ | ||
| 84 | --with-cachedir=${localstatedir}/lib/samba \ | ||
| 85 | --disable-gnutls \ | ||
| 86 | --disable-rpath-install \ | ||
| 87 | --with-shared-modules=${SAMBA4_MODULES} \ | ||
| 88 | --bundled-libraries=${SAMBA4_LIBS} \ | ||
| 89 | --with-system-mitkrb5 \ | ||
| 90 | --without-ad-dc \ | ||
| 91 | ${@base_conditional('TARGET_ARCH', 'x86_64', '', '--disable-glusterfs', d)} \ | ||
| 92 | --with-cluster-support \ | ||
| 93 | --with-profiling-data \ | ||
| 94 | --with-libiconv=${STAGING_DIR_HOST}${prefix} \ | ||
| 95 | --with-pam --with-pammodulesdir=${base_libdir}/security \ | ||
| 96 | " | ||
| 97 | |||
| 98 | LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | ||
| 99 | |||
| 100 | do_install_append() { | ||
| 101 | for section in 1 5 7; do | ||
| 102 | install -d ${D}${mandir}/man$section | ||
| 103 | install -m 0644 ctdb/doc/*.$section ${D}${mandir}/man$section | ||
| 104 | done | ||
| 105 | for section in 1 5 7 8; do | ||
| 106 | install -d ${D}${mandir}/man$section | ||
| 107 | install -m 0644 docs/manpages/*.$section ${D}${mandir}/man$section | ||
| 108 | done | ||
| 109 | |||
| 110 | install -d ${D}${systemd_system_unitdir} | ||
| 111 | install -m 0644 packaging/systemd/*.service ${D}${systemd_system_unitdir} | ||
| 112 | sed -e 's,\(ExecReload=\).*\(/kill\),\1${base_bindir}\2,' \ | ||
| 113 | -e 's,/etc/sysconfig/samba,${sysconfdir}/default/samba,' \ | ||
| 114 | -i ${D}${systemd_system_unitdir}/*.service | ||
| 115 | |||
| 116 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
| 117 | install -m644 packaging/systemd/samba.conf.tmp ${D}${sysconfdir}/tmpfiles.d/samba.conf | ||
| 118 | echo "d ${localstatedir}/log/samba 0755 root root -" \ | ||
| 119 | >> ${D}${sysconfdir}/tmpfiles.d/samba.conf | ||
| 120 | if [ "${LSB}" = "lsb" ]; then | ||
| 121 | install -d ${D}${sysconfdir}/init.d | ||
| 122 | install -m 0755 packaging/LSB/samba.sh ${D}${sysconfdir}/init.d/samba | ||
| 123 | else | ||
| 124 | install -d ${D}${sysconfdir}/init.d | ||
| 125 | install -m 0755 packaging/sysv/samba.init ${D}${sysconfdir}/init.d/samba | ||
| 126 | sed -e 's,/opt/samba/bin,${sbindir},g' \ | ||
| 127 | -e 's,/opt/samba/smb.conf,${sysconfdir}/samba/smb.conf,g' \ | ||
| 128 | -e 's,/opt/samba/log,${localstatedir}/log/samba,g' \ | ||
| 129 | -e 's,/etc/init.d/samba.server,${sysconfdir}/init.d/samba,g' \ | ||
| 130 | -e 's,/usr/bin,${base_bindir},g' \ | ||
| 131 | -i ${D}${sysconfdir}/init.d/samba | ||
| 132 | fi | ||
| 133 | |||
| 134 | install -d ${D}${sysconfdir}/samba | ||
| 135 | echo "127.0.0.1 localhost" > ${D}${sysconfdir}/samba/lmhosts | ||
| 136 | install -m644 packaging/LSB/smb.conf ${D}${sysconfdir}/samba/smb.conf | ||
| 137 | install -D -m 644 ${WORKDIR}/volatiles.03_samba ${D}${sysconfdir}/default/volatiles/03_samba | ||
| 138 | |||
| 139 | install -d ${D}${sysconfdir}/default | ||
| 140 | install -m644 packaging/systemd/samba.sysconfig ${D}${sysconfdir}/default/samba | ||
| 141 | |||
| 142 | # install ctdb config file and test cases | ||
| 143 | install -D -m 0644 ${S}/ctdb/tests/onnode/nodes ${D}${sysconfdir}/ctdb/nodes | ||
| 144 | # the items are from ctdb/tests/run_tests.sh | ||
| 145 | for d in onnode takeover tool eventscripts cunit simple complex; do | ||
| 146 | testdir=${D}${datadir}/ctdb-tests/$d | ||
| 147 | install -d $testdir | ||
| 148 | cp ${S}/ctdb/tests/$d/*.sh $testdir | ||
| 149 | cp -r ${S}/ctdb/tests/$d/scripts ${S}/ctdb/tests/$d/stubs $testdir || true | ||
| 150 | done | ||
| 151 | |||
| 152 | # fix file-rdeps qa warning | ||
| 153 | if [ -f ${D}${bindir}/onnode ]; then | ||
| 154 | sed -i 's:\(#!/bin/\)bash:\1sh:' ${D}${bindir}/onnode | ||
| 155 | fi | ||
| 156 | |||
| 157 | chmod 0750 ${D}${sysconfdir}/sudoers.d | ||
| 158 | rm -rf ${D}/run ${D}${localstatedir}/run ${D}${localstatedir}/log | ||
| 159 | } | ||
| 160 | |||
| 161 | PACKAGES =+ "${PN}-python ${PN}-pidl \ | ||
| 162 | ${PN}-dsdb-modules ${PN}-testsuite registry-tools \ | ||
| 163 | winbind \ | ||
| 164 | ${PN}-common ${PN}-base ${PN}-ctdb-tests \ | ||
| 165 | smbclient" | ||
| 166 | |||
| 167 | python samba_populate_packages() { | ||
| 168 | def module_hook(file, pkg, pattern, format, basename): | ||
| 169 | pn = d.getVar('PN', True) | ||
| 170 | d.appendVar('RRECOMMENDS_%s-base' % pn, ' %s' % pkg) | ||
| 171 | |||
| 172 | mlprefix = d.getVar('MLPREFIX', True) or '' | ||
| 173 | pam_libdir = d.expand('${base_libdir}/security') | ||
| 174 | pam_pkgname = mlprefix + 'pam-plugin%s' | ||
| 175 | do_split_packages(d, pam_libdir, '^pam_(.*)\.so$', pam_pkgname, 'PAM plugin for %s', extra_depends='', prepend=True) | ||
| 176 | |||
| 177 | libdir = d.getVar('libdir', True) | ||
| 178 | do_split_packages(d, libdir, '^lib(.*)\.so\..*$', 'lib%s', 'Samba %s library', extra_depends='${PN}-common', prepend=True, allow_links=True) | ||
| 179 | pkglibdir = '%s/samba' % libdir | ||
| 180 | do_split_packages(d, pkglibdir, '^lib(.*)\.so$', 'lib%s', 'Samba %s library', extra_depends='${PN}-common', prepend=True) | ||
| 181 | moduledir = '%s/samba/auth' % libdir | ||
| 182 | do_split_packages(d, moduledir, '^(.*)\.so$', 'samba-auth-%s', 'Samba %s authentication backend', hook=module_hook, extra_depends='', prepend=True) | ||
| 183 | moduledir = '%s/samba/pdb' % libdir | ||
| 184 | do_split_packages(d, moduledir, '^(.*)\.so$', 'samba-pdb-%s', 'Samba %s password backend', hook=module_hook, extra_depends='', prepend=True) | ||
| 185 | } | ||
| 186 | |||
| 187 | PACKAGESPLITFUNCS_prepend = "samba_populate_packages " | ||
| 188 | |||
| 189 | RDEPENDS_${PN} += "${PN}-base" | ||
| 190 | |||
| 191 | FILES_${PN}-base = "${sbindir}/nmbd \ | ||
| 192 | ${sbindir}/smbd \ | ||
| 193 | ${sysconfdir}/init.d \ | ||
| 194 | ${localstatedir}/lib/samba \ | ||
| 195 | ${localstatedir}/nmbd \ | ||
| 196 | ${localstatedir}/spool/samba \ | ||
| 197 | ${systemd_system_unitdir}/nmb.service \ | ||
| 198 | ${systemd_system_unitdir}/samba.service \ | ||
| 199 | ${systemd_system_unitdir}/smb.service" | ||
| 200 | |||
| 201 | FILES_${PN}-ctdb-tests = "${bindir}/ctdb_run_tests \ | ||
| 202 | ${bindir}/ctdb_run_cluster_tests \ | ||
| 203 | ${sysconfdir}/ctdb/nodes \ | ||
| 204 | ${libdir}/ctdb-tests \ | ||
| 205 | ${datadir}/ctdb-tests \ | ||
| 206 | /run/ctdb \ | ||
| 207 | " | ||
| 208 | |||
| 209 | FILES_${BPN}-common = "${sysconfdir}/default \ | ||
| 210 | ${sysconfdir}/samba \ | ||
| 211 | ${sysconfdir}/tmpfiles.d \ | ||
| 212 | " | ||
| 213 | |||
| 214 | FILES_${PN} += "${libdir}/vfs/*.so \ | ||
| 215 | ${libdir}/charset/*.so \ | ||
| 216 | ${libdir}/*.dat \ | ||
| 217 | ${libdir}/auth/*.so \ | ||
| 218 | " | ||
| 219 | |||
| 220 | FILES_${PN}-dsdb-modules = "${libdir}/samba/ldb" | ||
| 221 | |||
| 222 | FILES_${PN}-testsuite = "${bindir}/gentest \ | ||
| 223 | ${bindir}/locktest \ | ||
| 224 | ${bindir}/masktest \ | ||
| 225 | ${bindir}/ndrdump \ | ||
| 226 | ${bindir}/smbtorture" | ||
| 227 | |||
| 228 | FILES_registry-tools = "${bindir}/regdiff \ | ||
| 229 | ${bindir}/regpatch \ | ||
| 230 | ${bindir}/regshell \ | ||
| 231 | ${bindir}/regtree" | ||
| 232 | |||
| 233 | FILES_winbind = "${sbindir}/winbindd \ | ||
| 234 | ${bindir}/wbinfo \ | ||
| 235 | ${bindir}/ntlm_auth \ | ||
| 236 | ${libdir}/samba/idmap \ | ||
| 237 | ${libdir}/samba/nss_info \ | ||
| 238 | ${libdir}/winbind_krb5_locator.so \ | ||
| 239 | ${sysconfdir}/init.d/winbind \ | ||
| 240 | ${systemd_system_unitdir}/winbind.service" | ||
| 241 | |||
| 242 | FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" | ||
| 243 | |||
| 244 | FILES_smbclient = "${bindir}/cifsdd \ | ||
| 245 | ${bindir}/rpcclient \ | ||
| 246 | ${bindir}/smbcacls \ | ||
| 247 | ${bindir}/smbclient \ | ||
| 248 | ${bindir}/smbcquotas \ | ||
| 249 | ${bindir}/smbget \ | ||
| 250 | ${bindir}/smbspool \ | ||
| 251 | ${bindir}/smbtar \ | ||
| 252 | ${bindir}/smbtree \ | ||
| 253 | ${libdir}/samba/smbspool_krb5_wrapper" | ||
| 254 | |||
| 255 | RDEPENDS_${PN}-pidl_append = " perl" | ||
| 256 | FILES_${PN}-pidl = "${bindir}/pidl ${datadir}/perl5/Parse" | ||
