]> git.ipfire.org Git - ipfire-3.x.git/blame - samba/samba.nm
samba: Update to version 4.19.3
[ipfire-3.x.git] / samba / samba.nm
CommitLineData
b534427f 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
b534427f
MT
4###############################################################################
5
802ea3af 6name = samba
91f30faf 7version = 4.19.3
be6498df 8release = 1
b534427f 9
802ea3af 10groups = Networking/Daemons
e14a82a1 11url = https://www.samba.org/
802ea3af
MT
12license = GPLv3+ and LGPLv3+
13summary = Server and Client software to interoperate with Windows machines.
b534427f 14
802ea3af
MT
15description
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
b534427f 24 need the NetBEUI (Microsoft Raw NetBIOS frame) protocol.
802ea3af
MT
25end
26
e14a82a1 27source_dl = https://www.samba.org/samba/ftp/stable/
b534427f 28
802ea3af
MT
29CFLAGS += \
30 -D_FILE_OFFSET_BITS=64 \
31 -D_GNU_SOURCE -DLDAP_DEPRECATED
b534427f 32
802ea3af
MT
33build
34 requires
a183af94 35 /usr/bin/rpcgen
802ea3af
MT
36 autoconf
37 automake
a183af94 38 bison
802ea3af 39 avahi-devel
d202cbf7 40 cups-devel >= 2.1.4
a183af94 41 dbus-devel
d202cbf7 42 docbook-xsl
a183af94 43 flex
c11bcb63 44 gettext
a183af94
SS
45 gnutls-devel >= 3.7.8
46 gpgme-devel
47 jansson-devel
802ea3af 48 ncurses-devel
c11bcb63 49 libacl-devel
a183af94 50 libarchive-devel
d202cbf7 51 libattr-devel
802ea3af 52 libcap-devel
be6498df
AB
53 libldb-devel >= 2.8.0
54 libtalloc-devel >= 2.4.1
55 libtdb-devel >= 1.4.9
56 libtevent-devel >= 0.15.0
5aa616d0 57 libxcrypt-devel
802ea3af
MT
58 openldap-devel
59 openssl-devel
60 pam-devel
5aa616d0
SS
61 perl(base)
62 perl(FindBin)
a183af94 63 perl(JSON)
be6498df 64 perl(JSON::PP)
a183af94 65 perl(Parse::Yapp::Driver) >= 1.21
802ea3af 66 popt-devel
a183af94
SS
67 python3-devel
68 python3-dns
69 python3-markdown
70 python3-ldb
71 python3-talloc
72 python3-tdb
73 python3-tevent
802ea3af
MT
74 readline-devel
75 which
c11bcb63 76 zlib-devel
802ea3af 77 end
d604bfdf 78
802ea3af 79 configure_options += \
d202cbf7 80 --enable-fhs \
a5d9074a 81 --prefix=%{prefix} \
d202cbf7 82 --localstatedir=%{localstatedir} \
a5d9074a 83 --with-lockdir=%{sharedstatedir}/samba \
d202cbf7 84 --with-piddir=%{localstatedir}/run/samba \
a5d9074a 85 --with-privatedir=%{sharedstatedir}/samba/private \
d202cbf7 86 --with-logfilebase=%{localstatedir}/log/samba \
a5d9074a
MT
87 --with-modulesdir=%{libdir}/samba \
88 --with-configdir=%{sysconfdir}/samba \
a183af94 89 --with-pammodulesdir=%{libdir}/security \
802ea3af 90 --with-automount \
802ea3af 91 --with-pam \
802ea3af
MT
92 --with-quotas \
93 --with-sendfile-support \
94 --with-syslog \
95 --with-utmp \
96 --with-winbind \
d202cbf7 97 --bundled-libraries="!zlib,!popt,!tdb,!pytdb,!talloc,!pytalloc,!pytalloc-util,!tevent,!pytevent,!ldb,!pyldb,!pyldb-util" \
802ea3af 98 --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
b534427f 99
802ea3af 100 install_cmds
a5d9074a
MT
101 mkdir -pv %{BUILDROOT}%{sysconfdir}/samba
102 echo "127.0.0.1 localhost" > %{BUILDROOT}%{sysconfdir}/samba/lmhosts
093d622f 103 cp -vf %{DIR_SOURCE}/smb.conf %{BUILDROOT}/%{sysconfdir}/%{name}
b534427f 104
1ba42494
SS
105 # Drop /var/run
106 rm -rvf %{BUILDROOT}%{localstatedir}/run
d202cbf7
AM
107 end
108end
109
802ea3af
MT
110packages
111 package %{name}
093d622f
CS
112 prerequires = systemd-units
113 configfiles = /etc/smb.conf
114 requires += %{name}-libs = %{thisver}
115 end
c1fa1b26 116
802ea3af
MT
117 package %{name}-libs
118 template LIBS
119 end
c1fa1b26 120
802ea3af
MT
121 package %{name}-devel
122 template DEVEL
c11bcb63 123
a5d9074a 124 requires += %{name}-libs = %{thisver}
802ea3af 125 end
1f9bc2f0
MT
126
127 package %{name}-debuginfo
128 template DEBUGINFO
129 end
802ea3af 130end