%define samba_version 4.16.5 %define wbpriv_gid 88 %define with_libuuid 0 %define with_GPFS 1 %define python3_sitearch %{_libdir}/python3.7/site-packages # perl_lib_install_dir is hard coded in file buildtools/wafsamba/samba_perl.py %define perl_lib %{_datadir}/perl5/site_perl Summary: Server and Client software to interoperate with Windows machines Name: samba Version: %{samba_version} Release: 1 License: GPLv3+ and LGPLv3+ URL: http://www.samba.org/ Source0: https://download.samba.org/pub/samba/stable/%{name}-%{version}.tar.gz Source1: https://download.samba.org/pub/samba/stable/%{name}-%{version}.tar.asc Source2: %{name}.log Source4: %{name}.sysconfig Source5: smb.conf.default Source6: smbprint Source7: smbd.aix.init Source8: nmbd.aix.init Source9: winbindd.aix.init Source11: README.AIX_Samba_Usage_Guide Source12: ctdbd.conf Source13: samba_winbindd_syms.exp #Source14: samba-libdir-aix.patch Patch1: samba-4.2.0-aix.patch Patch2: samba-Bug-8984-AIX-6.1-nmbd-Failed-to-open-nmb-bcast-socket.patch #Patch3: samba-4.9.3-resolv_wrapper.patch # Compiling on AIX 6.1 for execution on 6.1, 7.1, 7.2 # O_NOFOLLOW not supported on 6.1 # O_NOFOLLOW defined as _FCLREAD 0x02000000 on 7.1 # O_NOFOLLOW defined 0x01000000 on 7.2 # # Need a run time test to set open() flags */ #Patch6: samba-4.5.10-openO_NOFOLLOW.patch Patch4: samba-4.14.4-gpfswrapper-aix.patch Patch5: samba-4.9.3-ctdb-aix.patch Patch6: samba-4.16.5-WINBINDentrypoint.patch Patch7: samba_winbindd_syms_new.patch Patch8: samba-4.9.3-time-aix.patch Patch9: samba-posix_fallocate-aix.patch Patch10: samba-4.14.4-struct-initialization-aix.patch Patch11: samba-4.12.7-fallthrough-aix.patch # This patch needs modification if MIT kerberos is used instead of Heimdal Patch12: samba-4.16.5-preprocessing-fix.patch Patch13: samba-4.12.10-msdfs-aix.patch Patch14: samba-4.14.4-getgrset.patch Patch15: samba-4.16.5-intl-builtin.patch Patch16: samba-4.16.5-aixacl.patch Patch17: samba-4.16.5-getprogname.patch # The docs are no longer built Obsoletes: samba-doc # Not supported yet Obsoletes: samba-domainjoin-gui # SWAT been deprecated and removed from samba Obsoletes: samba-swat BuildRequires: make, patch, sed BuildRequires: libiconv >= 1.16 BuildRequires: openldap-devel >= 2.4.46 BuildRequires: popt >= 1.18 BuildRequires: readline-devel >= 8.0 BuildRequires: gnutls-devel >= 3.7.2 BuildRequires: perl-Parse-Yapp >= 1.21 BuildRequires: krb5-devel >= 1.18.5 BuildRequires: sqlite-devel >= 3.37.2 %if %{with_libuuid} BuildRequires: uuid-devel >= 1.6.2-1 %endif BuildConflicts: rpcgen Requires: %{name}-common = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release} # Requires: libwbclient = %{version}-%{release} Requires: bash %description Samba is the suite of programs by which a lot of PC-related machines share files, printers, and other information (such as lists of available files and printers). The Windows NT, OS/2, and Linux operating systems support this natively, and add-on packages can enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS, and more. This package provides an SMB/CIFS server that can be used to B provide network services to SMB/CIFS clients. Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT need the NetBEUI (Microsoft Raw NetBIOS frame) protocol. %package all Summary: Meta-package to include all Samba RPMs Requires: %{name} = %{version}-%{release} Requires: %{name}-common = %{version}-%{release} Requires: %{name}-client = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-winbind = %{version}-%{release} Requires: %{name}-winbind-clients = %{version}-%{release} Requires: %{name}-winbind-devel = %{version}-%{release} Requires: %{name}-winbind-krb5-locator = %{version}-%{release} Requires: libsmbclient = %{version}-%{release} Requires: libsmbclient-devel = %{version}-%{release} Requires: %{name}-python3 = %{version}-%{release} Requires: %{name}-pidl = %{version}-%{release} %description all Samba is the suite of programs by which a lot of PC-related machines share files, printers, and other information (such as lists of available files and printers). The Windows NT, OS/2, and Linux operating systems support this natively, and add-on packages can enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS, and more. This package provides an SMB/CIFS server that can be used to provide network services to SMB/CIFS clients. Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT need the NetBEUI (Microsoft Raw NetBIOS frame) protocol. This is a meta-package including all Samba components. %package client Summary: Samba client programs Requires: bash Requires: %{name}-common = %{version}-%{release} Requires: popt >= 1.18 # Include samba-client-libs # Requires: %{name}-client-libs = %{version}-%{release} # Requires: libwbclient = %{version}-%{release} %description client The samba-client package provides some SMB/CIFS clients to complement the built-in SMB/CIFS filesystem in Linux. These clients allow access of SMB/CIFS shares and printing to SMB/CIFS printers. # Common package grouping common files with common-libs and common-tools %package common Summary: Files used by both Samba servers and clients Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-winbind-clients = %{version}-%{release} # Requires: libwbclient = %{version}-%{release} # Requires: krb5-libs >= 1.9.4-2 # May be Requires: krb5-libs >= 1.14 (not yet on Bullfreeware) Requires: openldap >= 2.4.46 Requires: readline >= 8.0 Requires: gnutls >= 3.7.2 Requires: coreutils Requires: libiconv >= 1.16 Requires: popt >= 1.18 Requires: krb5-libs >= 1.18.5 %if %{with_libuuid} Requires: uuid >= 1.6.2-1 %endif Requires: zlib >= 1.2.11 %description common Samba-common provides files and tools necessary for both the server and client packages of Samba and internal libraries needed by the SMB/CIFS clients. # samba-devel package needed to develop programs %package devel Summary: Developer tools for Samba libraries Requires: %{name}-common = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} %description devel The samba-devel package contains the header files for the libraries needed to develop programs that link against the SMB, RPC and other libraries in the Samba suite. # samba-libs package %package libs Summary: Samba libraries Requires: popt >= 1.18 Requires: sqlite >= 3.37.2 %description libs The samba-libs package contains the libraries needed by programs that link against the SMB, RPC and other protocols provided by the Samba suite. %package winbind Summary: Samba winbind Requires: %{name}-common = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-winbind-clients = %{version}-%{release} # Requires: %{name}-winbind-modules = %{version}-%{release} Requires: popt >= 1.18 %description winbind The samba-winbind package provides the winbind daemon, the winbind NSS library and some client tools. Winbind enables Linux to be a full member in Windows domains and to use Windows user and group accounts on Linux. %package winbind-krb5-locator Summary: Samba winbind krb5 locator Requires: %{name}-winbind = %{version}-%{release} Requires: %{name}-winbind-clients = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} %description winbind-krb5-locator The winbind krb5 locator is a plugin for the system kerberos library to allow the local kerberos library to use the same KDC as samba and winbind use %package winbind-clients Summary: Samba winbind clients Requires: %{name}-common = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-winbind = %{version}-%{release} # Requires: libwbclient = %{version}-%{release} %description winbind-clients The samba-winbind-clients package provides the NSS library and a PAM module necessary to communicate to the Winbind Daemon %package winbind-devel Summary: Developer tools for the winbind library Requires: %{name}-winbind = %{version}-%{release} %description winbind-devel The samba-winbind-devel package provides developer tools for the wbclient library. %package -n libsmbclient Summary: The SMB client library Requires: %{name}-common = %{version}-%{release} %description -n libsmbclient The libsmbclient contains the SMB client library from the Samba suite. %package -n libsmbclient-devel Summary: Developer tools for the SMB client library Requires: libsmbclient = %{version}-%{release} %description -n libsmbclient-devel The libsmbclient-devel package contains the header files and libraries needed to develop programs that link against the SMB client library in the Samba suite. %package python3 Summary: Samba Python3 libraries Requires: %{name} = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} Obsoletes: samba-python # Requires: python-tevent # Requires: python-tdb # Requires: pyldb # Requires: pytalloc %description python3 The samba-python3 package contains the Python3 libraries needed by programs that use SMB, RPC and other Samba provided protocols in Python programs. %package pidl Summary: Perl IDL compiler # Requires: perl(Parse::Yapp) # Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl >= 5.30.2 %description pidl The samba-pidl package contains the Perl IDL compiler used by Samba and Wireshark to parse IDL and similar protocols # There is also the possibility of constructing packages for testing # tools for Samba servers and clients (samba-test, samba-test-libs, # samba-test-devel) essentially containing gentest, locktest, masktest, # ndrdump, smbtorture/libtorture. ### TEST %package test Summary: Testing tools for Samba servers and clients Requires: %{name} = %{samba_version} Requires: %{name}-common = %{samba_version} Requires: %{name}-winbind = %{samba_version} # Requires: %{name}-client-libs = %{samba_version} Requires: %{name}-libs = %{samba_version} Requires: %{name}-test-libs = %{samba_version} # %if %with_dc # Requires: %{name}-dc-libs = %{samba_version} # %endif Requires: %{name}-libs = %{samba_version} # %if %with_libsmbclient Requires: libsmbclient = %{samba_version} # %endif # %if %with_libwbclient #Requires: libwbclient = %{samba_version} # %endif Provides: samba4-test = %{samba_version} Obsoletes: samba4-test < %{samba_version} %description test The samba-test provides testing tools for both the server and client packages of Samba. ### TEST-LIBS %package test-libs Summary: Libraries need by the testing tools for Samba servers and clients # Requires: %{name}-client-libs = %{samba_version} Requires: %{name}-libs = %{samba_version} Provides: %{name}-test-devel = %{samba_version} Obsoletes: %{name}-test-devel < %{samba_version} %description test-libs The samba-test-libs provides libraries required by the testing tools. %prep export PATH=/opt/freeware/bin:$PATH %setup -q cp %{SOURCE13} . %patch1 -p1 %patch2 -p1 #%patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 #%patch8 -p1 %patch9 -p1 #%patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %build export PYTHON=/opt/freeware/bin/python3_32 # Remove "-fPIC" from python3.7-config_32 file export PYTHON_CONFIG=/opt/freeware/bin/python3.7-config_32 export PERL=/opt/freeware/bin/perl_32 export NCURSES_CONFIG=/opt/freeware/bin/ncurses6-config_32 export PKG_CONFIG_PATH=/opt/freeware/lib/pkgconfig export KRB5_CONFIG=/opt/freeware/bin/krb5-config_32 export CC="xlc_r" export CFLAGS=" -D__STDC_WANT_LIB_EXT1__=1 -D_LARGE_FILES=1 -qcpluscmt -bnoquiet -D__PRETTY_FUNCTION__=__func__ -I/opt/freeware/include" export LDFLAGS=" -L/opt/freeware/lib -L/usr/lib -Wl,-blibpath:/opt/freeware/lib/samba:/opt/freeware/lib:/usr/vac/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000" %global _samba4_idmap_modules idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2 %global _samba4_pdb_modules pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4 %global _samba4_auth_modules auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4 %global _samba_vfs_modules vfs_dfs_samba4 %global _samba4_modules %{_samba4_idmap_modules},%{_samba4_pdb_modules},%{_samba4_auth_modules} ./configure -v \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --includedir=%{_includedir}/samba-4.0 \ --sysconfdir=/etc/%{name} \ --mandir=%{_mandir} \ --with-lockdir=/var/locks \ --with-piddir=/var/run \ --with-privatedir=/var/lib/%{name}/private \ --with-privatelibdir=%{_libdir}/%{name} \ --with-logfilebase=/var/log/%{name} \ --with-logdir=/var/log/%{name} \ --with-modulesdir=%{_libdir}/%{name} \ --with-pammodulesdir=%{_libdir}/security \ --with-cachedir=/var/cache \ --with-acl-support \ --with-ads \ --without-ad-dc \ --without-libarchive \ --with-cluster-support \ --with-gpfs \ --with-automount \ --without-json \ --with-system-mitkrb5 \ --disable-cups \ %if %{with_libuuid} --with-dnsupdate \ %endif --with-ldap \ --with-pam \ --with-quotas \ --with-sendfile-support \ --with-syslog \ --with-utmp \ %if %{with_GPFS} --with-shared-modules=%{_samba4_modules},vfs_gpfs \ %else --with-shared-modules=%{_samba4_modules} \ --disable-glusterfs \ %endif %if %{with testsuite} --enable-selftest \ %endif # Samba build disables verbose mode of gmake. To enable it, do "gmake V=1" but the build will be slower gmake -j4 gmake smbfilter cd pidl /opt/freeware/bin/perl_32 Makefile.PL gmake %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} gmake install DESTDIR=${RPM_BUILD_ROOT} cd pidl gmake install DESTDIR=${RPM_BUILD_ROOT} cd .. # Replace /bin/bash with /opt/freeware/bin/bash #( # cd ${RPM_BUILD_ROOT}/opt/freeware/share/ctdb/tests # /usr/bin/grep -rl "\/bin\/bash" * | /usr/bin/xargs /opt/freeware/bin/sed -i 's/\/bin\/bash/\/opt\/freeware\/bin\/bash/g' #) /usr/bin/strip -X32_64 ${RPM_BUILD_ROOT}%{_bindir}/* || : /usr/bin/strip -X32_64 ${RPM_BUILD_ROOT}%{_sbindir}/* || : mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d mkdir -p ${RPM_BUILD_ROOT}/%{_prefix}/var/run/nmbd mkdir -p ${RPM_BUILD_ROOT}/var/lib/%{name}/winbindd_privileged mkdir -p ${RPM_BUILD_ROOT}/var/lib/%{name}/scripts mkdir -p ${RPM_BUILD_ROOT}/var/lib/%{name}/sysvol mkdir -p ${RPM_BUILD_ROOT}/var/log/%{name}/old mkdir -p ${RPM_BUILD_ROOT}/var/spool/%{name} mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/samba/setup mkdir -p ${RPM_BUILD_ROOT}/var/run/winbindd mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man7 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8 man_list="1 5 7 8" for i in ${man_list} ; do cp docs/manpages/*.${i} ${RPM_BUILD_ROOT}%{_mandir}/man${i}/ done cp %{SOURCE5} ${RPM_BUILD_ROOT}/etc/%{name}/smb.conf chmod 0644 ${RPM_BUILD_ROOT}/etc/%{name}/smb.conf cp %{SOURCE12} ${RPM_BUILD_ROOT}/etc/%{name}/ctdb/ctdbd.conf cp source3/script/mksmbpasswd.sh ${RPM_BUILD_ROOT}%{_bindir}/ chmod 0755 $RPM_BUILD_ROOT%{_bindir}/mksmbpasswd.sh cp packaging/printing/smbprint ${RPM_BUILD_ROOT}%{_bindir}/ chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/smbprint cp %{SOURCE2} ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name} chmod 0644 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name} echo 127.0.0.1 localhost > ${RPM_BUILD_ROOT}/etc/%{name}/lmhosts mkdir -p ${RPM_BUILD_ROOT}/etc/openldap/schema cp examples/LDAP/%{name}.schema ${RPM_BUILD_ROOT}/etc/openldap/schema/%{name}.schema chmod 0644 ${RPM_BUILD_ROOT}/etc/openldap/schema/%{name}.schema # winbind krb5 locator mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/krb5/plugins/libkrb5 cp bin/plugins/winbind_krb5_locator.so ${RPM_BUILD_ROOT}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so chmod 0755 ${RPM_BUILD_ROOT}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so mkdir -p ${RPM_BUILD_ROOT}/etc/sysconfig cp %{SOURCE4} ${RPM_BUILD_ROOT}/etc/sysconfig/%{name} chmod 0644 ${RPM_BUILD_ROOT}/etc/sysconfig/%{name} # create additional directory structure mkdir -p ${RPM_BUILD_ROOT}/etc/rc.d/init.d mkdir -p ${RPM_BUILD_ROOT}/etc/rc.d/rc2.d mkdir -p ${RPM_BUILD_ROOT}/etc/rc.d/rc3.d # move the files into the structure cp %{SOURCE7} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/smbd cp %{SOURCE8} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/nmbd cp %{SOURCE9} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/winbindd chmod 0755 ${RPM_BUILD_ROOT}/etc/rc.d/init.d/* mkdir -p ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/doc cp %{SOURCE11} ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/README.AIX_Samba_Usage_Guide # make symlinks for the appropriate run levels for i in smbd nmbd winbindd do ln -sf ../init.d/${i} ${RPM_BUILD_ROOT}/etc/rc.d/rc2.d/S${i} ln -sf ../init.d/${i} ${RPM_BUILD_ROOT}/etc/rc.d/rc2.d/K${i} ln -sf ../init.d/${i} ${RPM_BUILD_ROOT}/etc/rc.d/rc3.d/S${i} ln -sf ../init.d/${i} ${RPM_BUILD_ROOT}/etc/rc.d/rc3.d/K${i} done %post if [ "$1" -ge "1" ]; then /etc/rc.d/init.d/smbd condrestart >/dev/null 2>&1 || : /etc/rc.d/init.d/nmbd condrestart >/dev/null 2>&1 || : fi echo echo "A guide to installing Samba on AIX can be found in %{_docdir}/%{name}-%{version}/README.AIX_Samba_Usage_Guide" echo exit 0 %preun if [ $1 = 0 ] ; then /etc/rc.d/init.d/smbd stop >/dev/null 2>&1 || : /etc/rc.d/init.d/nmbd stop >/dev/null 2>&1 || : fi exit 0 %pre winbind # add the "wbpriv" group only if it does not yet exist result=`/usr/sbin/lsgroup wbpriv | /usr/bin/awk '{ print $1 }' 2>/dev/null` if [[ "${result}" != "wbpriv" ]] ; then /usr/bin/mkgroup -A id=%{wbpriv_gid} wbpriv 2> /dev/null || : fi exit 0 %post winbind if [ "$1" -ge "1" ]; then /etc/rc.d/init.d/winbindd condrestart >/dev/null 2>&1 || : fi exit 0 %preun winbind if [ "$1" = "0" ] ; then /etc/rc.d/init.d/winbindd stop >/dev/null 2>&1 || : fi exit 0 %postun winbind if [ "$1" = "0" ] ; then # remove the "wbpriv" group /usr/sbin/rmgroup wbpriv || : fi exit 0 %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc COPYING README.md WHATSNEW.txt %doc examples/autofs examples/LDAP examples/libsmbclient examples/misc %doc examples/printer-accounting examples/printing %{_docdir}/%{name}-%{version}/README.AIX_Samba_Usage_Guide %{_bindir}/mksmbpasswd.sh %{_bindir}/smbstatus %{_sbindir}/eventlogadm %{_sbindir}/samba-gpupdate %{_sbindir}/nmbd %{_sbindir}/smbd %{_libexecdir}/samba %dir %{_prefix}/var/run/nmbd %dir %{_prefix}/var/locks %attr(755,root,system) /etc/rc.d/init.d/nmbd %attr(755,root,system) /etc/rc.d/init.d/smbd %attr(755,root,system) /etc/rc.d/rc2.d/Knmbd %attr(755,root,system) /etc/rc.d/rc2.d/Snmbd %attr(755,root,system) /etc/rc.d/rc2.d/Ksmbd %attr(755,root,system) /etc/rc.d/rc2.d/Ssmbd %attr(755,root,system) /etc/rc.d/rc3.d/Knmbd %attr(755,root,system) /etc/rc.d/rc3.d/Snmbd %attr(755,root,system) /etc/rc.d/rc3.d/Ksmbd %attr(755,root,system) /etc/rc.d/rc3.d/Ssmbd %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_mandir}/man1/* %{_mandir}/man5/* %{_mandir}/man7/* %{_mandir}/man8/* %{_libdir}/%{name}/vfs %{_libdir}/%{name}/auth %attr(1777,root,system) %dir /var/spool/%{name} /etc/openldap/schema/%{name}.schema # samba-client package # Man pages not included because in Tex format %files client %defattr(-,root,system) %{_bindir}/cifsdd %{_bindir}/dbwrap_tool %{_bindir}/mvxattr %{_bindir}/nmblookup %{_bindir}/oLschema2ldif %{_bindir}/regdiff %{_bindir}/regpatch %{_bindir}/regshell %{_bindir}/regtree %{_bindir}/rpcclient %{_bindir}/sharesec %{_bindir}/smbcacls %{_bindir}/smbclient %{_bindir}/smbcquotas %{_bindir}/smbget %{_bindir}/smbprint %{_bindir}/smbspool %{_bindir}/smbtar %{_bindir}/smbtree # Already part of samba-common # TDB Trivial Data Base is the database engine used within Samba. #%{_bindir}/tdbbackup #%{_bindir}/tdbdump #%{_bindir}/tdbrestore #%{_bindir}/tdbtool # Internal or independent LDB library/package is the database # engine used within Samba. # LDB is an an embedded LDAP-Like database library, but not completely # LDAP compliant. It can store its database in regular files (using TDB), # or talk to a standard LDAP server. # LDB is a core part of Samba4. %{_bindir}/ldbadd %{_bindir}/ldbdel %{_bindir}/ldbedit %{_bindir}/ldbmodify %{_bindir}/ldbrename %{_bindir}/ldbsearch %{_libdir}/samba/libldb-cmdline-samba4.so %{_libdir}/samba/libldb-key-value-samba4.so %{_libdir}/samba/ldb/asq.so %{_libdir}/samba/ldb/ldb.so %{_libdir}/samba/ldb/paged_searches.so %{_libdir}/samba/ldb/rdn_name.so %{_libdir}/samba/ldb/sample.so %{_libdir}/samba/ldb/server_sort.so %{_libdir}/samba/ldb/skel.so %{_libdir}/samba/ldb/tdb.so %files common %defattr(-,root,system) # samba-common-tools %{_bindir}/ctdb %{_bindir}/ctdb_diagnostics #%{_bindir}/ctdb_local_daemons #%{_bindir}/ctdb_run_cluster_tests #%{_bindir}/ctdb_run_tests %{_bindir}/ltdbtool %{_bindir}/onnode %{_bindir}/ping_pong %{_bindir}/mdsearch %{_bindir}/net %{_bindir}/pdbedit %{_bindir}/profiles %{_bindir}/samba-tool %{_bindir}/samba-regedit %{_bindir}/smbcontrol %{_bindir}/smbpasswd %{_bindir}/tdb* %{_bindir}/testparm %{_sbindir}/ctdbd %{_sbindir}/ctdbd_wrapper %dir /var/lib/%{name} %attr(700,root,system) %dir /var/lib/%{name}/private %dir /var/lib/%{name}/scripts %dir /etc/%{name} /etc/%{name}/ctdb/* %dir %{_prefix}/var/lib/ctdb %dir %{_prefix}/var/run/ctdb %dir %{_libexecdir}/ctdb %{_libexecdir}/ctdb/* %config(noreplace) /etc/%{name}/smb.conf %config(noreplace) /etc/%{name}/lmhosts %config(noreplace) /etc/sysconfig/%{name} %attr(0700,root,system) %dir /var/log/%{name} %attr(0700,root,system) %dir /var/log/%{name}/old # Include samba-client-libs in the samba-common package %{_libdir}/libdcerpc-binding.so.* %{_libdir}/libndr.so.* %{_libdir}/libndr-krb5pac.so.* %{_libdir}/libndr-nbt.so.* %{_libdir}/libndr-standard.so.* %{_libdir}/libnetapi.so.* %{_libdir}/libsamba-credentials.so.* %{_libdir}/libsamba-errors.so.* %{_libdir}/libsamba-passdb.so.* %{_libdir}/libsamba-util.so.* %{_libdir}/libsamba-hostconfig.so.* %{_libdir}/libsamdb.so.* %{_libdir}/libsmbconf.so.* %{_libdir}/libsmbldap.so.* %{_libdir}/libtevent-util.so.* %{_libdir}/libdcerpc.so.* %{_libdir}/libdcerpc-server-core.so.* %dir %{_libdir}/samba %{_libdir}/samba/libCHARSET3-samba4.so %{_libdir}/samba/libaddns-samba4.so %{_libdir}/samba/libads-samba4.so %{_libdir}/samba/libasn1util-samba4.so %{_libdir}/samba/libauth-samba4.so %{_libdir}/samba/libauthkrb5-samba4.so %{_libdir}/samba/libcli-cldap-samba4.so %{_libdir}/samba/libcli-ldap-common-samba4.so %{_libdir}/samba/libcli-ldap-samba4.so %{_libdir}/samba/libcli-nbt-samba4.so %{_libdir}/samba/libcli-smb-common-samba4.so %{_libdir}/samba/libcli-spoolss-samba4.so %{_libdir}/samba/libcliauth-samba4.so %{_libdir}/samba/libclidns-samba4.so %{_libdir}/samba/libcmdline-contexts-samba4.so %{_libdir}/samba/libcmdline-samba4.so %{_libdir}/samba/libcmocka-samba4.so %{_libdir}/samba/libdbwrap-samba4.so %{_libdir}/samba/libdcerpc-samba-samba4.so %{_libdir}/samba/libdcerpc-pkt-auth-samba4.so %{_libdir}/samba/libdnsserver-common-samba4.so %{_libdir}/samba/libevents-samba4.so %{_libdir}/samba/libflag-mapping-samba4.so %{_libdir}/samba/libgenrand-samba4.so %{_libdir}/samba/libgensec-samba4.so %{_libdir}/samba/libgpext-samba4.so %{_libdir}/samba/libgse-samba4.so %{_libdir}/samba/libhttp-samba4.so %{_libdir}/samba/libinterfaces-samba4.so %{_libdir}/samba/libiov-buf-samba4.so %{_libdir}/samba/libkrb5samba-samba4.so %{_libdir}/samba/libldbsamba-samba4.so %{_libdir}/samba/libldb-tdb-err-map-samba4.so %{_libdir}/samba/libldb-tdb-int-samba4.so %{_libdir}/samba/liblibcli-lsa3-samba4.so %{_libdir}/samba/liblibcli-netlogon3-samba4.so %{_libdir}/samba/liblibsmb-samba4.so %{_libdir}/samba/libmessages-dgm-samba4.so %{_libdir}/samba/libmessages-util-samba4.so %{_libdir}/samba/libmsghdr-samba4.so %{_libdir}/samba/libmsrpc3-samba4.so %{_libdir}/samba/libndr-samba-samba4.so %{_libdir}/samba/libndr-samba4.so %{_libdir}/samba/libnet-keytab-samba4.so %{_libdir}/samba/libnetif-samba4.so %{_libdir}/samba/libnpa-tstream-samba4.so %{_libdir}/samba/libposix-eadb-samba4.so %{_libdir}/samba/libprinter-driver-samba4.so %{_libdir}/samba/libprinting-migrate-samba4.so %{_libdir}/samba/libreplace-samba4.so %{_libdir}/samba/libregistry-samba4.so %{_libdir}/samba/libsamba-cluster-support-samba4.so %{_libdir}/samba/libsamba-debug-samba4.so %{_libdir}/samba/libsamba-modules-samba4.so %{_libdir}/samba/libsamba-security-samba4.so %{_libdir}/samba/libsamba-sockets-samba4.so %{_libdir}/samba/libsamba3-util-samba4.so %{_libdir}/samba/libsamdb-common-samba4.so %{_libdir}/samba/libsecrets3-samba4.so %{_libdir}/samba/libserver-id-db-samba4.so %{_libdir}/samba/libserver-role-samba4.so %{_libdir}/samba/libsmb-transport-samba4.so %{_libdir}/samba/libsmbclient-raw-samba4.so %{_libdir}/samba/libsmbd-base-samba4.so #%{_libdir}/samba/libsmbd-conn-samba4.so %{_libdir}/samba/libsmbd-shim-samba4.so %{_libdir}/samba/libsmbldaphelper-samba4.so %{_libdir}/samba/libsys-rw-samba4.so %{_libdir}/samba/libsocket-blocking-samba4.so %{_libdir}/samba/libtalloc-report-samba4.so %{_libdir}/samba/libtdb-wrap-samba4.so %{_libdir}/samba/libtime-basic-samba4.so %{_libdir}/samba/libtorture-samba4.so %{_libdir}/samba/libtrusts-util-samba4.so %{_libdir}/samba/libutil-reg-samba4.so %{_libdir}/samba/libutil-setid-samba4.so %{_libdir}/samba/libutil-tdb-samba4.so %{_libdir}/samba/libgpo-samba4.so %{_libdir}/samba/libtalloc-report-printf-samba4.so # Internal or independent TALLOC library/package %{_libdir}/samba/libtalloc-samba4.so* %{_libdir}/samba/libpytalloc-util-samba4.so* # Internal or independent TEVENT library/package %{_libdir}/samba/libtevent-samba4.so* # Internal or independent TDB library/package %{_libdir}/samba/libtdb-samba4.so* # Internal or independent LDB library/package %{_libdir}/samba/libldb-samba4.so* %{_libdir}/samba/libpyldb-util-samba4.so* # Include samba-common-libs in the samba-common package %dir %{_libdir}/samba/ldb %dir %{_libdir}/samba/pdb %{_libdir}/samba/pdb/ldapsam.so %{_libdir}/samba/pdb/smbpasswd.so %{_libdir}/samba/pdb/tdbsam.so %{_libdir}/samba/ldb/ildap.so %{_libdir}/samba/ldb/ldbsamba_extensions.so %dir /var/lib/samba/sysvol %{_datadir}/samba/setup ### DEVEL %files devel %defattr(-,root,system) %{_includedir}/samba-4.0/charset.h %{_includedir}/samba-4.0/core/* %{_includedir}/samba-4.0/credentials.h %{_includedir}/samba-4.0/dcerpc.h %{_includedir}/samba-4.0/dcesrv_core.h %{_includedir}/samba-4.0/domain_credentials.h %{_includedir}/samba-4.0/gen_ndr/* %{_includedir}/samba-4.0/ldb_wrap.h %{_includedir}/samba-4.0/lookup_sid.h %{_includedir}/samba-4.0/machine_sid.h %{_includedir}/samba-4.0/ndr.h %dir %{_includedir}/samba-4.0/ndr %{_includedir}/samba-4.0/ndr/* %{_includedir}/samba-4.0/netapi.h %{_includedir}/samba-4.0/param.h %{_includedir}/samba-4.0/passdb.h %{_includedir}/samba-4.0/policy.h %{_includedir}/samba-4.0/rpc_common.h %{_includedir}/samba-4.0/samba/* %{_includedir}/samba-4.0/share.h %{_includedir}/samba-4.0/smb2_lease_struct.h %{_includedir}/samba-4.0/smbconf.h %{_includedir}/samba-4.0/smb_ldap.h %{_includedir}/samba-4.0/smbldap.h %{_includedir}/samba-4.0/tdr.h %{_includedir}/samba-4.0/tsocket.h %{_includedir}/samba-4.0/tsocket_internal.h %dir %{_includedir}/samba-4.0/util %{_includedir}/samba-4.0/util/* %{_includedir}/samba-4.0/util_ldb.h %{_libdir}/libdcerpc-binding.so %{_libdir}/libdcerpc-samr.so %{_libdir}/libdcerpc.so %{_libdir}/libdcerpc-server-core.so %{_libdir}/libndr-krb5pac.so %{_libdir}/libndr-nbt.so %{_libdir}/libndr-standard.so %{_libdir}/libndr.so %{_libdir}/libnetapi.so %{_libdir}/libsamba-credentials.so %{_libdir}/libsamba-errors.so %{_libdir}/libsamba-hostconfig.so %{_libdir}/libsamba-policy.so %{_libdir}/libsamba-util.so %{_libdir}/libsamdb.so %{_libdir}/libsmbconf.so %{_libdir}/libtevent-util.so %{_libdir}/pkgconfig/dcerpc.pc %{_libdir}/pkgconfig/dcerpc_samr.pc %{_libdir}/pkgconfig/ndr.pc %{_libdir}/pkgconfig/ndr_krb5pac.pc %{_libdir}/pkgconfig/ndr_nbt.pc %{_libdir}/pkgconfig/ndr_standard.pc %{_libdir}/pkgconfig/netapi.pc %{_libdir}/pkgconfig/samba-credentials.pc %{_libdir}/pkgconfig/samba-hostconfig.pc #%{_libdir}/pkgconfig/samba-policy.pc %{_libdir}/pkgconfig/samba-util.pc %{_libdir}/pkgconfig/samdb.pc %{_libdir}/libsamba-passdb.so %{_libdir}/libsmbldap.so ### Package samba-libs %files libs %defattr(-,root,system) %{_libdir}/libdcerpc-samr.so.* %{_libdir}/libsamba-policy.so.* # libraries needed by the public libraries %{_libdir}/samba/libLIBWBCLIENT-OLD-samba4.so %{_libdir}/samba/libMESSAGING-SEND-samba4.so %{_libdir}/samba/libMESSAGING-samba4.so %{_libdir}/samba/libREG-FULL-samba4.so %{_libdir}/samba/libRPC-SERVER-LOOP-samba4.so %{_libdir}/samba/libRPC-WORKER-samba4.so %{_libdir}/samba/libauth-unix-token-samba4.so %{_libdir}/samba/libauth4-samba4.so %{_libdir}/samba/libcluster-samba4.so %{_libdir}/samba/libcommon-auth-samba4.so %{_libdir}/samba/libctdb-event-client-samba4.so %{_libdir}/samba/libdcerpc-samba4.so #%{_libdir}/samba/libnon-posix-acls-samba4.so %{_libdir}/samba/libsamba-net-samba4.so %{_libdir}/samba/libsamba-python-samba4.so %{_libdir}/samba/libshares-samba4.so %{_libdir}/samba/libsmbpasswdparser-samba4.so %{_libdir}/samba/libxattr-tdb-samba4.so # Test package samba-test %files test %defattr(-,root,system) %{_bindir}/gentest %{_bindir}/locktest %{_bindir}/masktest %{_bindir}/ndrdump %{_bindir}/smbtorture %if %{with testsuite} # files to ignore in testsuite mode %{_libdir}/samba/libnss-wrapper.so %{_libdir}/samba/libsocket-wrapper.so %{_libdir}/samba/libuid-wrapper.so %endif # Test package samba-test-libs %files test-libs %defattr(-,root,system) # %if %with_dc #%{_libdir}/samba/libdlz-bind9-for-torture-samba4.so # %else %{_libdir}/samba/libdsdb-module-samba4.so # %endif %files winbind %defattr(-,root,system) %{_bindir}/ntlm_auth %{_bindir}/wbinfo* %{_sbindir}/winbindd* %{_libdir}/%{name}/idmap %{_libdir}/%{name}/nss_info %{_libdir}/samba/libnss-info-samba4.so %{_libdir}/samba/libidmap-samba4.so %{_libdir}/WINBIND.so %ghost %dir /var/run/winbindd %attr(750,root,wbpriv) %dir /var/lib/%{name}/winbindd_privileged /etc/rc.d/init.d/winbindd /etc/rc.d/rc2.d/Kwinbindd /etc/rc.d/rc2.d/Swinbindd /etc/rc.d/rc3.d/Kwinbindd /etc/rc.d/rc3.d/Swinbindd %files winbind-krb5-locator %defattr(-,root,system) %{_libdir}/samba/krb5 %{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so %files winbind-clients %defattr(-,root,system) %{_libdir}/libwbclient.so* %{_libdir}/security/pam_winbind.so %files winbind-devel %defattr(-,root,system) %{_includedir}/samba-4.0/wbclient.h %{_libdir}/pkgconfig/wbclient.pc %files -n libsmbclient %defattr(-,root,system) %{_libdir}/libsmbclient.so* %files -n libsmbclient-devel %defattr(-,root,system) %{_includedir}/samba-4.0/libsmbclient.h %{_libdir}/pkgconfig/smbclient.pc # Samba Python libraries %files python3 %defattr(-,root,system,-) %{python3_sitearch}/* # Perl IDL compiler %files pidl %defattr(-,root,system,-) %{_bindir}/pidl %{perl_lib}/Parse %{_datadir}/man/man1/pidl.1 %{_datadir}/man/man3/Parse*.3 %changelog * Wed Sep 28 2022 Ayappan P - 4.16.5-1 - Update to 4.16.5 version - Build with mit-krb5 (no longer uses bundled heimdal) - Disable cups as it is no longer updated in Toolbox * Tue Aug 09 2022 Ayappan P - 4.14.14-1 - Update to 4.14.14 * Thu Feb 03 2022 Ayappan P - 4.14.12-1 - Update to 4.14.12 * Mon Dec 20 2021 Ayappan P - 4.14.10-1 - Update to 4.14.10 * Fri Jun 18 2021 Ayappan P - 4.14.4-2 - Disable getgrset * Thu Jun 03 2021 Ayappan P - 4.14.4-1 - Update to version 4.14.4 * Tue Jun 01 2021 Ayappan P - 4.12.15-1 - Update to version 4.12.15 * Tue Feb 09 2021 Ayappan P - 4.12.10-2 - Fix for msdfs share issues * Fri Dec 18 2020 Ayappan P - 4.12.10-1 - Update to version 4.12.10 * Tue Sep 29 2020 Ayappan P - 4.12.7-1 - Update to version 4.12.7 * Thu Sep 17 2020 Ayappan P - 4.10.13-2 - Rebuilt with popt 1.18 - Proper popt & cups-libs dependency * Wed Feb 26 2020 Ayappan P - 4.10.13-1 - Update to 4.10.13 version * Mon Dec 16 2019 Ayappan P - 4.10.11-1 - Update to 4.10.11 version * Tue Jun 25 2019 Ayappan P - 4.10.2-1 - Update to 4.10.6 version * Wed May 08 2019 Ayappan P - 4.9.6-1 - Update to 4.9.6 version to fix the CVEs - CVE-2019-3870 - CVE-2019-3880 * Thu Dec 20 2018 Ayappan P - 4.9.3-1 - Update to 4.9.3 version * Thu Sep 20 2018 Ayappan P - 4.6.16-1 - Update to 4.6.16 version - Fix for msdfs share issue * Mon Jun 04 2018 Ayappan P - 4.6.15-1 - Update to 4.6.15 version * Mon Mar 05 2018 Ayappan P - 4.6.11-1 - Update to 4.6.11 version * Mon Jan 15 2018 Ayappan P - 4.6.8-1 - Update to 4.6.8 version - Export winbindd symbols patch added * Mon Sep 18 2017 Ayappan P - 4.6.4-2 - With ADS, CTDB and GPFS support - Heimdal Security fix CVE-2017-11103 * Mon May 29 2017 Michael Wilson - 4.5.10-1 - Update to version 4.5.10 - Patch13 for open(O_NOFOLLOW) not supported on 6.1, - and run time test 0x01000000 on 7.2 - else 0x02000000 on 7.1, * Mon Jan 16 2017 Michael Wilson - 4.5.3-1 - Update to version 4.5.3 * Wed Dec 08 2016 Michael Wilson - 4.5.1-1 - Update to version 4.5.1 * Wed Oct 26 2016 Michael Wilson - 4.5.0-3 - Add AIX installation guide in %doc and echo a message post install * Wed Oct 10 2016 Michael Wilson - 4.5.0-2 - Include LDFLAGS=-Wl,-blibpath - Add packages samba-test and samba-test-libs for gmake test - Add missing module libpyldb-util.so (required during selftest) * Wed Sep 07 2016 Michael Wilson - 4.5.0-1 - Update to version 4.5.0 - Patch9 modified for new resolv_wrapper.c source - Patch10 added for dirfd() in closefrom.c source - Patch11 still required to work around XLC internal error issue - Patch12 added for krb5pac.c to work around XLC preprocessor issue * Wed Sep 07 2016 Michael Wilson - 4.4.5-1 - Update to version 4.4.5 * Mon Aug 29 2016 Michael Wilson - 4.3.8-3 - Create a global meta-package to include all Samba component RPMs - Add the build trace to list of sources in SRPM * Mon Apr 18 2016 Michael Wilson - 4.3.8-2 - Remove dependencies on gtk2/gtk2-devel 2.8.3-9 * Wed Apr 13 2016 Michael Wilson - 4.3.8-1 - Update to version 4.3.8 for CVE security and regression fixes - Patch11 still required to work around latest XLC issue - Remove Patch0, it concerned 4.3.6 * Wed Apr 08 2016 Michael Wilson - 4.3.6-3 - Not downloaded as of 13th April - Patch0 in 589 source files for CVE security fixes - Patch11 in 8 source files to work around latest XLC issue - Remove Patch10, fix in latest XLC * Wed Mar 29 2016 Michael Wilson - 4.3.6-2 - Patch10 in unix_msg.c for sigsegv core dump in smbcontrol * Wed Mar 16 2016 Michael Wilson - 4.3.6-1 - Update to version 4.3.6 * Wed Jan 20 2016 Michael Wilson - 4.3.4-1 - Update to version 4.3.4 * Wed Aug 12 2015 Hamza Sellami - 4.2.0-1 - Update to version 4.2.0 * Tue Mar 31 2015 Gerard Visiedo - 3.6.24-2 - Initial port on aix6.1 * Mon Jun 23 2014 Michael Perzl - 3.6.24-1 - updated to version 3.6.24 * Wed Mar 12 2014 Michael Perzl - 3.6.23-1 - updated to version 3.6.23 * Tue Dec 10 2013 Michael Perzl - 3.6.22-1 - updated to version 3.6.22 * Sat Nov 30 2013 Michael Perzl - 3.6.21-1 - updated to version 3.6.21 * Mon Nov 11 2013 Michael Perzl - 3.6.20-1 - updated to version 3.6.20 * Thu Sep 26 2013 Michael Perzl - 3.6.19-1 - updated to version 3.6.19 * Wed Aug 28 2013 Michael Perzl - 3.6.18-2 - added the patch to fix the bug 8984 * Wed Aug 14 2013 Michael Perzl - 3.6.18-1 - updated to version 3.6.18 * Tue Aug 06 2013 Michael Perzl - 3.6.17-1 - updated to version 3.6.17 * Thu Jul 04 2013 Michael Perzl - 3.6.16-2 - added the missing shared libraries introduced with version 3.6.16 - reworked some of the RPM %pre(un) and %post(un) scripts * Thu Jun 20 2013 Michael Perzl - 3.6.16-1 - updated to version 3.6.16 * Thu May 09 2013 Michael Perzl - 3.6.15-1 - updated to version 3.6.15 * Fri May 03 2013 Michael Perzl - 3.6.14-1 - updated to version 3.6.14 * Fri May 03 2013 Michael Perzl - 3.6.13-2 - added missing dependency on samba-winbind-clients for samba-common (libwbclient.so) * Mon Mar 18 2013 Michael Perzl - 3.6.13-1 - updated to version 3.6.13 * Thu Jan 31 2013 Michael Perzl - 3.6.12-1 - updated to version 3.6.12 * Tue Jan 22 2013 Michael Perzl - 3.6.11-1 - updated to version 3.6.11 * Tue Dec 11 2012 Michael Perzl - 3.6.10-1 - updated to version 3.6.10 * Tue Oct 30 2012 Michael Perzl - 3.6.9-1 - updated to version 3.6.9 * Mon Oct 15 2012 Michael Perzl - 3.6.8-1 - updated to version 3.6.8 * Tue Aug 07 2012 Michael Perzl - 3.6.7-1 - updated to version 3.6.7 * Mon Jun 25 2012 Michael Perzl - 3.6.6-1 - updated to version 3.6.6 * Mon Apr 30 2012 Michael Perzl - 3.6.5-1 - updated to version 3.6.5 * Thu Apr 19 2012 Michael Perzl - 3.6.4-1 - first version for AIX V5.1 and higher