]>
Commit | Line | Data |
---|---|---|
29511e6d | 1 | # |
e4bb74d8 | 2 | # Conditional build: |
a3c4e78e JB |
3 | %bcond_without ads # ActiveDirectory support |
4 | %bcond_without cups # CUPS support | |
5 | %bcond_without ldap # LDAP support | |
6 | %bcond_without avahi # Avahi support | |
ff9592a9 | 7 | %bcond_without dmapi # DMAPI support |
52a1c787 | 8 | %bcond_without systemd # systemd integration |
5a591c79 | 9 | %bcond_with system_heimdal # Use system Heimdal libraries [was broken in samba 4.4.x + heimdal 1.5.x] |
a9009cd3 | 10 | %bcond_without system_libs # system libraries (talloc,tdb,tevent,ldb,ntdb) |
ea29dc9e | 11 | %bcond_without ctdb_pcp # Performance Co-Pilot support for CTDB |
d8ad099f AM |
12 | # turn on when https://bugzilla.samba.org/show_bug.cgi?id=11764 is fixed |
13 | %bcond_with replace | |
105507bc | 14 | |
e71e0470 | 15 | %if %{with system_libs} |
5a591c79 | 16 | %define ldb_ver 1.1.27 |
c1740968 | 17 | %define ntdb_ver 1.0 |
5a591c79 JB |
18 | %define talloc_ver 2:2.1.8 |
19 | %define tdb_ver 2:1.3.10 | |
20 | %define tevent_ver 0.9.29 | |
4ecf4d28 JB |
21 | %endif |
22 | ||
ff9592a9 | 23 | # dmapi-devel forces largefile/64bit stuff that isn't detected properly |
5a591c79 | 24 | # -- what is the exact problem? samba 4.5.6 builds with DMAPI on i686 |
ff9592a9 AM |
25 | %ifarch %{ix86} |
26 | %undefine with_dmapi | |
27 | %endif | |
28 | ||
a3c4e78e JB |
29 | %include /usr/lib/rpm/macros.perl |
30 | ||
c38c2d9d | 31 | # NOTE: packages order is: server + additions, common, clients, libs+devel, ldap |
e00cc9d3 | 32 | %define virusfilter_version 0.1.4 |
c6a4fcd1 JR |
33 | Summary: Samba Active Directory and SMB server |
34 | Summary(pl.UTF-8): Serwer Samba Active Directory i SMB | |
c48f10a7 | 35 | Name: samba |
42352377 JB |
36 | Version: 4.5.6 |
37 | Release: 1 | |
6646cd44 | 38 | Epoch: 1 |
6bef715a | 39 | License: GPL v3 |
11d2c190 | 40 | Group: Networking/Daemons |
3d62e122 | 41 | Source0: https://www.samba.org/ftp/samba/samba-%{version}.tar.gz |
42352377 | 42 | # Source0-md5: 7ee18b7f5266e469df43756685009ce3 |
ba850b61 | 43 | Source1: smb.init |
46c25e95 | 44 | Source2: samba.pamd |
46c25e95 JR |
45 | Source4: samba.sysconfig |
46 | Source5: samba.logrotate | |
138aecb0 | 47 | Source6: smb.conf |
68134596 | 48 | Source7: winbind.init |
49 | Source8: winbind.sysconfig | |
cd86127c | 50 | Source9: samba.init |
e00cc9d3 JB |
51 | Source10: https://bitbucket.org/fumiyas/samba-virusfilter/downloads/samba-virusfilter-%{virusfilter_version}.tar.bz2 |
52 | # Source10-md5: 4bef017601d87f52f8c82819a3ff56ee | |
34895621 | 53 | Patch0: system-heimdal.patch |
7645ba99 JB |
54 | Patch1: %{name}-c++-nofail.patch |
55 | Patch2: %{name}-lprng-no-dot-printers.patch | |
0d6de682 JR |
56 | Patch3: systemd-pid-dir.patch |
57 | Patch4: unicodePwd-nthash-values-over-LDAP.patch | |
3d62e122 | 58 | Patch5: %{name}-heimdal.patch |
0d6de682 | 59 | Patch6: server-role.patch |
cc54fa40 | 60 | Patch7: %{name}-bug-9816.patch |
08caf729 | 61 | URL: https://www.samba.org/ |
bd658e80 | 62 | BuildRequires: acl-devel |
a0d23d1e | 63 | %{?with_avahi:BuildRequires: avahi-devel} |
95229e05 | 64 | BuildRequires: ceph-devel >= 0.73 |
62dc8910 | 65 | %{?with_cups:BuildRequires: cups-devel >= 1:1.2.0} |
2dd82018 | 66 | BuildRequires: cyrus-sasl-devel >= 2 |
295b7a55 | 67 | BuildRequires: dbus-devel |
ff9592a9 | 68 | %{?with_dmapi:BuildRequires: dmapi-devel} |
a3c759b7 | 69 | BuildRequires: docbook-style-xsl |
2dd82018 | 70 | # just FAM API |
5b010594 | 71 | BuildRequires: gamin-devel |
ff01b4ff | 72 | BuildRequires: gdbm-devel |
a458c5bb | 73 | BuildRequires: gettext-tools |
1ae9cf92 | 74 | BuildRequires: glusterfs-devel |
c1740968 | 75 | BuildRequires: gnutls-devel >= 3.0.0 |
dbb692ff | 76 | %{?with_system_heimdal:BuildRequires: heimdal-devel >= 1.5.3-1} |
9f74dab7 | 77 | BuildRequires: iconv |
1125cc60 | 78 | BuildRequires: keyutils-devel |
a3c759b7 | 79 | BuildRequires: libaio-devel |
c1740968 | 80 | BuildRequires: libarchive-devel >= 3.1.2 |
2dd82018 | 81 | BuildRequires: libcap-devel |
34895621 | 82 | BuildRequires: libcom_err-devel |
53ce942a | 83 | BuildRequires: libmagic-devel |
4d8c5e20 | 84 | BuildRequires: libnscd-devel |
40d90f9e | 85 | BuildRequires: make >= 3.81 |
0f00e211 | 86 | BuildRequires: ncurses-devel >= 5.2 |
e9c7865a | 87 | BuildRequires: ncurses-ext-devel >= 5.2 |
c1740968 | 88 | BuildRequires: nss_wrapper >= 1.0.2 |
78d04323 | 89 | %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0} |
793ad0f8 | 90 | BuildRequires: pam-devel >= 0.99.8.1 |
ea29dc9e | 91 | %{?with_ctdb_pcp:BuildRequires: pcp-devel} |
a3c4e78e | 92 | BuildRequires: perl-ExtUtils-MakeMaker |
2dd82018 | 93 | BuildRequires: perl-Parse-Yapp >= 1.05 |
9f74dab7 | 94 | BuildRequires: pkgconfig |
f092c096 | 95 | BuildRequires: popt-devel |
16c4fca4 | 96 | %{?with_pgsql:BuildRequires: postgresql-devel} |
2dd82018 | 97 | BuildRequires: python-devel >= 1:2.5.0 |
190a259b | 98 | BuildRequires: python-dns |
2dd82018 | 99 | BuildRequires: python-modules >= 1:2.5.0 |
fa56ac48 | 100 | BuildRequires: python-subunit |
190a259b | 101 | BuildRequires: python-testtools |
f092c096 | 102 | BuildRequires: readline-devel >= 4.2 |
a3c4e78e | 103 | BuildRequires: rpm-perlprov |
a3c759b7 | 104 | BuildRequires: rpm-pythonprov |
6a43f27b | 105 | BuildRequires: rpmbuild(macros) >= 1.647 |
e155c475 | 106 | BuildRequires: sed >= 4.0 |
baa92be6 | 107 | BuildRequires: socket_wrapper >= 1.1.2 |
fa56ac48 | 108 | BuildRequires: subunit-devel |
52a1c787 JB |
109 | %{?with_systemd:BuildRequires: systemd-devel} |
110 | BuildRequires: xfsprogs-devel | |
2dd82018 | 111 | BuildRequires: zlib-devel >= 1.2.3 |
e71e0470 | 112 | %if %{with system_libs} |
e71e0470 | 113 | BuildRequires: ldb-devel >= %{ldb_ver} |
a9009cd3 | 114 | BuildRequires: ntdb-devel >= %{ntdb_ver} |
e71e0470 | 115 | BuildRequires: python-ldb-devel >= %{ldb_ver} |
0c995865 | 116 | BuildRequires: python-ntdb >= %{ntdb_ver} |
e71e0470 JR |
117 | BuildRequires: python-talloc-devel >= %{talloc_ver} |
118 | BuildRequires: python-tevent >= %{tevent_ver} | |
05913998 JR |
119 | BuildRequires: talloc-devel >= %{talloc_ver} |
120 | BuildRequires: tdb-devel >= %{tdb_ver} | |
121 | BuildRequires: tevent-devel >= %{tevent_ver} | |
e71e0470 | 122 | %endif |
baa92be6 | 123 | BuildRequires: uid_wrapper >= 1.1.0 |
34895621 | 124 | BuildConflicts: libbsd-devel |
656b05ab | 125 | Requires(post,preun): /sbin/chkconfig |
6646cd44 | 126 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
17dffdb7 | 127 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
69a33c0e | 128 | # for samba_{dnsupdate,kcc,spnupdate,upgradedns} scripts |
cd83be60 | 129 | Requires: logrotate >= 3.7-4 |
793ad0f8 | 130 | Requires: pam >= 0.99.8.1 |
0c995865 | 131 | Requires: python-samba = %{epoch}:%{version}-%{release} |
8bf54aa6 | 132 | Requires: rc-scripts >= 0.4.0.12 |
27879fe9 | 133 | Requires: setup >= 2.4.6-7 |
dce29ff7 | 134 | Requires: systemd-units >= 38 |
62dc8910 | 135 | # smbd links with libcups |
ac083993 | 136 | %{?with_cups:Requires: cups-lib >= 1:1.2.0} |
e765216e JR |
137 | Obsoletes: samba-doc-html |
138 | Obsoletes: samba-doc-pdf | |
05913998 | 139 | Obsoletes: samba-pdb-xml |
c6a4fcd1 | 140 | Obsoletes: samba-vfs-audit |
0c995865 | 141 | Obsoletes: samba-vfs-block |
c6a4fcd1 JR |
142 | Obsoletes: samba-vfs-cap |
143 | Obsoletes: samba-vfs-catia | |
144 | Obsoletes: samba-vfs-default_quota | |
145 | Obsoletes: samba-vfs-expand_msdfs | |
146 | Obsoletes: samba-vfs-fake_perms | |
147 | Obsoletes: samba-vfs-netatalk | |
c6a4fcd1 JR |
148 | Obsoletes: samba-vfs-readahead |
149 | Obsoletes: samba-vfs-readonly | |
0c995865 | 150 | Obsoletes: samba-vfs-recycle |
c6a4fcd1 JR |
151 | Obsoletes: samba-vfs-scannedonly |
152 | Obsoletes: samba-vfs-shadow_copy | |
c93984f5 | 153 | Obsoletes: samba3 |
c6a4fcd1 JR |
154 | Obsoletes: samba3-server |
155 | Obsoletes: samba3-vfs-audit | |
156 | Obsoletes: samba3-vfs-cap | |
157 | Obsoletes: samba3-vfs-catia | |
158 | Obsoletes: samba3-vfs-default_quota | |
159 | Obsoletes: samba3-vfs-expand_msdfs | |
160 | Obsoletes: samba3-vfs-fake_perms | |
161 | Obsoletes: samba3-vfs-netatalk | |
c6a4fcd1 JR |
162 | Obsoletes: samba3-vfs-readahead |
163 | Obsoletes: samba3-vfs-readonly | |
0c995865 | 164 | Obsoletes: samba3-vfs-recycle |
c6a4fcd1 JR |
165 | Obsoletes: samba3-vfs-scannedonly |
166 | Obsoletes: samba3-vfs-shadow_copy | |
c93984f5 | 167 | Obsoletes: samba4 |
c6a4fcd1 | 168 | Obsoletes: samba4-common-server |
da3dadf3 | 169 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1925a8b4 | 170 | |
c10bc67e | 171 | %define _sambahome /home/services/samba |
ddea14b0 | 172 | %if %{with cups} |
478e9eab | 173 | %define cups_serverbin %{_prefix}/lib/cups |
fd9d8b85 | 174 | %endif |
99795f36 | 175 | %define schemadir /usr/share/openldap/schema |
92c45d25 | 176 | |
01485082 ER |
177 | # CFLAGS modified (the second ./configure) |
178 | %undefine configure_cache | |
179 | ||
e11c6ca1 | 180 | %description |
cfa67cf6 | 181 | Samba provides an SMB server which can be used to provide network |
182 | services to SMB (sometimes called "Lan Manager") clients, including | |
183 | various versions of MS Windows, OS/2, and other Linux machines. Samba | |
184 | also provides some SMB clients, which complement the built-in SMB | |
185 | filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols | |
186 | and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol. | |
e11c6ca1 | 187 | |
96088f7b JR |
188 | %description -l pl.UTF-8 |
189 | Samba udostępnia serwer SMB, który może być użyty w celu dostarczenia | |
190 | usług sieciowych (potocznie zwanych "Lan Manager"), dla klientów | |
191 | takich jak MS Windows, OS/2 a także maszyn linuksowych. W pakiecie | |
192 | znajduje się również oprogramowanie klienckie. Samba używa protokołu | |
193 | NetBIOS po TCP/IP (NetBT) i nie wymaga protokołu NetBEUI. Ta wersja ma | |
194 | pełne wsparcie dla blokowania plików, a także wsparcie dla kodowania | |
195 | haseł w standardzie MS i zarządzania bazą WINS. | |
196 | ||
c38c2d9d JB |
197 | %package vfs-ceph |
198 | Summary: VFS module to host shares on Ceph file system | |
199 | Summary(pl.UTF-8): Moduł VFS do serwowania zasobów z systemu plików Ceph | |
200 | Group: Networking/Daemons | |
201 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
ac6f9d13 | 202 | |
c38c2d9d JB |
203 | %description vfs-ceph |
204 | VFS module to host shares on Ceph file system. | |
ac6f9d13 | 205 | |
0c995865 | 206 | This module only works with the libceph.so user-space client. It is |
c38c2d9d JB |
207 | not needed if you are using the kernel client or the FUSE client. |
208 | ||
209 | %description vfs-ceph -l pl.UTF-8 | |
210 | Moduł VFS do serwowania zasobów z systemu plików Ceph. | |
211 | ||
212 | Ten moduł działa jedynie z klientem przestrzeni użytkownika | |
213 | libceph.so. Jest zbędny w przypadku używania klienta dostarczanego | |
214 | przez jądro lub FUSE. | |
215 | ||
216 | %package vfs-glusterfs | |
217 | Summary: VFS module to host shares on GlusterFS file system | |
218 | Summary(pl.UTF-8): Moduł VFS do serwowania zasobów z systemu plików GlusterFS | |
219 | Group: Networking/Daemons | |
220 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
221 | ||
222 | %description vfs-glusterfs | |
223 | VFS module to host shares on GlusterFS file system. | |
224 | ||
225 | %description vfs-glusterfs -l pl.UTF-8 | |
226 | Moduł VFS do serwowania zasobów z systemu plików GlusterFS. | |
227 | ||
ac6f9d13 | 228 | %package common |
ea8d81e5 | 229 | Summary: Files used by both Samba servers and clients |
a3c4e78e | 230 | Summary(pl.UTF-8): Pliki używane przez serwer i klientów Samby |
2eedd257 | 231 | Group: Networking/Daemons |
17dffdb7 | 232 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
69a33c0e | 233 | # for samba-tool script |
5a89b1cc | 234 | Requires: python-samba = %{epoch}:%{version}-%{release} |
4f12cc62 | 235 | Obsoletes: samba3-common |
c93984f5 | 236 | Obsoletes: samba4-common |
ac6f9d13 MC |
237 | |
238 | %description common | |
239 | Samba-common provides files necessary for both the server and client | |
240 | packages of Samba. | |
241 | ||
96088f7b JR |
242 | %description common -l pl.UTF-8 |
243 | Samba-common dostarcza pliki niezbędne zarówno dla serwera jak i | |
4ecf4d28 | 244 | klientów Samby. |
ac6f9d13 | 245 | |
c38c2d9d JB |
246 | %package client |
247 | Summary: Samba client programs | |
248 | Summary(pl.UTF-8): Klienci serwera Samba | |
249 | Group: Applications/Networking | |
250 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
251 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
dbb692ff | 252 | %{?with_system_heimdal:Requires: heimdal-libs >= 1.5.3-1} |
0c995865 | 253 | Requires: libsmbclient = %{epoch}:%{version}-%{release} |
c38c2d9d JB |
254 | Suggests: cifs-utils |
255 | Obsoletes: samba3-client | |
256 | Obsoletes: samba4-client | |
257 | Obsoletes: smbfs | |
d7a7a298 | 258 | |
c38c2d9d JB |
259 | %description client |
260 | Samba-client provides some SMB clients, which complement the build-in | |
261 | SMB filesystem in Linux. These allow accessing of SMB shares and | |
262 | printing to SMB printers. | |
d7a7a298 | 263 | |
c38c2d9d JB |
264 | %description client -l pl.UTF-8 |
265 | Samba-client dostarcza programy uzupełniające obsługę systemu plików | |
266 | SMB zawartą w jądrze. Pozwalają one na współdzielenie zasobów SMB i | |
267 | drukowanie w sieci SMB. | |
d7a7a298 | 268 | |
29511e6d | 269 | %package winbind |
29511e6d | 270 | Summary: Samba-winbind daemon, utilities and documentation |
fa1faeca | 271 | Summary(pl.UTF-8): Demon samba-winbind, narzędzia i dokumentacja |
29511e6d | 272 | Group: Networking/Daemons |
29511e6d | 273 | Requires(post,preun): /sbin/chkconfig |
8ef2303e | 274 | Requires(post,preun,postun): systemd-units >= 38 |
6646cd44 | 275 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
17dffdb7 | 276 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
8ef2303e JR |
277 | Requires: systemd-units >= 38 |
278 | Obsoletes: samba3-winbind | |
c93984f5 | 279 | Obsoletes: samba4-winbind |
c9d44e8b JB |
280 | # pam_winbind is not complete replacement, but pam_smbpass has been removed (in samba 4.4) |
281 | #Obsoletes: pam-pam_smbpass | |
29511e6d | 282 | |
283 | %description winbind | |
284 | Provides the winbind daemon and testing tools to allow authentication | |
285 | and group/user enumeration from a Windows or Samba domain controller. | |
286 | ||
96088f7b JR |
287 | %description winbind -l pl.UTF-8 |
288 | Pakiet zawiera demona winbind oraz narzędzia testowe. Umożliwia | |
289 | uwierzytelnianie i wyliczanie grup/użytkowników z kontrolera domeny | |
4d750758 JB |
290 | Windows lub Samba. |
291 | ||
c38c2d9d JB |
292 | %package -n cups-backend-smb |
293 | Summary: CUPS backend for printing to SMB printers | |
294 | Summary(pl.UTF-8): Backend CUPS-a drukujący na drukarkach SMB | |
295 | Group: Applications/Printing | |
296 | Requires: %{name}-client = %{epoch}:%{version}-%{release} | |
297 | Requires: cups >= 1:1.2.0 | |
298 | Obsoletes: cups-backend-smb3 | |
299 | ||
300 | %description -n cups-backend-smb | |
301 | CUPS backend for printing to SMB printers. | |
302 | ||
303 | %description -n cups-backend-smb -l pl.UTF-8 | |
304 | Backend CUPS-a drukujący na drukarkach SMB. | |
305 | ||
306 | %package -n nss_wins | |
307 | Summary: Name Service Switch service for WINS | |
308 | Summary(pl.UTF-8): Usługa Name Service Switch dla WINS | |
309 | Group: Base | |
310 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
17dffdb7 | 311 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
c38c2d9d | 312 | Obsoletes: nss_wins3 |
f2b0247b | 313 | |
c38c2d9d JB |
314 | %description -n nss_wins |
315 | Provides the libnss_wins shared library which resolves NetBIOS names | |
316 | to IP addresses. | |
f2b0247b | 317 | |
c38c2d9d JB |
318 | %description -n nss_wins -l pl.UTF-8 |
319 | Biblioteka dzielona libnss_wins rozwiązująca nazwy NetBIOS na adresy | |
320 | IP. | |
9c05ac07 | 321 | |
c38c2d9d JB |
322 | %package -n smbget |
323 | Summary: A utility for retrieving files using the SMB protocol | |
324 | Summary(pl.UTF-8): Narzędzie do pobierania plików protokołem SMB | |
325 | Group: Applications/Networking | |
326 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
327 | Obsoletes: smbget3 | |
328 | ||
329 | %description -n smbget | |
330 | wget-like utility for downloading files over SMB. | |
331 | ||
332 | %description -n smbget -l pl.UTF-8 | |
333 | Narzędzie podobne do wgeta do pobierania plików protokołem SMB | |
334 | używanym w sieciach MS Windows. | |
335 | ||
336 | %package libs | |
337 | Summary: Samba shared libraries | |
338 | Summary(pl.UTF-8): Biblioteki współdzielone Samby | |
339 | Group: Libraries | |
c1740968 | 340 | Requires: gnutls >= 3.0.0 |
c38c2d9d JB |
341 | %if %{with system_libs} |
342 | Requires: ldb >= %{ldb_ver} | |
343 | Requires: ntdb >= %{ntdb_ver} | |
344 | Requires: talloc >= %{talloc_ver} | |
345 | Requires: tdb >= %{tdb_ver} | |
346 | Requires: tevent >= %{tevent_ver} | |
347 | %endif | |
23038e32 | 348 | Obsoletes: samba-vfs-notify_fam |
c38c2d9d JB |
349 | |
350 | %description libs | |
351 | Samba shared libraries. | |
352 | ||
353 | %description libs -l pl.UTF-8 | |
354 | Biblioteki współdzielone Samby. | |
355 | ||
356 | %package devel | |
357 | Summary: Header files for Samba | |
358 | Summary(pl.UTF-8): Pliki nagłówkowe Samby | |
359 | Group: Development/Libraries | |
360 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
361 | Obsoletes: samba3-devel | |
362 | Obsoletes: samba4-devel | |
363 | ||
364 | %description devel | |
365 | Header files for Samba. | |
366 | ||
367 | %description devel -l pl.UTF-8 | |
368 | Pliki nagłówkowe Samby. | |
369 | ||
382a477a JR |
370 | %package pidl |
371 | Summary: Perl IDL compiler | |
a3c4e78e | 372 | Summary(pl.UTF-8): Kompilator IDL w Perlu |
382a477a | 373 | Group: Development/Tools |
c93984f5 | 374 | Obsoletes: samba4-pidl |
382a477a JR |
375 | |
376 | %description pidl | |
c48f10a7 | 377 | The samba-pidl package contains the Perl IDL compiler used by Samba |
382a477a JR |
378 | and Wireshark to parse IDL and similar protocols. |
379 | ||
a3c4e78e JB |
380 | %description pidl -l pl.UTF-8 |
381 | Ten pakiet zawiera kompilator IDL napisany w Perlu, używany przez | |
382 | Sambę oraz Wiresharka to analizy IDL i podobnych protokołów. | |
383 | ||
025a78ca | 384 | %package -n python-samba |
69a33c0e JB |
385 | Summary: Samba modules for Python |
386 | Summary(pl.UTF-8): Moduły Samby dla Pythona | |
382a477a | 387 | Group: Development/Languages/Python |
382a477a | 388 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
17dffdb7 | 389 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
6a43f27b | 390 | Requires: python |
b069341b JR |
391 | Requires: python-dns |
392 | Requires: python-modules | |
8e43bad6 JR |
393 | %if %{with system_libs} |
394 | Requires: python-ldb >= %{ldb_ver} | |
a9009cd3 | 395 | Requires: python-ntdb >= %{ntdb_ver} |
8e43bad6 JR |
396 | Requires: python-talloc >= %{talloc_ver} |
397 | Requires: python-tevent >= %{tevent_ver} | |
398 | %endif | |
025a78ca | 399 | Obsoletes: python-samba4 |
382a477a | 400 | |
025a78ca | 401 | %description -n python-samba |
69a33c0e | 402 | Samba modules for Python. |
382a477a | 403 | |
025a78ca | 404 | %description -n python-samba -l pl.UTF-8 |
69a33c0e | 405 | Moduły Samby dla Pythona. |
a3c4e78e | 406 | |
382a477a JR |
407 | %package test |
408 | Summary: Testing tools for Samba servers and clients | |
a3c4e78e | 409 | Summary(pl.UTF-8): Narzędzia testowe dla serwerów i klientów Samby |
382a477a JR |
410 | Group: Applications/System |
411 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
412 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
17dffdb7 | 413 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
382a477a | 414 | Requires: %{name}-winbind = %{epoch}:%{version}-%{release} |
c93984f5 | 415 | Obsoletes: samba4-test |
23038e32 JR |
416 | Obsoletes: samba4-test-devel |
417 | Obsoletes: samba-test-devel | |
382a477a JR |
418 | |
419 | %description test | |
c48f10a7 | 420 | samba-test provides testing tools for both the server and client |
382a477a JR |
421 | packages of Samba. |
422 | ||
a3c4e78e JB |
423 | %description test -l pl.UTF-8 |
424 | Narzędzia testowe dla serwerów i klientów Samby. | |
425 | ||
fe5b5b93 | 426 | %package -n libsmbclient |
a3c4e78e JB |
427 | Summary: libsmbclient and libwbclient - Samba client libraries |
428 | Summary(pl.UTF-8): libsmbclient i libwbclient - biblioteki klienckie Samby | |
382a477a | 429 | Group: Libraries |
17dffdb7 | 430 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
fe5b5b93 | 431 | Obsoletes: samba3-libsmbclient |
382a477a | 432 | |
fe5b5b93 | 433 | %description -n libsmbclient |
a3c4e78e JB |
434 | libsmbclient and libwbclient - libraries that allow to use Samba |
435 | client functions. | |
382a477a | 436 | |
fe5b5b93 | 437 | %description -n libsmbclient -l pl.UTF-8 |
a3c4e78e JB |
438 | libsmbclient i libwbclient - biblioteki pozwalające korzystać z funcji |
439 | klienta Samby. | |
382a477a | 440 | |
fe5b5b93 | 441 | %package -n libsmbclient-devel |
a3c4e78e JB |
442 | Summary: Development files for Samba client libraries |
443 | Summary(pl.UTF-8): Pliki programistyczne bibliotek klienta Samby | |
382a477a | 444 | Group: Development/Libraries |
fe5b5b93 | 445 | Requires: libsmbclient = %{epoch}:%{version}-%{release} |
277b5368 | 446 | Obsoletes: libsmbclient-static |
fe5b5b93 | 447 | Obsoletes: samba3-libsmbclient-devel |
6646cd44 | 448 | |
fe5b5b93 | 449 | %description -n libsmbclient-devel |
a3c4e78e | 450 | Header files for libsmbclient and libwbclient libraries. |
6646cd44 | 451 | |
fe5b5b93 | 452 | %description -n libsmbclient-devel -l pl.UTF-8 |
a3c4e78e | 453 | Pliki nagłówkowe bibliotek libsmbclient i libwbclient. |
c083eea8 | 454 | |
025a78ca | 455 | %package -n openldap-schema-samba |
382a477a | 456 | Summary: Samba LDAP schema |
a3c4e78e | 457 | Summary(pl.UTF-8): Schemat LDAP dla Samby |
ed426448 | 458 | Group: Networking/Daemons |
382a477a JR |
459 | Requires(post,postun): sed >= 4.0 |
460 | Requires: openldap-servers | |
025a78ca | 461 | Obsoletes: openldap-schema-samba3 |
1601e1b5 JR |
462 | %if "%{_rpmversion}" >= "5" |
463 | BuildArch: noarch | |
464 | %endif | |
ed426448 | 465 | |
025a78ca | 466 | %description -n openldap-schema-samba |
a3c4e78e | 467 | This package contains samba.schema for OpenLDAP. |
382a477a | 468 | |
025a78ca | 469 | %description -n openldap-schema-samba -l pl.UTF-8 |
a3c4e78e | 470 | Ten pakiet zawiera schemat Samby (samba.schema) dla OpenLDAP-a. |
ed426448 | 471 | |
f5b9acfe | 472 | %package -n ctdb |
0c995865 | 473 | Summary: A Clustered Database based on Samba's Trivial Database (TDB) |
42352377 | 474 | Summary(pl.UTF-8): Klastrowa baza danych oparta na bazie danych Trivial Database z Samby (TDB) |
0c995865 | 475 | Group: Daemons |
42352377 JB |
476 | URL: http://ctdb.samba.org/ |
477 | Requires(post,preun,postun): systemd-units | |
478 | Requires(post): /usr/bin/systemd-tmpfiles | |
2ec3c78e | 479 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
0c995865 JR |
480 | Requires: coreutils |
481 | Requires: fileutils | |
f5b9acfe | 482 | # for ps and killall |
0c995865 JR |
483 | Requires: gawk |
484 | Requires: psmisc | |
485 | Requires: sed | |
2ec3c78e JR |
486 | %if %{with system_libs} |
487 | Requires: tdb >= %{tdb_ver} | |
488 | %endif | |
f5b9acfe | 489 | # for pkill and pidof: |
0c995865 | 490 | Requires: procps |
f5b9acfe | 491 | # for netstat: |
0c995865 JR |
492 | Requires: ethtool |
493 | Requires: net-tools | |
f5b9acfe | 494 | # for ip: |
0c995865 JR |
495 | Requires: iproute2 |
496 | Requires: iptables | |
f5b9acfe | 497 | # for flock, getopt, kill: |
0c995865 | 498 | Requires: util-linux |
f5b9acfe AM |
499 | |
500 | %description -n ctdb | |
0c995865 JR |
501 | CTDB is a cluster implementation of the TDB database used by Samba and |
502 | other projects to store temporary data. If an application is already | |
503 | using TDB for temporary data it is very easy to convert that | |
504 | application to be cluster aware and use CTDB instead. | |
f5b9acfe | 505 | |
42352377 JB |
506 | %description -l pl.UTF-8 |
507 | CTDB to klastrowa implementacja bazy danych TDB używanej w Sambie oraz | |
508 | innych projektach do przechowywania danych tymczasowych. Jeśli jakaś | |
509 | aplikacja już wykorzystuje TDB do trzymania danych tymczasowych, | |
510 | bardzo przerobić ją na klastrowalną, wykorzystującą CTDB. | |
511 | ||
ea29dc9e JR |
512 | %package -n pcp-ctdb |
513 | Summary: CTDB PMDA | |
514 | Summary(pl.UTF-8): PMDA CTDB | |
515 | Group: Applications/System | |
516 | Requires: ctdb = %{epoch}:%{version}-%{release} | |
517 | Requires: pcp | |
518 | ||
519 | %description -n pcp-ctdb | |
520 | This PMDA extracts metrics from the locally running ctdbd daemon for | |
521 | export to PMCD. | |
522 | ||
523 | %description -n pcp-ctdb -l pl.UTF-8 | |
524 | Ten PMDA odczytuje pomiary z lokalnie działającego demona ctdbd w celu | |
525 | wyeksportowania do PMCD. | |
526 | ||
1925a8b4 | 527 | %prep |
0c995865 | 528 | %setup -q |
dbb692ff | 529 | %{?with_system_heimdal:%patch0 -p1} |
8932759c | 530 | %patch1 -p1 |
0d6de682 JR |
531 | %patch2 -p1 |
532 | %patch3 -p1 | |
ce9af3e2 | 533 | %patch4 -p1 |
dbb692ff | 534 | %{?with_system_heimdal:%patch5 -p1} |
2aa9f2b6 | 535 | %patch6 -p1 |
cc54fa40 | 536 | %patch7 -p1 |
6fb3721a | 537 | |
7645ba99 JB |
538 | %{__sed} -i -e 's|#!/usr/bin/env python|#!/usr/bin/python|' source4/scripting/bin/samba* |
539 | %{__sed} -i -e 's|#!/usr/bin/env perl|#!/usr/bin/perl|' pidl/pidl | |
7f7b5c36 | 540 | |
5a591c79 JB |
541 | %if %{with system_heimdal} |
542 | %{__mv} source4/heimdal_build/krb5-types{,-smb}.h | |
543 | %endif | |
544 | ||
1925a8b4 | 545 | %build |
34895621 JR |
546 | LDFLAGS="${LDFLAGS:-%rpmldflags}" \ |
547 | CFLAGS="${CFLAGS:-%rpmcflags}" \ | |
548 | CXXFLAGS="${CXXFLAGS:-%rpmcxxflags}" \ | |
549 | FFLAGS="${FFLAGS:-%rpmcflags}" \ | |
550 | FCFLAGS="${FCFLAGS:-%rpmcflags}" \ | |
551 | CPPFLAGS="${CPPFLAGS:-%rpmcppflags}" \ | |
552 | %{?__cc:CC="%{__cc}"} \ | |
553 | %{?__cxx:CXX="%{__cxx}"} \ | |
554 | ./configure \ | |
555 | --enable-fhs \ | |
556 | --prefix=%{_prefix} \ | |
557 | --exec-prefix=%{_exec_prefix} \ | |
558 | --bindir=%{_bindir} \ | |
559 | --sbindir=%{_sbindir} \ | |
560 | --sysconfdir=%{_sysconfdir} \ | |
561 | --datadir=%{_datadir} \ | |
562 | --includedir=%{_includedir} \ | |
563 | --libdir=%{_libdir} \ | |
564 | --libexecdir=%{_libexecdir} \ | |
565 | --localstatedir=%{_localstatedir} \ | |
566 | --sharedstatedir=%{_sharedstatedir} \ | |
567 | --mandir=%{_mandir} \ | |
568 | --infodir=%{_infodir} \ | |
2e711b12 JR |
569 | --with-privatelibdir=%{_libdir}/samba \ |
570 | --with-modulesdir=%{_libdir}/samba \ | |
01485082 | 571 | --with-pammodulesdir=/%{_lib}/security \ |
34895621 JR |
572 | --with-lockdir=/var/lib/samba \ |
573 | --with-privatedir=%{_sysconfdir}/samba \ | |
dbb692ff | 574 | --disable-rpath \ |
34895621 | 575 | --disable-rpath-install \ |
d8ad099f | 576 | --builtin-libraries=%{?with_replace:replace,}ccan,samba-cluster-support \ |
fa56ac48 | 577 | --bundled-libraries=NONE,iniparser,%{!?with_system_libs:talloc,tdb,ldb,ntdb,tevent,pytalloc,pytalloc-util,pytdb,pytevent,pyldb,pyldb-util},%{!?with_system_heimdal:roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile} \ |
d7a7a298 | 578 | --with-shared-modules=idmap_ad,idmap_adex,idmap_hash,idmap_ldap,idmap_rid,idmap_tdb2,auth_samba4,vfs_dfs_samba4 \ |
dbb692ff | 579 | --with-cluster-support \ |
f4f0ea2d | 580 | --with-acl-support \ |
34895621 | 581 | --with%{!?with_ads:out}-ads \ |
ea29dc9e | 582 | %{?with_ctdb_pcp:--enable-pmda} \ |
432ee34d | 583 | --with-automount \ |
ff9592a9 | 584 | --with%{!?with_dmapi:out}-dmapi \ |
34895621 JR |
585 | --with-dnsupdate \ |
586 | --with-iconv \ | |
587 | --with%{!?with_ldap:out}-ldap \ | |
d1d64cbe | 588 | --with-pam \ |
4ef99dd8 | 589 | --with-quotas \ |
e9c7865a | 590 | --with-regedit \ |
34895621 | 591 | --with-sendfile-support \ |
4ef99dd8 | 592 | --with-syslog \ |
52a1c787 | 593 | %{!?with_systemd:--without-systemd} \ |
4ef99dd8 | 594 | --with-utmp \ |
34895621 | 595 | --with-winbind \ |
66e5c63e | 596 | --%{?with_avahi:en}%{!?with_avahi:dis}able-avahi \ |
34895621 JR |
597 | --enable-cups \ |
598 | --enable-iprint | |
1925a8b4 | 599 | |
dbb692ff | 600 | %{__make} V=1 |
192f48a8 | 601 | |
6646cd44 JR |
602 | # Build PIDL for installation into vendor directories before |
603 | # 'make proto' gets to it. | |
604 | cd pidl | |
605 | %{__perl} Makefile.PL \ | |
606 | INSTALLDIRS=vendor | |
607 | ||
1925a8b4 | 608 | %install |
609 | rm -rf $RPM_BUILD_ROOT | |
cd86127c | 610 | install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd,ld.so.conf.d,env.d} \ |
2e711b12 | 611 | $RPM_BUILD_ROOT{/var/{log/archive,spool}/samba,/var/lib/samba/printing} \ |
08bf002e | 612 | $RPM_BUILD_ROOT/var/log/samba/cores/{smbd,nmbd} \ |
2e711b12 JR |
613 | $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_libdir}/samba/vfs,%{_includedir},%{_sambahome},%{schemadir}} \ |
614 | $RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir}} | |
ba850b61 | 615 | |
34895621 | 616 | %{__make} install \ |
bd658e80 | 617 | DESTDIR=$RPM_BUILD_ROOT \ |
29511e6d | 618 | CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba |
bd658e80 | 619 | |
6646cd44 | 620 | # Undo the PIDL install, we want to try again with the right options. |
9a90ed45 | 621 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/perl5 |
6646cd44 JR |
622 | |
623 | # Install PIDL | |
9a90ed45 | 624 | %{__make} -C pidl install \ |
6646cd44 | 625 | PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
6646cd44 JR |
626 | |
627 | # Clean out crap left behind by the PIDL install | |
628 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/wscript_build | |
629 | %{__rm} -r $RPM_BUILD_ROOT%{perl_vendorlib}/Parse/Yapp | |
fbf926f3 | 630 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Parse/Pidl/.packlist |
6646cd44 | 631 | |
b25f7233 | 632 | install -p source3/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir} |
1925a8b4 | 633 | |
d8ad099f | 634 | :> $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ctdb |
f5b9acfe | 635 | |
0c995865 | 636 | cp -p packaging/systemd/samba.conf.tmp $RPM_BUILD_ROOT%{systemdtmpfilesdir}/samba.conf |
f5b9acfe | 637 | echo "d /var/run/ctdb 755 root root" > $RPM_BUILD_ROOT%{systemdtmpfilesdir}/ctdb.conf |
0c995865 JR |
638 | cp -p packaging/systemd/nmb.service $RPM_BUILD_ROOT%{systemdunitdir} |
639 | cp -p packaging/systemd/samba.service $RPM_BUILD_ROOT%{systemdunitdir} | |
640 | cp -p packaging/systemd/smb.service $RPM_BUILD_ROOT%{systemdunitdir} | |
641 | cp -p packaging/systemd/winbind.service $RPM_BUILD_ROOT%{systemdunitdir} | |
642 | cp -p ctdb/config/ctdb.service $RPM_BUILD_ROOT%{systemdunitdir} | |
2e711b12 | 643 | |
b25f7233 ER |
644 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb |
645 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba | |
b25f7233 ER |
646 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba |
647 | cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba | |
3dbf1ce9 | 648 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf |
b25f7233 ER |
649 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind |
650 | cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/winbind | |
cd86127c JR |
651 | install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/samba |
652 | ||
653 | echo "LDB_MODULES_PATH=%{_libdir}/samba/ldb" > $RPM_BUILD_ROOT/etc/env.d/LDB_MODULES_PATH | |
29511e6d | 654 | |
34895621 JR |
655 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libnss_winbind.so* $RPM_BUILD_ROOT/%{_lib} |
656 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libnss_wins.so* $RPM_BUILD_ROOT/%{_lib} | |
657 | install -p bin/vfstest $RPM_BUILD_ROOT%{_bindir} | |
79d8a749 | 658 | |
6a2e83e0 | 659 | touch $RPM_BUILD_ROOT/var/lib/samba/{wins.dat,browse.dat} |
1925a8b4 | 660 | |
01485082 | 661 | echo '127.0.0.1 localhost' > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts |
8b604b68 | 662 | |
b0c1c6a5 | 663 | %if "%{_lib}" == "lib64" |
17dffdb7 JR |
664 | echo "%{_libdir}/samba" >$RPM_BUILD_ROOT/etc/ld.so.conf.d/samba64.conf |
665 | %else | |
b069341b | 666 | echo "%{_libdir}/samba" >$RPM_BUILD_ROOT/etc/ld.so.conf.d/samba.conf |
17dffdb7 | 667 | %endif |
b069341b | 668 | |
ddea14b0 | 669 | %if %{with cups} |
fd9d8b85 JB |
670 | install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend |
671 | ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb | |
672 | %endif | |
9f6f5df1 | 673 | |
29511e6d | 674 | > $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers |
8b604b68 | 675 | > $RPM_BUILD_ROOT/etc/security/blacklist.samba |
11d2c190 | 676 | |
105507bc | 677 | %if %{with ldap} |
0c995865 | 678 | cp -p examples/LDAP/samba.schema $RPM_BUILD_ROOT%{schemadir} |
105507bc | 679 | %endif |
99795f36 | 680 | |
7a0e596a | 681 | # remove man pages for not installed commands |
fbf926f3 | 682 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/log2pcap.1* |
fbf926f3 JR |
683 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_cacheprime.8* |
684 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_gpfs.8* | |
685 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_prealloc.8* | |
686 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_tsmsm.8* | |
7a0e596a | 687 | |
23038e32 JR |
688 | # remove tests |
689 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/ctdb*_tests | |
690 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/ctdb/tests | |
008e93ad | 691 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/ctdb/tests |
23038e32 | 692 | |
1a8c003b AM |
693 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
694 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
f6857f17 | 695 | %py_postclean |
1a8c003b | 696 | |
ea8d81e5 JB |
697 | %clean |
698 | rm -rf $RPM_BUILD_ROOT | |
9661cd11 | 699 | |
1925a8b4 | 700 | %post |
cd86127c | 701 | /sbin/chkconfig --add samba |
c6a4fcd1 | 702 | /sbin/chkconfig --add smb |
cd86127c | 703 | %service samba restart "Samba AD daemon" |
c48f10a7 | 704 | %service smb restart "Samba SMB daemons" |
dce29ff7 | 705 | %systemd_post samba.service |
c6a4fcd1 | 706 | %systemd_post smb.service nmb.service |
1925a8b4 | 707 | |
708 | %preun | |
cd86127c JR |
709 | if [ "$1" = "0" ]; then |
710 | %service samba stop | |
c6a4fcd1 | 711 | %service smb stop |
cd86127c | 712 | /sbin/chkconfig --del samba |
c6a4fcd1 | 713 | /sbin/chkconfig --del smb |
cd86127c | 714 | fi |
dce29ff7 | 715 | %systemd_preun samba.service |
c6a4fcd1 | 716 | %systemd_preun smb.service nmb.service |
dce29ff7 JR |
717 | |
718 | %postun | |
719 | %systemd_reload | |
11d2c190 | 720 | |
c48f10a7 | 721 | %triggerpostun -- samba3 |
382a477a | 722 | /sbin/chkconfig --add smb |
c48f10a7 | 723 | %service smb restart "Samba SMB daemons" |
1a90c755 | 724 | %systemd_post smb.service nmb.service |
382a477a | 725 | |
c48f10a7 JR |
726 | %triggerpostun -- samba4 |
727 | /sbin/chkconfig --add samba | |
728 | %service samba restart "Samba AD daemons" | |
729 | %systemd_post samba.service | |
730 | ||
30cb0b6f JR |
731 | %triggerpostun -- samba4 < 1:4.1.1-1 |
732 | # CVE-2013-4476 | |
733 | [ -e %{_sysconfdir}/samba/tls/key.pem ] || exit 0 | |
734 | PERMS=$(stat -c %a %{_sysconfdir}/samba/tls/key.pem) | |
735 | if [ "$PERMS" != "600" ]; then | |
736 | chmod 600 %{_sysconfdir}/samba/tls/key.pem || : | |
737 | echo "Fixed permissions of private key file %{_sysconfdir}/samba/tls/key.pem from $PERMS to 600" | |
738 | echo "Consider regenerating TLS certificate" | |
739 | echo "Removing all tls .pem files will cause an auto-regeneration with the correct permissions" | |
740 | fi | |
741 | ||
c93984f5 JR |
742 | %triggerprein common -- samba4 |
743 | cp -a %{_sysconfdir}/samba/smb.conf %{_sysconfdir}/samba/smb.conf.samba4 | |
744 | ||
745 | %triggerpostun common -- samba4 | |
746 | %{__mv} -f %{_sysconfdir}/samba/smb.conf %{_sysconfdir}/samba/smb.conf.rpmnew | |
747 | %{__mv} %{_sysconfdir}/samba/smb.conf.samba4 %{_sysconfdir}/samba/smb.conf | |
748 | ||
749 | %triggerprein common -- samba3-server | |
750 | cp -a %{_sysconfdir}/samba/smb.conf %{_sysconfdir}/samba/smb.conf.samba4 | |
751 | ||
752 | %triggerpostun common -- samba3-server | |
753 | %{__mv} -f %{_sysconfdir}/samba/smb.conf %{_sysconfdir}/samba/smb.conf.rpmnew | |
754 | %{__mv} %{_sysconfdir}/samba/smb.conf.samba4 %{_sysconfdir}/samba/smb.conf | |
755 | ||
8ef2303e | 756 | %post winbind |
a7067ae6 | 757 | /sbin/ldconfig |
29511e6d | 758 | /sbin/chkconfig --add winbind |
27879fe9 | 759 | %service winbind restart "Winbind daemon" |
dce29ff7 | 760 | %systemd_post winbind.service |
29511e6d | 761 | |
8ef2303e | 762 | %preun winbind |
29511e6d | 763 | if [ "$1" = "0" ]; then |
27879fe9 | 764 | %service winbind stop |
29511e6d | 765 | /sbin/chkconfig --del winbind |
766 | fi | |
dce29ff7 JR |
767 | %systemd_preun winbind.service |
768 | ||
8ef2303e | 769 | %postun winbind |
a7067ae6 | 770 | /sbin/ldconfig |
dce29ff7 | 771 | %systemd_reload |
29511e6d | 772 | |
c48f10a7 | 773 | %triggerpostun winbind -- samba3-winbind |
00fd225e JR |
774 | /sbin/chkconfig --add winbind |
775 | %service winbind restart "Winbind daemon" | |
776 | %systemd_post winbind.service | |
777 | ||
c38c2d9d JB |
778 | %post libs -p /sbin/ldconfig |
779 | %postun libs -p /sbin/ldconfig | |
780 | ||
781 | %post -n python-samba -p /sbin/ldconfig | |
782 | %postun -n python-samba -p /sbin/ldconfig | |
783 | ||
0673c853 JB |
784 | %post -n libsmbclient -p /sbin/ldconfig |
785 | %postun -n libsmbclient -p /sbin/ldconfig | |
a7067ae6 | 786 | |
025a78ca | 787 | %post -n openldap-schema-samba |
c4db757c ER |
788 | # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber) |
789 | %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis | |
27879fe9 | 790 | %service -q ldap restart |
99795f36 | 791 | |
025a78ca | 792 | %postun -n openldap-schema-samba |
99795f36 | 793 | if [ "$1" = "0" ]; then |
c4db757c | 794 | %openldap_schema_unregister %{schemadir}/samba.schema |
27879fe9 | 795 | %service -q ldap restart |
99795f36 ER |
796 | fi |
797 | ||
025a78ca | 798 | %triggerpostun -n openldap-schema-samba -- openldap-schema-samba3 < 1:4.1.4-3 |
00fd225e JR |
799 | # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber) |
800 | %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis | |
801 | %service -q ldap restart | |
802 | ||
f5b9acfe AM |
803 | %post -n ctdb |
804 | /usr/bin/systemd-tmpfiles --create %{systemdtmpfilesdir}/ctdb.conf | |
805 | %systemd_post ctdb.service | |
806 | ||
807 | %preun -n ctdb | |
808 | %systemd_preun ctdb.service | |
809 | ||
810 | %postun -n ctdb | |
811 | %systemd_reload | |
812 | ||
1925a8b4 | 813 | %files |
814 | %defattr(644,root,root,755) | |
3999f3d9 JR |
815 | %{?with_ldap:%doc examples/LDAP} |
816 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smbusers | |
817 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/samba | |
818 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/samba | |
819 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.samba | |
9ff647f7 | 820 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba |
99fdb0b6 | 821 | %config(noreplace) %verify(not md5 mtime size) /etc/env.d/LDB_MODULES_PATH |
cd86127c | 822 | %attr(754,root,root) /etc/rc.d/init.d/samba |
3999f3d9 JR |
823 | %attr(754,root,root) /etc/rc.d/init.d/smb |
824 | %{systemdunitdir}/nmb.service | |
825 | %{systemdunitdir}/smb.service | |
0b940f4e JR |
826 | %{systemdunitdir}/samba.service |
827 | %{systemdtmpfilesdir}/samba.conf | |
ee92e647 | 828 | %attr(755,root,root) %{_bindir}/eventlogadm |
c083eea8 | 829 | %attr(755,root,root) %{_bindir}/oLschema2ldif |
ee92e647 JR |
830 | %attr(755,root,root) %{_bindir}/pdbedit |
831 | %attr(755,root,root) %{_bindir}/profiles | |
3999f3d9 JR |
832 | %attr(755,root,root) %{_bindir}/sharesec |
833 | %attr(755,root,root) %{_bindir}/smbcontrol | |
834 | %attr(755,root,root) %{_bindir}/smbstatus | |
3999f3d9 JR |
835 | %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh |
836 | %attr(755,root,root) %{_sbindir}/nmbd | |
0b940f4e JR |
837 | %attr(755,root,root) %{_sbindir}/samba |
838 | %attr(755,root,root) %{_sbindir}/samba_dnsupdate | |
7f7b5c36 | 839 | %attr(755,root,root) %{_sbindir}/samba_kcc |
0b940f4e JR |
840 | %attr(755,root,root) %{_sbindir}/samba_spnupdate |
841 | %attr(755,root,root) %{_sbindir}/samba_upgradedns | |
3999f3d9 | 842 | %attr(755,root,root) %{_sbindir}/smbd |
0b940f4e JR |
843 | %dir %{_libdir}/samba/bind9 |
844 | %attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9.so | |
845 | %attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9_9.so | |
0643ad3f | 846 | %attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9_10.so |
008e93ad | 847 | %attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9_11.so |
0b940f4e JR |
848 | %dir %{_libdir}/samba/gensec |
849 | %attr(755,root,root) %{_libdir}/samba/gensec/krb5.so | |
5a591c79 JB |
850 | %if %{with system_heimdal} |
851 | %dir %{_libdir}/samba/hdb | |
852 | %attr(755,root,root) %{_libdir}/samba/hdb/hdb_samba4.so | |
853 | %endif | |
e4310f27 | 854 | %dir %{_libdir}/samba/ldb |
e4310f27 | 855 | %attr(755,root,root) %{_libdir}/samba/ldb/aclread.so |
0b940f4e | 856 | %attr(755,root,root) %{_libdir}/samba/ldb/acl.so |
e4310f27 JR |
857 | %attr(755,root,root) %{_libdir}/samba/ldb/anr.so |
858 | %attr(755,root,root) %{_libdir}/samba/ldb/descriptor.so | |
859 | %attr(755,root,root) %{_libdir}/samba/ldb/dirsync.so | |
f5b9acfe | 860 | %attr(755,root,root) %{_libdir}/samba/ldb/dns_notify.so |
d8ad099f | 861 | %attr(755,root,root) %{_libdir}/samba/ldb/dsdb_notification.so |
e4310f27 JR |
862 | %attr(755,root,root) %{_libdir}/samba/ldb/extended_dn_in.so |
863 | %attr(755,root,root) %{_libdir}/samba/ldb/extended_dn_out.so | |
864 | %attr(755,root,root) %{_libdir}/samba/ldb/extended_dn_store.so | |
865 | %attr(755,root,root) %{_libdir}/samba/ldb/ildap.so | |
866 | %attr(755,root,root) %{_libdir}/samba/ldb/instancetype.so | |
867 | %attr(755,root,root) %{_libdir}/samba/ldb/lazy_commit.so | |
868 | %attr(755,root,root) %{_libdir}/samba/ldb/ldbsamba_extensions.so | |
869 | %attr(755,root,root) %{_libdir}/samba/ldb/linked_attributes.so | |
870 | %attr(755,root,root) %{_libdir}/samba/ldb/local_password.so | |
871 | %attr(755,root,root) %{_libdir}/samba/ldb/new_partition.so | |
e4310f27 | 872 | %attr(755,root,root) %{_libdir}/samba/ldb/objectclass_attrs.so |
0b940f4e | 873 | %attr(755,root,root) %{_libdir}/samba/ldb/objectclass.so |
e4310f27 JR |
874 | %attr(755,root,root) %{_libdir}/samba/ldb/objectguid.so |
875 | %attr(755,root,root) %{_libdir}/samba/ldb/operational.so | |
876 | %attr(755,root,root) %{_libdir}/samba/ldb/partition.so | |
877 | %attr(755,root,root) %{_libdir}/samba/ldb/password_hash.so | |
878 | %attr(755,root,root) %{_libdir}/samba/ldb/ranged_results.so | |
879 | %attr(755,root,root) %{_libdir}/samba/ldb/repl_meta_data.so | |
880 | %attr(755,root,root) %{_libdir}/samba/ldb/resolve_oids.so | |
881 | %attr(755,root,root) %{_libdir}/samba/ldb/rootdse.so | |
882 | %attr(755,root,root) %{_libdir}/samba/ldb/samba3sam.so | |
883 | %attr(755,root,root) %{_libdir}/samba/ldb/samba3sid.so | |
884 | %attr(755,root,root) %{_libdir}/samba/ldb/samba_dsdb.so | |
885 | %attr(755,root,root) %{_libdir}/samba/ldb/samba_secrets.so | |
886 | %attr(755,root,root) %{_libdir}/samba/ldb/samldb.so | |
887 | %attr(755,root,root) %{_libdir}/samba/ldb/schema_data.so | |
888 | %attr(755,root,root) %{_libdir}/samba/ldb/schema_load.so | |
889 | %attr(755,root,root) %{_libdir}/samba/ldb/secrets_tdb_sync.so | |
890 | %attr(755,root,root) %{_libdir}/samba/ldb/show_deleted.so | |
891 | %attr(755,root,root) %{_libdir}/samba/ldb/simple_dn.so | |
892 | %attr(755,root,root) %{_libdir}/samba/ldb/simple_ldap_map.so | |
893 | %attr(755,root,root) %{_libdir}/samba/ldb/subtree_delete.so | |
894 | %attr(755,root,root) %{_libdir}/samba/ldb/subtree_rename.so | |
f5b9acfe | 895 | %attr(755,root,root) %{_libdir}/samba/ldb/tombstone_reanimate.so |
e4310f27 | 896 | %attr(755,root,root) %{_libdir}/samba/ldb/update_keytab.so |
d8ad099f | 897 | %attr(755,root,root) %{_libdir}/samba/ldb/vlv.so |
e4310f27 | 898 | %attr(755,root,root) %{_libdir}/samba/ldb/wins_ldb.so |
382a477a | 899 | %dir %{_libdir}/samba/process_model |
382a477a JR |
900 | %attr(755,root,root) %{_libdir}/samba/process_model/standard.so |
901 | %dir %{_libdir}/samba/service | |
902 | %attr(755,root,root) %{_libdir}/samba/service/cldap.so | |
903 | %attr(755,root,root) %{_libdir}/samba/service/dcerpc.so | |
904 | %attr(755,root,root) %{_libdir}/samba/service/dns.so | |
905 | %attr(755,root,root) %{_libdir}/samba/service/dns_update.so | |
906 | %attr(755,root,root) %{_libdir}/samba/service/drepl.so | |
907 | %attr(755,root,root) %{_libdir}/samba/service/kcc.so | |
908 | %attr(755,root,root) %{_libdir}/samba/service/kdc.so | |
909 | %attr(755,root,root) %{_libdir}/samba/service/ldap.so | |
910 | %attr(755,root,root) %{_libdir}/samba/service/nbtd.so | |
911 | %attr(755,root,root) %{_libdir}/samba/service/ntp_signd.so | |
912 | %attr(755,root,root) %{_libdir}/samba/service/s3fs.so | |
382a477a | 913 | %attr(755,root,root) %{_libdir}/samba/service/web.so |
295b7a55 | 914 | %attr(755,root,root) %{_libdir}/samba/service/winbindd.so |
382a477a | 915 | %attr(755,root,root) %{_libdir}/samba/service/wrepl.so |
d7a7a298 | 916 | %dir %{_libdir}/samba/vfs |
c6a4fcd1 | 917 | %attr(755,root,root) %{_libdir}/samba/vfs/acl_tdb.so |
d7a7a298 | 918 | %attr(755,root,root) %{_libdir}/samba/vfs/acl_xattr.so |
c6a4fcd1 JR |
919 | %attr(755,root,root) %{_libdir}/samba/vfs/aio_fork.so |
920 | %attr(755,root,root) %{_libdir}/samba/vfs/aio_linux.so | |
c6a4fcd1 JR |
921 | %attr(755,root,root) %{_libdir}/samba/vfs/aio_pthread.so |
922 | %attr(755,root,root) %{_libdir}/samba/vfs/audit.so | |
d7a7a298 | 923 | %attr(755,root,root) %{_libdir}/samba/vfs/btrfs.so |
c6a4fcd1 JR |
924 | %attr(755,root,root) %{_libdir}/samba/vfs/cap.so |
925 | %attr(755,root,root) %{_libdir}/samba/vfs/catia.so | |
926 | %attr(755,root,root) %{_libdir}/samba/vfs/commit.so | |
927 | %attr(755,root,root) %{_libdir}/samba/vfs/crossrename.so | |
928 | %attr(755,root,root) %{_libdir}/samba/vfs/default_quota.so | |
d7a7a298 | 929 | %attr(755,root,root) %{_libdir}/samba/vfs/dfs_samba4.so |
c6a4fcd1 JR |
930 | %attr(755,root,root) %{_libdir}/samba/vfs/dirsort.so |
931 | %attr(755,root,root) %{_libdir}/samba/vfs/expand_msdfs.so | |
932 | %attr(755,root,root) %{_libdir}/samba/vfs/extd_audit.so | |
933 | %attr(755,root,root) %{_libdir}/samba/vfs/fake_perms.so | |
d7a7a298 | 934 | %attr(755,root,root) %{_libdir}/samba/vfs/fileid.so |
295b7a55 | 935 | %attr(755,root,root) %{_libdir}/samba/vfs/fruit.so |
c6a4fcd1 JR |
936 | %attr(755,root,root) %{_libdir}/samba/vfs/full_audit.so |
937 | %attr(755,root,root) %{_libdir}/samba/vfs/linux_xfs_sgid.so | |
938 | %attr(755,root,root) %{_libdir}/samba/vfs/media_harmony.so | |
939 | %attr(755,root,root) %{_libdir}/samba/vfs/netatalk.so | |
f5b9acfe | 940 | %attr(755,root,root) %{_libdir}/samba/vfs/offline.so |
d7a7a298 | 941 | %attr(755,root,root) %{_libdir}/samba/vfs/posix_eadb.so |
c6a4fcd1 JR |
942 | %attr(755,root,root) %{_libdir}/samba/vfs/preopen.so |
943 | %attr(755,root,root) %{_libdir}/samba/vfs/readahead.so | |
944 | %attr(755,root,root) %{_libdir}/samba/vfs/readonly.so | |
945 | %attr(755,root,root) %{_libdir}/samba/vfs/recycle.so | |
295b7a55 | 946 | %attr(755,root,root) %{_libdir}/samba/vfs/snapper.so |
c6a4fcd1 JR |
947 | %attr(755,root,root) %{_libdir}/samba/vfs/shadow_copy2.so |
948 | %attr(755,root,root) %{_libdir}/samba/vfs/shadow_copy.so | |
f5b9acfe | 949 | %attr(755,root,root) %{_libdir}/samba/vfs/shell_snap.so |
c6a4fcd1 JR |
950 | %attr(755,root,root) %{_libdir}/samba/vfs/streams_depot.so |
951 | %attr(755,root,root) %{_libdir}/samba/vfs/streams_xattr.so | |
952 | %attr(755,root,root) %{_libdir}/samba/vfs/syncops.so | |
953 | %attr(755,root,root) %{_libdir}/samba/vfs/time_audit.so | |
f5b9acfe | 954 | %attr(755,root,root) %{_libdir}/samba/vfs/unityed_media.so |
295b7a55 | 955 | %attr(755,root,root) %{_libdir}/samba/vfs/worm.so |
d7a7a298 | 956 | %attr(755,root,root) %{_libdir}/samba/vfs/xattr_tdb.so |
3999f3d9 JR |
957 | %{_datadir}/samba/setup |
958 | %{_mandir}/man1/oLschema2ldif.1* | |
959 | %{_mandir}/man1/profiles.1* | |
ee92e647 | 960 | %{_mandir}/man1/sharesec.1* |
c6a4fcd1 JR |
961 | %{_mandir}/man1/smbcontrol.1* |
962 | %{_mandir}/man1/smbstatus.1* | |
3999f3d9 | 963 | %{_mandir}/man8/eventlogadm.8* |
c6a4fcd1 | 964 | %{_mandir}/man8/nmbd.8* |
3999f3d9 JR |
965 | %{_mandir}/man8/pdbedit.8* |
966 | %{_mandir}/man8/samba.8* | |
c6a4fcd1 JR |
967 | %{_mandir}/man8/smbd.8* |
968 | %{_mandir}/man8/smbpasswd.8* | |
c6a4fcd1 | 969 | %{_mandir}/man8/vfs_acl_tdb.8* |
d7a7a298 | 970 | %{_mandir}/man8/vfs_acl_xattr.8* |
c6a4fcd1 JR |
971 | %{_mandir}/man8/vfs_aio_fork.8* |
972 | %{_mandir}/man8/vfs_aio_linux.8* | |
973 | %{_mandir}/man8/vfs_aio_pthread.8* | |
974 | %{_mandir}/man8/vfs_audit.8* | |
d7a7a298 | 975 | %{_mandir}/man8/vfs_btrfs.8* |
c6a4fcd1 JR |
976 | %{_mandir}/man8/vfs_cap.8* |
977 | %{_mandir}/man8/vfs_catia.8* | |
978 | %{_mandir}/man8/vfs_commit.8* | |
979 | %{_mandir}/man8/vfs_crossrename.8* | |
980 | %{_mandir}/man8/vfs_default_quota.8* | |
981 | %{_mandir}/man8/vfs_dirsort.8* | |
982 | %{_mandir}/man8/vfs_extd_audit.8* | |
983 | %{_mandir}/man8/vfs_fake_perms.8* | |
d7a7a298 | 984 | %{_mandir}/man8/vfs_fileid.8* |
295b7a55 | 985 | %{_mandir}/man8/vfs_fruit.8* |
c6a4fcd1 JR |
986 | %{_mandir}/man8/vfs_full_audit.8* |
987 | %{_mandir}/man8/vfs_linux_xfs_sgid.8* | |
988 | %{_mandir}/man8/vfs_media_harmony.8* | |
989 | %{_mandir}/man8/vfs_netatalk.8* | |
990 | %{_mandir}/man8/vfs_preopen.8* | |
991 | %{_mandir}/man8/vfs_readahead.8* | |
992 | %{_mandir}/man8/vfs_readonly.8* | |
993 | %{_mandir}/man8/vfs_recycle.8* | |
c6a4fcd1 JR |
994 | %{_mandir}/man8/vfs_shadow_copy2.8* |
995 | %{_mandir}/man8/vfs_shadow_copy.8* | |
295b7a55 | 996 | %{_mandir}/man8/vfs_snapper.8* |
c6a4fcd1 JR |
997 | %{_mandir}/man8/vfs_streams_depot.8* |
998 | %{_mandir}/man8/vfs_streams_xattr.8* | |
999 | %{_mandir}/man8/vfs_syncops.8* | |
1000 | %{_mandir}/man8/vfs_time_audit.8* | |
295b7a55 | 1001 | %{_mandir}/man8/vfs_worm.8* |
d7a7a298 | 1002 | %{_mandir}/man8/vfs_xattr_tdb.8* |
f5b9acfe AM |
1003 | %{_mandir}/man8/vfs_offline.8* |
1004 | %{_mandir}/man8/vfs_shell_snap.8* | |
1005 | %{_mandir}/man8/vfs_unityed_media.8* | |
c6a4fcd1 | 1006 | |
3999f3d9 JR |
1007 | %dir %{_sambahome} |
1008 | %dir /var/lib/samba | |
1009 | %ghost /var/lib/samba/*.dat | |
1010 | %dir /var/lib/samba/printing | |
1011 | ||
1012 | %attr(750,root,root) %dir /var/log/samba | |
1013 | %attr(750,root,root) %dir /var/log/samba/cores | |
1014 | %attr(750,root,root) %dir /var/log/samba/cores/smbd | |
1015 | %attr(750,root,root) %dir /var/log/samba/cores/nmbd | |
1016 | %attr(750,root,root) %dir /var/log/archive/samba | |
1017 | %attr(1777,root,root) %dir /var/spool/samba | |
1018 | ||
c38c2d9d | 1019 | %files vfs-ceph |
2eedd257 | 1020 | %defattr(644,root,root,755) |
c38c2d9d | 1021 | %attr(755,root,root) %{_libdir}/samba/vfs/ceph.so |
295b7a55 | 1022 | %{_mandir}/man8/vfs_ceph.8* |
c38c2d9d JB |
1023 | |
1024 | %files vfs-glusterfs | |
1025 | %defattr(644,root,root,755) | |
1026 | %attr(755,root,root) %{_libdir}/samba/vfs/glusterfs.so | |
295b7a55 | 1027 | %{_mandir}/man8/vfs_glusterfs.8* |
c38c2d9d | 1028 | |
ac6f9d13 | 1029 | %files common |
2eedd257 | 1030 | %defattr(644,root,root,755) |
2e711b12 | 1031 | %doc README WHATSNEW.txt Roadmap |
5a89b1cc JR |
1032 | %dir %{_sysconfdir}/samba |
1033 | %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf | |
1034 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/lmhosts | |
ee92e647 JR |
1035 | %attr(755,root,root) %{_bindir}/dbwrap_tool |
1036 | %attr(755,root,root) %{_bindir}/net | |
1037 | %attr(755,root,root) %{_bindir}/nmblookup | |
ee92e647 | 1038 | %attr(755,root,root) %{_bindir}/reg* |
89730013 | 1039 | %attr(755,root,root) %{_bindir}/samba-regedit |
c083eea8 | 1040 | %attr(755,root,root) %{_bindir}/samba-tool |
ee92e647 | 1041 | %attr(755,root,root) %{_bindir}/smbpasswd |
4f12cc62 JR |
1042 | %attr(755,root,root) %{_bindir}/testparm |
1043 | %attr(755,root,root) %{_bindir}/vfstest | |
5a89b1cc JR |
1044 | %dir %{_libdir}/samba/auth |
1045 | %attr(755,root,root) %{_libdir}/samba/auth/script.so | |
1046 | %attr(755,root,root) %{_libdir}/samba/auth/samba4.so | |
d7a7a298 | 1047 | %dir %{_datadir}/samba |
d7a7a298 JR |
1048 | %{_mandir}/man1/dbwrap_tool.1* |
1049 | %{_mandir}/man1/nmblookup.1* | |
d7a7a298 JR |
1050 | %{_mandir}/man1/reg*.1* |
1051 | %{_mandir}/man1/testparm.1* | |
1052 | %{_mandir}/man1/vfstest.1* | |
1053 | %{_mandir}/man5/lmhosts.5* | |
1054 | %{_mandir}/man5/smb.conf.5* | |
1055 | %{_mandir}/man5/smbpasswd.5* | |
1056 | %{_mandir}/man7/samba.7* | |
1057 | %{_mandir}/man8/net.8* | |
1058 | %{_mandir}/man8/samba-regedit.8* | |
1059 | %{_mandir}/man8/samba-tool.8* | |
1060 | ||
1061 | %if %{without system_libs} | |
1062 | %attr(755,root,root) %{_bindir}/ntdbbackup | |
1063 | %attr(755,root,root) %{_bindir}/ntdbdump | |
1064 | %attr(755,root,root) %{_bindir}/ntdbrestore | |
1065 | %attr(755,root,root) %{_bindir}/ntdbtool | |
1066 | %attr(755,root,root) %{_bindir}/tdbbackup | |
1067 | %attr(755,root,root) %{_bindir}/tdbdump | |
1068 | %attr(755,root,root) %{_bindir}/tdbtool | |
1069 | %attr(755,root,root) %{_libdir}/samba/libntdb.so.* | |
1070 | %attr(755,root,root) %{_libdir}/samba/libtalloc.so.* | |
1071 | %attr(755,root,root) %{_libdir}/samba/libtdb.so.* | |
1072 | %{_mandir}/man8/ntdbbackup.8* | |
1073 | %{_mandir}/man8/ntdbdump.8* | |
1074 | %{_mandir}/man8/ntdbrestore.8* | |
1075 | %{_mandir}/man8/ntdbtool.8* | |
1076 | %{_mandir}/man8/tdbbackup.8* | |
1077 | %{_mandir}/man8/tdbdump.8* | |
1078 | %{_mandir}/man8/tdbtool.8* | |
1079 | %endif | |
1080 | ||
c38c2d9d JB |
1081 | %files client |
1082 | %defattr(644,root,root,755) | |
1083 | %attr(755,root,root) %{_bindir}/cifsdd | |
d8ad099f | 1084 | %attr(755,root,root) %{_bindir}/findsmb |
c38c2d9d JB |
1085 | %attr(755,root,root) %{_bindir}/rpcclient |
1086 | %attr(755,root,root) %{_bindir}/smbcacls | |
1087 | %attr(755,root,root) %{_bindir}/smbclient | |
c38c2d9d JB |
1088 | %attr(755,root,root) %{_bindir}/smbcquotas |
1089 | %attr(755,root,root) %{_bindir}/smbtar | |
1090 | %attr(755,root,root) %{_bindir}/smbtree | |
1091 | %{_mandir}/man1/findsmb.1* | |
1092 | %{_mandir}/man1/rpcclient.1* | |
1093 | %{_mandir}/man1/smbcacls.1* | |
1094 | %{_mandir}/man1/smbclient.1* | |
1095 | %{_mandir}/man1/smbcquotas.1* | |
1096 | %{_mandir}/man1/smbtar.1* | |
1097 | %{_mandir}/man1/smbtree.1* | |
d8ad099f | 1098 | %{_mandir}/man8/cifsdd.8* |
c38c2d9d JB |
1099 | |
1100 | %files winbind | |
1101 | %defattr(644,root,root,755) | |
1102 | %attr(754,root,root) /etc/rc.d/init.d/winbind | |
1103 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/winbind | |
1104 | %{systemdunitdir}/winbind.service | |
1105 | %attr(755,root,root) %{_bindir}/ntlm_auth | |
1106 | %attr(755,root,root) %{_bindir}/wbinfo | |
1107 | %attr(755,root,root) %{_sbindir}/winbindd | |
1108 | %attr(755,root,root) /%{_lib}/security/pam_winbind.so | |
1109 | %attr(755,root,root) /%{_lib}/libnss_winbind.so* | |
1110 | %attr(755,root,root) %{_libdir}/winbind_krb5_locator.so | |
295b7a55 AM |
1111 | %attr(755,root,root) %{_libdir}/samba/libidmap-samba4.so |
1112 | %attr(755,root,root) %{_libdir}/samba/libnss-info-samba4.so | |
c38c2d9d JB |
1113 | %dir %{_libdir}/samba/idmap |
1114 | %attr(755,root,root) %{_libdir}/samba/idmap/ad.so | |
1115 | %attr(755,root,root) %{_libdir}/samba/idmap/autorid.so | |
1116 | %attr(755,root,root) %{_libdir}/samba/idmap/hash.so | |
1117 | %attr(755,root,root) %{_libdir}/samba/idmap/ldap.so | |
1118 | %attr(755,root,root) %{_libdir}/samba/idmap/rfc2307.so | |
1119 | %attr(755,root,root) %{_libdir}/samba/idmap/rid.so | |
f5b9acfe | 1120 | %attr(755,root,root) %{_libdir}/samba/idmap/script.so |
c38c2d9d JB |
1121 | %attr(755,root,root) %{_libdir}/samba/idmap/tdb2.so |
1122 | %dir %{_libdir}/samba/nss_info | |
1123 | %attr(755,root,root) %{_libdir}/samba/nss_info/hash.so | |
1124 | %attr(755,root,root) %{_libdir}/samba/nss_info/rfc2307.so | |
1125 | %attr(755,root,root) %{_libdir}/samba/nss_info/sfu20.so | |
1126 | %attr(755,root,root) %{_libdir}/samba/nss_info/sfu.so | |
1127 | %{_mandir}/man1/ntlm_auth.1* | |
1128 | %{_mandir}/man1/wbinfo*.1* | |
1129 | %{_mandir}/man5/pam_winbind.conf.5* | |
1130 | %{_mandir}/man7/winbind_krb5_locator.7* | |
1131 | %{_mandir}/man8/idmap_ad.8* | |
1132 | %{_mandir}/man8/idmap_autorid.8* | |
1133 | %{_mandir}/man8/idmap_hash.8* | |
1134 | %{_mandir}/man8/idmap_ldap.8* | |
1135 | %{_mandir}/man8/idmap_nss.8* | |
1136 | %{_mandir}/man8/idmap_rfc2307.8* | |
1137 | %{_mandir}/man8/idmap_rid.8* | |
23038e32 | 1138 | %{_mandir}/man8/idmap_script.8* |
c38c2d9d JB |
1139 | %{_mandir}/man8/idmap_tdb2.8* |
1140 | %{_mandir}/man8/idmap_tdb.8* | |
1141 | %{_mandir}/man8/pam_winbind.8* | |
1142 | %{_mandir}/man8/winbindd*.8* | |
1143 | ||
1144 | %if %{with cups} | |
1145 | %files -n cups-backend-smb | |
1146 | %defattr(644,root,root,755) | |
1147 | %attr(755,root,root) %{cups_serverbin}/backend/smb | |
d8ad099f | 1148 | %attr(755,root,root) %{_libdir}/samba/smbspool_krb5_wrapper |
c38c2d9d JB |
1149 | %attr(755,root,root) %{_bindir}/smbspool |
1150 | %{_mandir}/man8/smbspool.8* | |
d8ad099f | 1151 | %{_mandir}/man8/smbspool_krb5_wrapper.8* |
c38c2d9d JB |
1152 | %endif |
1153 | ||
1154 | %files -n nss_wins | |
1155 | %defattr(644,root,root,755) | |
1156 | %attr(755,root,root) /%{_lib}/libnss_wins.so* | |
1157 | ||
c38c2d9d JB |
1158 | %files -n smbget |
1159 | %defattr(644,root,root,755) | |
1160 | %attr(755,root,root) %{_bindir}/smbget | |
1161 | %{_mandir}/man1/smbget.1* | |
1162 | %{_mandir}/man5/smbgetrc.5* | |
1163 | ||
d7a7a298 JR |
1164 | %files libs |
1165 | %defattr(644,root,root,755) | |
17dffdb7 JR |
1166 | %if "%{_lib}" == "lib64" |
1167 | /etc/ld.so.conf.d/samba64.conf | |
1168 | %else | |
d7a7a298 | 1169 | /etc/ld.so.conf.d/samba.conf |
17dffdb7 | 1170 | %endif |
8e43bad6 JR |
1171 | %attr(755,root,root) %{_libdir}/libdcerpc-binding.so.*.*.* |
1172 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc-binding.so.0 | |
0b940f4e JR |
1173 | %attr(755,root,root) %{_libdir}/libdcerpc-samr.so.*.*.* |
1174 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc-samr.so.0 | |
8e43bad6 JR |
1175 | %attr(755,root,root) %{_libdir}/libdcerpc-server.so.*.*.* |
1176 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc-server.so.0 | |
d7a7a298 JR |
1177 | %attr(755,root,root) %{_libdir}/libdcerpc.so.*.*.* |
1178 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc.so.0 | |
d7a7a298 JR |
1179 | %attr(755,root,root) %{_libdir}/libndr-krb5pac.so.*.*.* |
1180 | %attr(755,root,root) %ghost %{_libdir}/libndr-krb5pac.so.0 | |
8e43bad6 JR |
1181 | %attr(755,root,root) %{_libdir}/libndr-nbt.so.*.*.* |
1182 | %attr(755,root,root) %ghost %{_libdir}/libndr-nbt.so.0 | |
1183 | %attr(755,root,root) %{_libdir}/libndr.so.*.*.* | |
1184 | %attr(755,root,root) %ghost %{_libdir}/libndr.so.0 | |
8e43bad6 JR |
1185 | %attr(755,root,root) %{_libdir}/libndr-standard.so.*.*.* |
1186 | %attr(755,root,root) %ghost %{_libdir}/libndr-standard.so.0 | |
1187 | %attr(755,root,root) %{_libdir}/libsamba-credentials.so.*.*.* | |
1188 | %attr(755,root,root) %ghost %{_libdir}/libsamba-credentials.so.0 | |
f5b9acfe | 1189 | %attr(755,root,root) %{_libdir}/libsamba-errors.so.1 |
8e43bad6 JR |
1190 | %attr(755,root,root) %{_libdir}/libsamba-hostconfig.so.*.*.* |
1191 | %attr(755,root,root) %ghost %{_libdir}/libsamba-hostconfig.so.0 | |
295b7a55 AM |
1192 | %attr(755,root,root) %{_libdir}/libsamba-passdb.so.*.*.* |
1193 | %attr(755,root,root) %ghost %{_libdir}/libsamba-passdb.so.0 | |
d7a7a298 JR |
1194 | %attr(755,root,root) %{_libdir}/libsamba-policy.so.*.*.* |
1195 | %attr(755,root,root) %ghost %{_libdir}/libsamba-policy.so.0 | |
4d036a87 JR |
1196 | %attr(755,root,root) %{_libdir}/libsamba-util.so.*.*.* |
1197 | %attr(755,root,root) %ghost %{_libdir}/libsamba-util.so.0 | |
8e43bad6 JR |
1198 | %attr(755,root,root) %{_libdir}/libsamdb.so.*.*.* |
1199 | %attr(755,root,root) %ghost %{_libdir}/libsamdb.so.0 | |
8e43bad6 JR |
1200 | %attr(755,root,root) %{_libdir}/libtevent-util.so.*.*.* |
1201 | %attr(755,root,root) %ghost %{_libdir}/libtevent-util.so.0 | |
1202 | %attr(755,root,root) %{_libdir}/libnetapi.so.0 | |
4d036a87 | 1203 | %attr(755,root,root) %{_libdir}/libsmbconf.so.0 |
8e43bad6 | 1204 | %attr(755,root,root) %{_libdir}/libsmbldap.so.0 |
4d036a87 | 1205 | %dir %{_libdir}/samba |
d8ad099f AM |
1206 | |
1207 | %if %{without replace} | |
a76ccf78 | 1208 | %attr(755,root,root) %{_libdir}/samba/libreplace-samba4.so |
a76ccf78 JR |
1209 | %endif |
1210 | %if %{without system_heimdal} | |
d8ad099f AM |
1211 | %attr(755,root,root) %ghost %{_libdir}/samba/libasn1-samba4.so.8 |
1212 | %attr(755,root,root) %{_libdir}/samba/libasn1-samba4.so.8.0.0 | |
1213 | %attr(755,root,root) %ghost %{_libdir}/samba/libcom_err-samba4.so.0 | |
1214 | %attr(755,root,root) %{_libdir}/samba/libcom_err-samba4.so.0.25 | |
1215 | %attr(755,root,root) %ghost %{_libdir}/samba/libgssapi-samba4.so.2 | |
1216 | %attr(755,root,root) %{_libdir}/samba/libgssapi-samba4.so.2.0.0 | |
1217 | %attr(755,root,root) %ghost %{_libdir}/samba/libhcrypto-samba4.so.5 | |
1218 | %attr(755,root,root) %{_libdir}/samba/libhcrypto-samba4.so.5.0.1 | |
1219 | %attr(755,root,root) %ghost %{_libdir}/samba/libhdb-samba4.so.11 | |
1220 | %attr(755,root,root) %{_libdir}/samba/libhdb-samba4.so.11.0.2 | |
1221 | %attr(755,root,root) %ghost %{_libdir}/samba/libheimbase-samba4.so.1 | |
1222 | %attr(755,root,root) %{_libdir}/samba/libheimbase-samba4.so.1.0.0 | |
a76ccf78 JR |
1223 | %attr(755,root,root) %ghost %{_libdir}/samba/libheimntlm-samba4.so.1 |
1224 | %attr(755,root,root) %{_libdir}/samba/libheimntlm-samba4.so.1.0.1 | |
d8ad099f AM |
1225 | %attr(755,root,root) %ghost %{_libdir}/samba/libhx509-samba4.so.5 |
1226 | %attr(755,root,root) %{_libdir}/samba/libhx509-samba4.so.5.0.0 | |
a76ccf78 JR |
1227 | %attr(755,root,root) %ghost %{_libdir}/samba/libkdc-samba4.so.2 |
1228 | %attr(755,root,root) %{_libdir}/samba/libkdc-samba4.so.2.0.0 | |
d8ad099f AM |
1229 | %attr(755,root,root) %ghost %{_libdir}/samba/libkrb5-samba4.so.26 |
1230 | %attr(755,root,root) %{_libdir}/samba/libkrb5-samba4.so.26.0.0 | |
1231 | %attr(755,root,root) %ghost %{_libdir}/samba/libroken-samba4.so.19 | |
1232 | %attr(755,root,root) %{_libdir}/samba/libroken-samba4.so.19.0.1 | |
1233 | %attr(755,root,root) %ghost %{_libdir}/samba/libwind-samba4.so.0 | |
1234 | %attr(755,root,root) %{_libdir}/samba/libwind-samba4.so.0.0.0 | |
1235 | %endif | |
295b7a55 AM |
1236 | %attr(755,root,root) %{_libdir}/samba/libaddns-samba4.so |
1237 | %attr(755,root,root) %{_libdir}/samba/libads-samba4.so | |
1238 | %attr(755,root,root) %{_libdir}/samba/libasn1util-samba4.so | |
1239 | %attr(755,root,root) %{_libdir}/samba/libauth4-samba4.so | |
1240 | %attr(755,root,root) %{_libdir}/samba/libauthkrb5-samba4.so | |
295b7a55 | 1241 | %attr(755,root,root) %{_libdir}/samba/libauth-samba4.so |
0749f183 | 1242 | %attr(755,root,root) %{_libdir}/samba/libauth-sam-reply-samba4.so |
295b7a55 AM |
1243 | %attr(755,root,root) %{_libdir}/samba/libauth-unix-token-samba4.so |
1244 | %attr(755,root,root) %{_libdir}/samba/libCHARSET3-samba4.so | |
1245 | %attr(755,root,root) %{_libdir}/samba/libcliauth-samba4.so | |
1246 | %attr(755,root,root) %{_libdir}/samba/libcli-cldap-samba4.so | |
1247 | %attr(755,root,root) %{_libdir}/samba/libcli-ldap-common-samba4.so | |
1248 | %attr(755,root,root) %{_libdir}/samba/libcli-ldap-samba4.so | |
1249 | %attr(755,root,root) %{_libdir}/samba/libcli-nbt-samba4.so | |
1250 | %attr(755,root,root) %{_libdir}/samba/libcli-smb-common-samba4.so | |
1251 | %attr(755,root,root) %{_libdir}/samba/libcli-spoolss-samba4.so | |
1252 | %attr(755,root,root) %{_libdir}/samba/libcluster-samba4.so | |
1253 | %attr(755,root,root) %{_libdir}/samba/libcmdline-credentials-samba4.so | |
1254 | %attr(755,root,root) %{_libdir}/samba/libdb-glue-samba4.so | |
1255 | %attr(755,root,root) %{_libdir}/samba/libdbwrap-samba4.so | |
8e43bad6 | 1256 | %attr(755,root,root) %{_libdir}/samba/libdcerpc-samba4.so |
295b7a55 AM |
1257 | %attr(755,root,root) %{_libdir}/samba/libdcerpc-samba-samba4.so |
1258 | %attr(755,root,root) %{_libdir}/samba/libdfs-server-ad-samba4.so | |
c1fde71a | 1259 | %attr(755,root,root) %{_libdir}/samba/libdnsserver-common-samba4.so |
d8ad099f | 1260 | %attr(755,root,root) %{_libdir}/samba/libdsdb-garbage-collect-tombstones-samba4.so |
295b7a55 | 1261 | %attr(755,root,root) %{_libdir}/samba/libdsdb-module-samba4.so |
295b7a55 AM |
1262 | %attr(755,root,root) %{_libdir}/samba/libevents-samba4.so |
1263 | %attr(755,root,root) %{_libdir}/samba/libflag-mapping-samba4.so | |
0749f183 JR |
1264 | %attr(755,root,root) %{_libdir}/samba/libgenrand-samba4.so |
1265 | %attr(755,root,root) %{_libdir}/samba/libgensec-samba4.so | |
295b7a55 AM |
1266 | %attr(755,root,root) %{_libdir}/samba/libgpo-samba4.so |
1267 | %attr(755,root,root) %{_libdir}/samba/libgse-samba4.so | |
1268 | %attr(755,root,root) %{_libdir}/samba/libHDB-SAMBA4-samba4.so | |
1269 | %attr(755,root,root) %{_libdir}/samba/libhttp-samba4.so | |
1270 | %attr(755,root,root) %{_libdir}/samba/libinterfaces-samba4.so | |
0749f183 | 1271 | %attr(755,root,root) %{_libdir}/samba/libiov-buf-samba4.so |
295b7a55 AM |
1272 | %attr(755,root,root) %{_libdir}/samba/libkrb5samba-samba4.so |
1273 | %attr(755,root,root) %{_libdir}/samba/libldbsamba-samba4.so | |
1274 | %attr(755,root,root) %{_libdir}/samba/liblibcli-lsa3-samba4.so | |
1275 | %attr(755,root,root) %{_libdir}/samba/liblibcli-netlogon3-samba4.so | |
1276 | %attr(755,root,root) %{_libdir}/samba/liblibsmb-samba4.so | |
1277 | %attr(755,root,root) %{_libdir}/samba/libLIBWBCLIENT-OLD-samba4.so | |
d8ad099f AM |
1278 | %attr(755,root,root) %{_libdir}/samba/libmessages-dgm-samba4.so |
1279 | %attr(755,root,root) %{_libdir}/samba/libmessages-util-samba4.so | |
0749f183 | 1280 | %attr(755,root,root) %{_libdir}/samba/libMESSAGING-samba4.so |
d8ad099f | 1281 | %attr(755,root,root) %{_libdir}/samba/libmsghdr-samba4.so |
295b7a55 | 1282 | %attr(755,root,root) %{_libdir}/samba/libmsrpc3-samba4.so |
8e43bad6 | 1283 | %attr(755,root,root) %{_libdir}/samba/libndr-samba4.so |
295b7a55 AM |
1284 | %attr(755,root,root) %{_libdir}/samba/libndr-samba-samba4.so |
1285 | %attr(755,root,root) %{_libdir}/samba/libnetif-samba4.so | |
1286 | %attr(755,root,root) %{_libdir}/samba/libnet-keytab-samba4.so | |
1287 | %attr(755,root,root) %{_libdir}/samba/libnon-posix-acls-samba4.so | |
1288 | %attr(755,root,root) %{_libdir}/samba/libnpa-tstream-samba4.so | |
295b7a55 AM |
1289 | %attr(755,root,root) %{_libdir}/samba/libpac-samba4.so |
1290 | %attr(755,root,root) %{_libdir}/samba/libpopt-samba3-samba4.so | |
1291 | %attr(755,root,root) %{_libdir}/samba/libposix-eadb-samba4.so | |
1292 | %attr(755,root,root) %{_libdir}/samba/libprinting-migrate-samba4.so | |
1293 | %attr(755,root,root) %{_libdir}/samba/libprocess-model-samba4.so | |
0749f183 | 1294 | %attr(755,root,root) %{_libdir}/samba/libregistry-samba4.so |
295b7a55 | 1295 | %attr(755,root,root) %{_libdir}/samba/libsamba3-util-samba4.so |
295b7a55 AM |
1296 | %attr(755,root,root) %{_libdir}/samba/libsamba-debug-samba4.so |
1297 | %attr(755,root,root) %{_libdir}/samba/libsamba-modules-samba4.so | |
1298 | %attr(755,root,root) %{_libdir}/samba/libsamba-net-samba4.so | |
1299 | %attr(755,root,root) %{_libdir}/samba/libsamba-python-samba4.so | |
1300 | %attr(755,root,root) %{_libdir}/samba/libsamba-security-samba4.so | |
295b7a55 AM |
1301 | %attr(755,root,root) %{_libdir}/samba/libsamba-sockets-samba4.so |
1302 | %attr(755,root,root) %{_libdir}/samba/libsamdb-common-samba4.so | |
1303 | %attr(755,root,root) %{_libdir}/samba/libsecrets3-samba4.so | |
0749f183 | 1304 | %attr(755,root,root) %{_libdir}/samba/libserver-id-db-samba4.so |
295b7a55 AM |
1305 | %attr(755,root,root) %{_libdir}/samba/libserver-role-samba4.so |
1306 | %attr(755,root,root) %{_libdir}/samba/libservice-samba4.so | |
1307 | %attr(755,root,root) %{_libdir}/samba/libshares-samba4.so | |
0749f183 | 1308 | %attr(755,root,root) %{_libdir}/samba/libsmbclient-raw-samba4.so |
295b7a55 AM |
1309 | %attr(755,root,root) %{_libdir}/samba/libsmbd-base-samba4.so |
1310 | %attr(755,root,root) %{_libdir}/samba/libsmbd-conn-samba4.so | |
1311 | %attr(755,root,root) %{_libdir}/samba/libsmbd-shim-samba4.so | |
1312 | %attr(755,root,root) %{_libdir}/samba/libsmbldaphelper-samba4.so | |
1313 | %attr(755,root,root) %{_libdir}/samba/libsmbpasswdparser-samba4.so | |
1314 | %attr(755,root,root) %{_libdir}/samba/libsmbregistry-samba4.so | |
1315 | %attr(755,root,root) %{_libdir}/samba/libsmb-transport-samba4.so | |
0749f183 JR |
1316 | %attr(755,root,root) %{_libdir}/samba/libsocket-blocking-samba4.so |
1317 | %attr(755,root,root) %{_libdir}/samba/libsys-rw-samba4.so | |
1318 | %attr(755,root,root) %{_libdir}/samba/libtalloc-report-samba4.so | |
295b7a55 | 1319 | %attr(755,root,root) %{_libdir}/samba/libtdb-wrap-samba4.so |
0749f183 | 1320 | %attr(755,root,root) %{_libdir}/samba/libtime-basic-samba4.so |
295b7a55 AM |
1321 | %attr(755,root,root) %{_libdir}/samba/libtrusts-util-samba4.so |
1322 | %attr(755,root,root) %{_libdir}/samba/libutil-cmdline-samba4.so | |
295b7a55 AM |
1323 | %attr(755,root,root) %{_libdir}/samba/libutil-reg-samba4.so |
1324 | %attr(755,root,root) %{_libdir}/samba/libutil-setid-samba4.so | |
1325 | %attr(755,root,root) %{_libdir}/samba/libutil-tdb-samba4.so | |
1326 | %attr(755,root,root) %{_libdir}/samba/libxattr-tdb-samba4.so | |
e71e0470 | 1327 | |
f2b0247b ER |
1328 | %files devel |
1329 | %defattr(644,root,root,755) | |
f1c7ad61 JR |
1330 | %{_includedir}/samba-4.0/charset.h |
1331 | %dir %{_includedir}/samba-4.0/core | |
1332 | %{_includedir}/samba-4.0/core/doserr.h | |
1333 | %{_includedir}/samba-4.0/core/error.h | |
295b7a55 | 1334 | %{_includedir}/samba-4.0/core/hresult.h |
f1c7ad61 JR |
1335 | %{_includedir}/samba-4.0/core/ntstatus.h |
1336 | %{_includedir}/samba-4.0/core/werror.h | |
1337 | %{_includedir}/samba-4.0/credentials.h | |
1338 | %{_includedir}/samba-4.0/dcerpc.h | |
1339 | %{_includedir}/samba-4.0/dcerpc_server.h | |
f1c7ad61 JR |
1340 | %{_includedir}/samba-4.0/domain_credentials.h |
1341 | %dir %{_includedir}/samba-4.0/gen_ndr | |
1342 | %{_includedir}/samba-4.0/gen_ndr/atsvc.h | |
1343 | %{_includedir}/samba-4.0/gen_ndr/auth.h | |
1344 | %{_includedir}/samba-4.0/gen_ndr/dcerpc.h | |
8e43bad6 JR |
1345 | %{_includedir}/samba-4.0/gen_ndr/drsblobs.h |
1346 | %{_includedir}/samba-4.0/gen_ndr/drsuapi.h | |
f1c7ad61 JR |
1347 | %{_includedir}/samba-4.0/gen_ndr/krb5pac.h |
1348 | %{_includedir}/samba-4.0/gen_ndr/lsa.h | |
f1c7ad61 JR |
1349 | %{_includedir}/samba-4.0/gen_ndr/misc.h |
1350 | %{_includedir}/samba-4.0/gen_ndr/nbt.h | |
f1c7ad61 JR |
1351 | %{_includedir}/samba-4.0/gen_ndr/ndr_atsvc.h |
1352 | %{_includedir}/samba-4.0/gen_ndr/ndr_dcerpc.h | |
8e43bad6 JR |
1353 | %{_includedir}/samba-4.0/gen_ndr/ndr_drsblobs.h |
1354 | %{_includedir}/samba-4.0/gen_ndr/ndr_drsuapi.h | |
f1c7ad61 | 1355 | %{_includedir}/samba-4.0/gen_ndr/ndr_krb5pac.h |
f1c7ad61 JR |
1356 | %{_includedir}/samba-4.0/gen_ndr/ndr_misc.h |
1357 | %{_includedir}/samba-4.0/gen_ndr/ndr_nbt.h | |
f1c7ad61 | 1358 | %{_includedir}/samba-4.0/gen_ndr/ndr_samr.h |
8e43bad6 | 1359 | %{_includedir}/samba-4.0/gen_ndr/ndr_samr_c.h |
f1c7ad61 | 1360 | %{_includedir}/samba-4.0/gen_ndr/ndr_svcctl.h |
8e43bad6 | 1361 | %{_includedir}/samba-4.0/gen_ndr/ndr_svcctl_c.h |
f1c7ad61 JR |
1362 | %{_includedir}/samba-4.0/gen_ndr/netlogon.h |
1363 | %{_includedir}/samba-4.0/gen_ndr/samr.h | |
1364 | %{_includedir}/samba-4.0/gen_ndr/security.h | |
1365 | %{_includedir}/samba-4.0/gen_ndr/server_id.h | |
1366 | %{_includedir}/samba-4.0/gen_ndr/svcctl.h | |
f1c7ad61 JR |
1367 | %{_includedir}/samba-4.0/ldb_wrap.h |
1368 | %{_includedir}/samba-4.0/ndr.h | |
1369 | %dir %{_includedir}/samba-4.0/ndr | |
295b7a55 | 1370 | %{_includedir}/samba-4.0/ndr/ndr_dcerpc.h |
8e43bad6 JR |
1371 | %{_includedir}/samba-4.0/ndr/ndr_drsblobs.h |
1372 | %{_includedir}/samba-4.0/ndr/ndr_drsuapi.h | |
d8ad099f | 1373 | %{_includedir}/samba-4.0/ndr/ndr_krb5pac.h |
f1c7ad61 JR |
1374 | %{_includedir}/samba-4.0/ndr/ndr_nbt.h |
1375 | %{_includedir}/samba-4.0/ndr/ndr_svcctl.h | |
1376 | %{_includedir}/samba-4.0/param.h | |
1377 | %{_includedir}/samba-4.0/policy.h | |
f1c7ad61 JR |
1378 | %{_includedir}/samba-4.0/rpc_common.h |
1379 | %dir %{_includedir}/samba-4.0/samba | |
1380 | %{_includedir}/samba-4.0/samba/session.h | |
f1c7ad61 JR |
1381 | %{_includedir}/samba-4.0/samba/version.h |
1382 | %{_includedir}/samba-4.0/share.h | |
295b7a55 | 1383 | %{_includedir}/samba-4.0/smb2_lease_struct.h |
f1c7ad61 JR |
1384 | %{_includedir}/samba-4.0/tdr.h |
1385 | %{_includedir}/samba-4.0/tsocket.h | |
1386 | %{_includedir}/samba-4.0/tsocket_internal.h | |
1387 | %dir %{_includedir}/samba-4.0/util | |
1388 | %{_includedir}/samba-4.0/util/attr.h | |
295b7a55 | 1389 | %{_includedir}/samba-4.0/util/blocking.h |
f1c7ad61 JR |
1390 | %{_includedir}/samba-4.0/util/byteorder.h |
1391 | %{_includedir}/samba-4.0/util/data_blob.h | |
1392 | %{_includedir}/samba-4.0/util/debug.h | |
295b7a55 | 1393 | %{_includedir}/samba-4.0/util/fault.h |
f5b9acfe | 1394 | %{_includedir}/samba-4.0/util/genrand.h |
295b7a55 AM |
1395 | %{_includedir}/samba-4.0/util/idtree.h |
1396 | %{_includedir}/samba-4.0/util/idtree_random.h | |
f1c7ad61 JR |
1397 | %{_includedir}/samba-4.0/util/memory.h |
1398 | %{_includedir}/samba-4.0/util/safe_string.h | |
295b7a55 | 1399 | %{_includedir}/samba-4.0/util/signal.h |
f1c7ad61 | 1400 | %{_includedir}/samba-4.0/util/string_wrappers.h |
295b7a55 | 1401 | %{_includedir}/samba-4.0/util/substitute.h |
f1c7ad61 JR |
1402 | %{_includedir}/samba-4.0/util/talloc_stack.h |
1403 | %{_includedir}/samba-4.0/util/tevent_ntstatus.h | |
1404 | %{_includedir}/samba-4.0/util/tevent_unix.h | |
1405 | %{_includedir}/samba-4.0/util/tevent_werror.h | |
1406 | %{_includedir}/samba-4.0/util/time.h | |
1407 | %{_includedir}/samba-4.0/util/xfile.h | |
8e43bad6 | 1408 | %{_includedir}/samba-4.0/util_ldb.h |
31de16f4 JR |
1409 | %{_includedir}/samba-4.0/lookup_sid.h |
1410 | %{_includedir}/samba-4.0/machine_sid.h | |
1411 | %{_includedir}/samba-4.0/netapi.h | |
1412 | %{_includedir}/samba-4.0/passdb.h | |
1413 | %{_includedir}/samba-4.0/smbconf.h | |
1414 | %{_includedir}/samba-4.0/smb_ldap.h | |
1415 | %{_includedir}/samba-4.0/smbldap.h | |
8e43bad6 JR |
1416 | %attr(755,root,root) %{_libdir}/libdcerpc-binding.so |
1417 | %attr(755,root,root) %{_libdir}/libdcerpc-samr.so | |
1418 | %attr(755,root,root) %{_libdir}/libdcerpc-server.so | |
1419 | %attr(755,root,root) %{_libdir}/libdcerpc.so | |
8e43bad6 JR |
1420 | %attr(755,root,root) %{_libdir}/libndr-krb5pac.so |
1421 | %attr(755,root,root) %{_libdir}/libndr-nbt.so | |
8e43bad6 | 1422 | %attr(755,root,root) %{_libdir}/libndr.so |
31de16f4 JR |
1423 | %attr(755,root,root) %{_libdir}/libndr-standard.so |
1424 | %attr(755,root,root) %{_libdir}/libnetapi.so | |
8e43bad6 | 1425 | %attr(755,root,root) %{_libdir}/libsamba-credentials.so |
0749f183 | 1426 | %attr(755,root,root) %{_libdir}/libsamba-errors.so |
8e43bad6 | 1427 | %attr(755,root,root) %{_libdir}/libsamba-hostconfig.so |
295b7a55 | 1428 | %attr(755,root,root) %{_libdir}/libsamba-passdb.so |
8e43bad6 JR |
1429 | %attr(755,root,root) %{_libdir}/libsamba-policy.so |
1430 | %attr(755,root,root) %{_libdir}/libsamba-util.so | |
1431 | %attr(755,root,root) %{_libdir}/libsamdb.so | |
8e43bad6 | 1432 | %attr(755,root,root) %{_libdir}/libsmbconf.so |
31de16f4 | 1433 | %attr(755,root,root) %{_libdir}/libsmbldap.so |
8e43bad6 | 1434 | %attr(755,root,root) %{_libdir}/libtevent-util.so |
f1c7ad61 | 1435 | %{_pkgconfigdir}/dcerpc.pc |
05913998 JR |
1436 | %{_pkgconfigdir}/dcerpc_samr.pc |
1437 | %{_pkgconfigdir}/dcerpc_server.pc | |
8e43bad6 | 1438 | %{_pkgconfigdir}/ndr.pc |
05913998 JR |
1439 | %{_pkgconfigdir}/ndr_krb5pac.pc |
1440 | %{_pkgconfigdir}/ndr_nbt.pc | |
1441 | %{_pkgconfigdir}/ndr_standard.pc | |
31de16f4 | 1442 | %{_pkgconfigdir}/netapi.pc |
05913998 JR |
1443 | %{_pkgconfigdir}/samba-credentials.pc |
1444 | %{_pkgconfigdir}/samba-hostconfig.pc | |
1445 | %{_pkgconfigdir}/samba-policy.pc | |
1446 | %{_pkgconfigdir}/samba-util.pc | |
1447 | %{_pkgconfigdir}/samdb.pc | |
a9009cd3 | 1448 | %if %{without system_libs} |
89730013 | 1449 | %{_mandir}/man3/ntdb.3* |
a9009cd3 | 1450 | %endif |
4d036a87 | 1451 | |
382a477a JR |
1452 | %files pidl |
1453 | %defattr(644,root,root,755) | |
1454 | %attr(755,root,root) %{_bindir}/pidl | |
1455 | %{_mandir}/man1/pidl.1* | |
1456 | %{_mandir}/man3/Parse::Pidl*.3* | |
1457 | %{perl_vendorlib}/Parse/Pidl* | |
29511e6d | 1458 | |
025a78ca | 1459 | %files -n python-samba |
9f6f5df1 | 1460 | %defattr(644,root,root,755) |
c083eea8 JR |
1461 | %dir %{py_sitedir}/samba |
1462 | %attr(755,root,root) %{py_sitedir}/samba/*.so | |
1463 | %{py_sitedir}/samba/*.py[co] | |
1464 | %dir %{py_sitedir}/samba/dcerpc | |
1465 | %{py_sitedir}/samba/dcerpc/*.py[co] | |
1466 | %attr(755,root,root) %{py_sitedir}/samba/dcerpc/*.so | |
f5b9acfe AM |
1467 | %dir %{py_sitedir}/samba/kcc |
1468 | %{py_sitedir}/samba/kcc/*.py[co] | |
c083eea8 JR |
1469 | %dir %{py_sitedir}/samba/netcmd |
1470 | %{py_sitedir}/samba/netcmd/*.py[co] | |
1471 | %dir %{py_sitedir}/samba/provision | |
1472 | %{py_sitedir}/samba/provision/*.py[co] | |
6ed8d415 JR |
1473 | %dir %{py_sitedir}/samba/samba3 |
1474 | %attr(755,root,root) %{py_sitedir}/samba/samba3/*.so | |
1475 | %{py_sitedir}/samba/samba3/*.py[co] | |
f5b9acfe AM |
1476 | %dir %{py_sitedir}/samba/subunit |
1477 | %{py_sitedir}/samba/subunit/*.py[co] | |
c083eea8 JR |
1478 | %dir %{py_sitedir}/samba/tests |
1479 | %{py_sitedir}/samba/tests/*.py[co] | |
1480 | %dir %{py_sitedir}/samba/tests/blackbox | |
1481 | %{py_sitedir}/samba/tests/blackbox/*.py[co] | |
c083eea8 JR |
1482 | %dir %{py_sitedir}/samba/tests/dcerpc |
1483 | %{py_sitedir}/samba/tests/dcerpc/*.py[co] | |
23038e32 JR |
1484 | %dir %{py_sitedir}/samba/tests/dns_forwarder_helpers |
1485 | %{py_sitedir}/samba/tests/dns_forwarder_helpers/*.py[co] | |
1486 | %dir %{py_sitedir}/samba/tests/kcc | |
1487 | %{py_sitedir}/samba/tests/kcc/*.py[co] | |
1488 | %dir %{py_sitedir}/samba/tests/samba_tool | |
1489 | %{py_sitedir}/samba/tests/samba_tool/*.py[co] | |
f5b9acfe AM |
1490 | %dir %{py_sitedir}/samba/third_party |
1491 | %{py_sitedir}/samba/third_party/*.py[co] | |
1492 | %dir %{py_sitedir}/samba/third_party/iso8601 | |
1493 | %{py_sitedir}/samba/third_party/iso8601/*.py[co] | |
c083eea8 JR |
1494 | %dir %{py_sitedir}/samba/web_server |
1495 | %{py_sitedir}/samba/web_server/*.py[co] | |
1496 | %if %{without system_libs} | |
ef67314f | 1497 | %attr(755,root,root) %{py_sitedir}/ldb.so |
a9009cd3 | 1498 | %attr(755,root,root) %{py_sitedir}/ntdb.so |
ef67314f JB |
1499 | %attr(755,root,root) %{py_sitedir}/talloc.so |
1500 | %attr(755,root,root) %{py_sitedir}/tdb.so | |
1501 | %attr(755,root,root) %{py_sitedir}/_tevent.so | |
c083eea8 | 1502 | %{py_sitedir}/tevent.py[co] |
fd9d8b85 | 1503 | %endif |
70ff6d03 | 1504 | |
c083eea8 | 1505 | %files test |
d1f5710a | 1506 | %defattr(644,root,root,755) |
c083eea8 JR |
1507 | %attr(755,root,root) %{_bindir}/gentest |
1508 | %attr(755,root,root) %{_bindir}/locktest | |
1509 | %attr(755,root,root) %{_bindir}/masktest | |
1510 | %attr(755,root,root) %{_bindir}/ndrdump | |
1511 | %attr(755,root,root) %{_bindir}/smbtorture | |
295b7a55 | 1512 | %attr(755,root,root) %{_libdir}/samba/libdlz-bind9-for-torture-samba4.so |
0749f183 | 1513 | %attr(755,root,root) %{_libdir}/samba/libtorture-samba4.so |
c083eea8 JR |
1514 | %{_mandir}/man1/gentest.1* |
1515 | %{_mandir}/man1/locktest.1* | |
1516 | %{_mandir}/man1/masktest.1* | |
1517 | %{_mandir}/man1/ndrdump.1* | |
1518 | %{_mandir}/man1/smbtorture.1* | |
d1f5710a | 1519 | |
fe5b5b93 | 1520 | %files -n libsmbclient |
382a477a JR |
1521 | %defattr(644,root,root,755) |
1522 | %attr(755,root,root) %{_libdir}/libsmbclient.so.* | |
382a477a | 1523 | %attr(755,root,root) %{_libdir}/libwbclient.so.* |
295b7a55 | 1524 | %attr(755,root,root) %{_libdir}/samba/libwinbind-client-samba4.so |
287950f2 | 1525 | %{_mandir}/man7/libsmbclient.7* |
382a477a | 1526 | |
fe5b5b93 | 1527 | %files -n libsmbclient-devel |
382a477a JR |
1528 | %defattr(644,root,root,755) |
1529 | %attr(755,root,root) %{_libdir}/libsmbclient.so | |
382a477a | 1530 | %attr(755,root,root) %{_libdir}/libwbclient.so |
5a89b1cc | 1531 | %dir %{_includedir}/samba-4.0 |
e98238cc JR |
1532 | %{_includedir}/samba-4.0/libsmbclient.h |
1533 | %{_includedir}/samba-4.0/wbclient.h | |
1534 | %{_pkgconfigdir}/smbclient.pc | |
1535 | %{_pkgconfigdir}/wbclient.pc | |
382a477a | 1536 | |
382a477a | 1537 | %if %{with ldap} |
025a78ca | 1538 | %files -n openldap-schema-samba |
382a477a | 1539 | %defattr(644,root,root,755) |
a3c4e78e | 1540 | %{schemadir}/samba.schema |
382a477a | 1541 | %endif |
f5b9acfe AM |
1542 | |
1543 | %files -n ctdb | |
0c995865 | 1544 | %defattr(644,root,root,755) |
f5b9acfe | 1545 | %doc ctdb/README |
0c995865 | 1546 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ctdb |
f5b9acfe AM |
1547 | %{_sysconfdir}/ctdb/notify.sh |
1548 | %{_sysconfdir}/ctdb/debug-hung-script.sh | |
1549 | %{_sysconfdir}/ctdb/ctdb-crash-cleanup.sh | |
1550 | %{_sysconfdir}/ctdb/gcore_trace.sh | |
1551 | %{_sysconfdir}/ctdb/functions | |
1552 | %{_sysconfdir}/ctdb/debug_locks.sh | |
42352377 | 1553 | %dir %{_localstatedir}/lib/ctdb |
f5b9acfe AM |
1554 | |
1555 | %{systemdunitdir}/ctdb.service | |
1556 | ||
1557 | %dir %{_sysconfdir}/ctdb | |
1558 | %{_sysconfdir}/ctdb/statd-callout | |
1559 | # CTDB scripts, no config files | |
1560 | # script with executable bit means activated | |
1561 | %dir %{_sysconfdir}/ctdb/nfs-checks.d | |
1562 | %{_sysconfdir}/ctdb/nfs-checks.d/00.portmapper.check | |
1563 | %{_sysconfdir}/ctdb/nfs-checks.d/10.status.check | |
1564 | %{_sysconfdir}/ctdb/nfs-checks.d/20.nfs.check | |
1565 | %{_sysconfdir}/ctdb/nfs-checks.d/30.nlockmgr.check | |
1566 | %{_sysconfdir}/ctdb/nfs-checks.d/40.mountd.check | |
1567 | %{_sysconfdir}/ctdb/nfs-checks.d/50.rquotad.check | |
1568 | %{_sysconfdir}/ctdb/nfs-checks.d/README | |
1569 | %{_sysconfdir}/ctdb/nfs-linux-kernel-callout | |
1570 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sudoers.d/ctdb | |
1571 | # CTDB scripts, no config files | |
1572 | # script with executable bit means activated | |
1573 | %dir %{_sysconfdir}/ctdb/events.d | |
1574 | %{_sysconfdir}/ctdb/events.d/00.ctdb | |
1575 | %{_sysconfdir}/ctdb/events.d/01.reclock | |
1576 | %{_sysconfdir}/ctdb/events.d/05.system | |
d8ad099f | 1577 | %{_sysconfdir}/ctdb/events.d/06.nfs |
f5b9acfe AM |
1578 | %{_sysconfdir}/ctdb/events.d/10.external |
1579 | %{_sysconfdir}/ctdb/events.d/10.interface | |
1580 | %{_sysconfdir}/ctdb/events.d/11.natgw | |
1581 | %{_sysconfdir}/ctdb/events.d/11.routing | |
1582 | %{_sysconfdir}/ctdb/events.d/13.per_ip_routing | |
1583 | %{_sysconfdir}/ctdb/events.d/20.multipathd | |
1584 | %{_sysconfdir}/ctdb/events.d/31.clamd | |
1585 | %{_sysconfdir}/ctdb/events.d/40.vsftpd | |
1586 | %{_sysconfdir}/ctdb/events.d/41.httpd | |
1587 | %{_sysconfdir}/ctdb/events.d/49.winbind | |
1588 | %{_sysconfdir}/ctdb/events.d/50.samba | |
1589 | %{_sysconfdir}/ctdb/events.d/60.nfs | |
1590 | %{_sysconfdir}/ctdb/events.d/70.iscsi | |
1591 | %{_sysconfdir}/ctdb/events.d/91.lvs | |
1592 | %{_sysconfdir}/ctdb/events.d/99.timeout | |
1593 | %{_sysconfdir}/ctdb/events.d/README | |
1594 | %dir %{_sysconfdir}/ctdb/notify.d | |
1595 | %{_sysconfdir}/ctdb/notify.d/README | |
1596 | %{systemdtmpfilesdir}/ctdb.conf | |
0c995865 JR |
1597 | %attr(755,root,root) %{_sbindir}/ctdbd |
1598 | %attr(755,root,root) %{_sbindir}/ctdbd_wrapper | |
1599 | %attr(755,root,root) %{_bindir}/ctdb | |
0c995865 JR |
1600 | %attr(755,root,root) %{_bindir}/ping_pong |
1601 | %attr(755,root,root) %{_bindir}/ltdbtool | |
1602 | %attr(755,root,root) %{_bindir}/ctdb_diagnostics | |
1603 | %attr(755,root,root) %{_bindir}/onnode | |
2ec3c78e JR |
1604 | %dir %{_libdir}/ctdb |
1605 | %{_libdir}/ctdb/ctdb_natgw | |
1606 | %{_libdir}/ctdb/ctdb_recovery_helper | |
1607 | %{_libdir}/ctdb/smnotify | |
1608 | %attr(755,root,root) %{_libdir}/ctdb/ctdb_event_helper | |
1609 | %attr(755,root,root) %{_libdir}/ctdb/ctdb_killtcp | |
1610 | %attr(755,root,root) %{_libdir}/ctdb/ctdb_lock_helper | |
1611 | %attr(755,root,root) %{_libdir}/ctdb/ctdb_lvs | |
1612 | %attr(755,root,root) %{_libdir}/ctdb/ctdb_mutex_fcntl_helper | |
f5b9acfe AM |
1613 | |
1614 | %{_mandir}/man1/ctdb.1* | |
d8ad099f | 1615 | %{_mandir}/man1/ctdb_diagnostics.1* |
f5b9acfe AM |
1616 | %{_mandir}/man1/ctdbd.1* |
1617 | %{_mandir}/man1/onnode.1* | |
1618 | %{_mandir}/man1/ltdbtool.1* | |
1619 | %{_mandir}/man1/ping_pong.1* | |
1620 | %{_mandir}/man1/ctdbd_wrapper.1* | |
1621 | %{_mandir}/man5/ctdbd.conf.5* | |
1622 | %{_mandir}/man7/ctdb.7* | |
1623 | %{_mandir}/man7/ctdb-tunables.7* | |
1624 | %{_mandir}/man7/ctdb-statistics.7* | |
ea29dc9e JR |
1625 | |
1626 | %if %{with ctdb_pcp} | |
1627 | %files -n pcp-ctdb | |
1628 | %defattr(644,root,root,755) | |
1629 | %dir /var/lib/pcp/pmdas/ctdb | |
1630 | %doc /var/lib/pcp/pmdas/ctdb/README | |
1631 | %attr(755,root,root) /var/lib/pcp/pmdas/ctdb/Install | |
1632 | %attr(755,root,root) /var/lib/pcp/pmdas/ctdb/Remove | |
1633 | %attr(755,root,root) /var/lib/pcp/pmdas/ctdb/pmdactdb | |
1634 | /var/lib/pcp/pmdas/ctdb/domain.h | |
1635 | /var/lib/pcp/pmdas/ctdb/help | |
1636 | /var/lib/pcp/pmdas/ctdb/pmns | |
1637 | %endif |