1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 maintainer = Christian Schmidt <christian.schmidt@ipfire.org>
11 groups = Networking/Daemons
12 url = http://www.samba.org/
13 license = GPLv3+ and LGPLv3+
14 summary = Server and Client software to interoperate with Windows machines.
17 Samba is the suite of programs by which a lot of PC-related machines
18 share files, printers, and other information (such as lists of
19 available files and printers). The Windows NT, OS/2, and Linux
20 operating systems support this natively, and add-on packages can
21 enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS,
22 and more. This package provides an SMB/CIFS server that can be used to
23 provide network services to SMB/CIFS clients.
24 Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT
25 need the NetBEUI (Microsoft Raw NetBIOS frame) protocol.
28 source_dl = http://www.samba.org/samba/ftp/stable/
31 -D_FILE_OFFSET_BITS=64 \
32 -D_GNU_SOURCE -DLDAP_DEPRECATED
53 DIR_APP = %{DIR_SRC}/%{thisapp}/source3
55 configure_options += \
57 --localstatedir=/var \
58 --with-lockdir=%{sharedstatedir}/samba \
59 --with-piddir=%{rundir} \
60 --with-mandir=%{mandir} \
61 --with-privatedir=%{sharedstatedir}/samba/private \
62 --with-logfilebase=/var/log/samba \
63 --with-modulesdir=%{libdir}/samba \
64 --with-configdir=%{sysconfdir}/samba \
65 --with-pammodulesdir=/%{lib}/security \
66 --with-swatdir=%{datadir}/swat \
69 --with-libsmbsharemodes \
73 --with-sendfile-support \
77 --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
79 make_build_targets += \
84 mkdir -pv %{BUILDROOT}%{sysconfdir}/samba
85 echo "127.0.0.1 localhost" > %{BUILDROOT}%{sysconfdir}/samba/lmhosts
86 cp -vf %{DIR_SOURCE}/smb.conf %{BUILDROOT}/%{sysconfdir}/%{name}
92 prerequires = systemd-units
93 configfiles = /etc/smb.conf
94 requires += %{name}-libs = %{thisver}
101 package %{name}-devel
104 requires += %{name}-libs = %{thisver}
107 package %{name}-debuginfo