1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Networking/Daemons
11 url = http://www.samba.org/
12 license = GPLv3+ and LGPLv3+
13 summary = Server and Client software to interoperate with Windows machines.
16 Samba is the suite of programs by which a lot of PC-related machines
17 share files, printers, and other information (such as lists of
18 available files and printers). The Windows NT, OS/2, and Linux
19 operating systems support this natively, and add-on packages can
20 enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS,
21 and more. This package provides an SMB/CIFS server that can be used to
22 provide network services to SMB/CIFS clients.
23 Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT
24 need the NetBEUI (Microsoft Raw NetBIOS frame) protocol.
27 source_dl = http://www.samba.org/samba/ftp/stable/
30 -D_FILE_OFFSET_BITS=64 \
31 -D_GNU_SOURCE -DLDAP_DEPRECATED
46 libldb-devel >= 1.1.27
47 libtalloc-devel >= 2.1.8
49 libtevent-devel >= 0.9.29
63 configure_options += \
66 --localstatedir=%{localstatedir} \
67 --with-lockdir=%{sharedstatedir}/samba \
68 --with-piddir=%{localstatedir}/run/samba \
69 --with-privatedir=%{sharedstatedir}/samba/private \
70 --with-logfilebase=%{localstatedir}/log/samba \
71 --with-modulesdir=%{libdir}/samba \
72 --with-configdir=%{sysconfdir}/samba \
73 --with-pammodulesdir=/%{lib}/security \
77 --with-sendfile-support \
81 --bundled-libraries="!zlib,!popt,!tdb,!pytdb,!talloc,!pytalloc,!pytalloc-util,!tevent,!pytevent,!ldb,!pyldb,!pyldb-util" \
82 --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
85 mkdir -pv %{BUILDROOT}%{sysconfdir}/samba
86 echo "127.0.0.1 localhost" > %{BUILDROOT}%{sysconfdir}/samba/lmhosts
87 cp -vf %{DIR_SOURCE}/smb.conf %{BUILDROOT}/%{sysconfdir}/%{name}
100 prerequires = systemd-units
101 configfiles = /etc/smb.conf
102 requires += %{name}-libs = %{thisver}
109 package %{name}-devel
112 requires += %{name}-libs = %{thisver}
115 package %{name}-debuginfo