[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/samba/samba.desc [COPY] Copyright (C) 2004 - 2025 The T2 SDE Project [COPY] Copyright (C) 1998 - 2003 ROCK Linux Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] The free SMB / CIFS fileserver and client [T] Samba is a SMB server that runs on Unix and other operating [T] systems. It allows these operating systems (currently Unix, Netware, [T] OS/2 and AmigaDOS) to act as a file and print server for SMB and CIFS [T] clients. There are many Lan-Manager compatible clients such as [T] LanManager for DOS, Windows for Workgroups, Windows NT, Windows 95, [T] Linux smbfs, OS/2, Pathworks and more. [T] [T] Please note that there are significant security implications to [T] running this server, and the smb.conf(5) manpage should be regarded [T] as mandatory reading before proceeding with installation. [U] https://www.samba.org/ [A] Andrew Tridgell [A] Support {Mail List} [M] Rene Rebe [C] extra/server [F] NO-LTO [E] opt glusterfs fuse2 [L] GPL [S] Stable [V] 4.22.2 [P] X -----5---9 200.500 [D] b1cec00c36817492cdf90c3a14a3bd2fc30d0d332b12a5a06cab4f22 samba-4.22.2.tar.gz https://download.samba.org/pub/samba/stable/ if [ $prefix_auto = 1 ]; then if [ "$SDECFG_PKG_SAMBA_CORE_PREFIX" ]; then prefix="$SDECFG_PKG_SAMBA_CORE_PREFIX" else prefix="opt/samba" fi set_confopt fi [ "${prefix#opt/}" == "$prefix" ] && sysconfdir="$sysconfdir/samba" cleanconfopt=0 var_remove confopt ' ' --disable-debug var_remove_regex confopt ' ' '--with-sysroot=.*' var_remove_regex confopt ' ' '--host=.*' var_remove_regex confopt ' ' '--build=.*' confopt= var_append confopt ' ' "--with-automount \ --with-syslog --with-configdir=$sysconfdir \ --with-privatedir=$sysconfdir/private \ --with-quotas" if atstage cross; then var_append confopt ' ' --disable-python fi pkginstalled pam && atstage native && var_append confopt ' ' --with-pam # --with-pam_smbpass" pkginstalled lmdb || var_append confopt ' ' --without-ldb-lmdb pkginstalled jansson || var_append confopt ' ' --without-json pkginstalled libarchive || var_append confopt ' ' --without-libarchive pkginstalled acl && var_append confopt ' ' --with-acl-support || var_append confopt ' ' --without-acl-support pkginstalled cups || var_append confopt ' ' --disable-cups pkginstalled glusterfs || var_append confopt ' ' --disable-glusterfs #var_append confopt ' ' --with-nisplus-home # let samba configure find ldap and enable ldapsam if pkginstalled openldap; then pkgprefix -t openldap var_append confopt ' ' --with-ldap var_append confopt ' ' "CFLAGS=\"$CFLAGS${CFLAGS:+ }-I$(pkgprefix includedir openldap)\"" var_append confopt ' ' "CPPFLAGS=\"$CPPFLAGS${CPPFLAGS:+ }-I$(pkgprefix includedir openldap)\"" var_append confopt ' ' "LDFLAGS=\"$LDFLAGS${LDFLAGS:+ }-L$(pkgprefix libdir openldap)\"" else var_append confopt ' ' '--without-ldap --without-ads --without-ad-dc' fi samba_pm() { # FIXME: this should be down with pkgprefix libdir cups [ -d $root/usr/lib/cups/backend/ ] && ln -sf $bindir/smbspool $root/usr/lib/cups/backend/smb chmod 755 smbadduser; cp -vf smbadduser $root$bindir/ cd .. sed 's/; encrypt passwords = yes/ encrypt passwords = yes/' \ examples/smb.conf.default > $root$docdir/smb.conf cat > $root$sysconfdir/lmhosts <<'EOS' # T2: Samba lmhosts # # This file contains host maps for NetBIOS # It is similar to the /etc/hosts file format # See lmhosts (5) for more info. # # Format is: # 0.0.0.0 NetBIOS_Name EOS # xinetd integration readme sed "s,D_sbindir,$sbindir," < $confdir/README.xinetd > $root$docdir/README.xinetd } #hook_add postmake 3 "samba_pm" # install examples hook_add postmake 5 "cp -vRf examples $root$docdir/"