]> git.ipfire.org Git - ipfire-3.x.git/blame - samba/samba.nm
samba: Update to 4.17.5
[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
a183af94 7version = 4.17.5
f7dd4335 8release = 1
b534427f 9
802ea3af
MT
10groups = Networking/Daemons
11url = http://www.samba.org/
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
27source_dl = http://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
a183af94 53 libldb-devel = 2.6.1
d202cbf7
AM
54 libtalloc-devel >= 2.1.8
55 libtdb-devel >=1.3.11
56 libtevent-devel >= 0.9.29
802ea3af
MT
57 openldap-devel
58 openssl-devel
59 pam-devel
a183af94
SS
60 perl(JSON)
61 perl(Parse::Yapp::Driver) >= 1.21
802ea3af 62 popt-devel
a183af94
SS
63 python3-devel
64 python3-dns
65 python3-markdown
66 python3-ldb
67 python3-talloc
68 python3-tdb
69 python3-tevent
802ea3af
MT
70 readline-devel
71 which
c11bcb63 72 zlib-devel
802ea3af 73 end
d604bfdf 74
802ea3af 75 configure_options += \
d202cbf7 76 --enable-fhs \
a5d9074a 77 --prefix=%{prefix} \
d202cbf7 78 --localstatedir=%{localstatedir} \
a5d9074a 79 --with-lockdir=%{sharedstatedir}/samba \
d202cbf7 80 --with-piddir=%{localstatedir}/run/samba \
a5d9074a 81 --with-privatedir=%{sharedstatedir}/samba/private \
d202cbf7 82 --with-logfilebase=%{localstatedir}/log/samba \
a5d9074a
MT
83 --with-modulesdir=%{libdir}/samba \
84 --with-configdir=%{sysconfdir}/samba \
a183af94 85 --with-pammodulesdir=%{libdir}/security \
802ea3af 86 --with-automount \
802ea3af 87 --with-pam \
802ea3af
MT
88 --with-quotas \
89 --with-sendfile-support \
90 --with-syslog \
91 --with-utmp \
92 --with-winbind \
d202cbf7 93 --bundled-libraries="!zlib,!popt,!tdb,!pytdb,!talloc,!pytalloc,!pytalloc-util,!tevent,!pytevent,!ldb,!pyldb,!pyldb-util" \
802ea3af 94 --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
b534427f 95
802ea3af 96 install_cmds
a5d9074a
MT
97 mkdir -pv %{BUILDROOT}%{sysconfdir}/samba
98 echo "127.0.0.1 localhost" > %{BUILDROOT}%{sysconfdir}/samba/lmhosts
093d622f 99 cp -vf %{DIR_SOURCE}/smb.conf %{BUILDROOT}/%{sysconfdir}/%{name}
802ea3af
MT
100 end
101end
b534427f 102
d202cbf7
AM
103quality-agent
104 whitelist_rpath
105 %{libdir}/samba
106 %{libdir}/tdb
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