1 |
# $Id: e-smith-samba.spec,v 1.28 2010/03/06 09:41:47 snetram Exp $ |
# $Id: e-smith-samba.spec,v 1.34 2010/03/26 16:09:17 filippocarletti Exp $ |
2 |
|
|
3 |
Summary: e-smith specific Samba configuration files and templates |
Summary: e-smith specific Samba configuration files and templates |
4 |
%define name e-smith-samba |
%define name e-smith-samba |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.2.0 |
%define version 2.2.0 |
7 |
%define release 10 |
%define release 15 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
18 |
Patch6: e-smith-samba-2.2.0-enable-bind-interfaces.patch |
Patch6: e-smith-samba-2.2.0-enable-bind-interfaces.patch |
19 |
Patch7: e-smith-samba-2.2.0-profilev2.patch |
Patch7: e-smith-samba-2.2.0-profilev2.patch |
20 |
Patch8: e-smith-samba-2.2.0-refactor-profilev2.patch |
Patch8: e-smith-samba-2.2.0-refactor-profilev2.patch |
21 |
|
Patch9: e-smith-samba-2.2.0-quote-manually.patch |
22 |
|
Patch10: e-smith-samba-2.2.0-fail-silently-on-non-existent-folder.patch |
23 |
|
Patch11: e-smith-samba-2.2.0-tdb_backup.patch |
24 |
|
Patch12: e-smith-samba-2.2.0-private_dir.patch |
25 |
Obsoletes: e-smith-netlogon |
Obsoletes: e-smith-netlogon |
26 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
27 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
29 |
Obsoletes: e-smith-regedit |
Obsoletes: e-smith-regedit |
30 |
Requires: e-smith-lib >= 2.2.0-2 |
Requires: e-smith-lib >= 2.2.0-2 |
31 |
Requires: e-smith-formmagick >= 1.4.0-9 |
Requires: e-smith-formmagick >= 1.4.0-9 |
32 |
Requires: samba >= 3.0.25b |
Requires: samba >= 3.4.3 |
33 |
Requires: samba-client >= 3.0.25b |
Requires: samba-client >= 3.4.3 |
34 |
Requires: samba-common >= 3.0.25b |
Requires: samba-common >= 3.4.3 |
35 |
|
Requires: /usr/bin/tdbbackup |
36 |
AutoReqProv: no |
AutoReqProv: no |
37 |
|
|
38 |
%changelog |
%changelog |
39 |
|
* Tue Mar 30 2010 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-15.sme |
40 |
|
- Explicitly declare samba private dir [SME: 5857] |
41 |
|
|
42 |
|
* Fri Mar 26 2010 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-14.sme |
43 |
|
- Fix tdb file paths to backup in run script [SME: 5856] |
44 |
|
|
45 |
|
* Wed Mar 17 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-13.sme |
46 |
|
- Add dependency /usr/bin/tdbbackup [SME: 5851] |
47 |
|
|
48 |
|
* Sat Mar 6 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-12.sme |
49 |
|
- Add missing comma in previous patch [SME: 5821] |
50 |
|
- Silently skip non-existent profile folder [SME: 5821] |
51 |
|
|
52 |
|
* Sat Mar 6 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-11.sme |
53 |
|
- Properly quote the profile folders manually [SME: 5821] |
54 |
|
|
55 |
* Sat Mar 6 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-10.sme |
* Sat Mar 6 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-10.sme |
56 |
- Rework V2 profile patch to fix error on user-delete event [SME: 5821] |
- Rework V2 profile patch to fix error on user-delete event [SME: 5821] |
57 |
|
|
1051 |
%patch6 -p1 |
%patch6 -p1 |
1052 |
%patch7 -p1 |
%patch7 -p1 |
1053 |
%patch8 -p1 |
%patch8 -p1 |
1054 |
|
%patch9 -p1 |
1055 |
|
%patch10 -p1 |
1056 |
|
%patch11 -p1 |
1057 |
|
%patch12 -p1 |
1058 |
|
|
1059 |
%build |
%build |
1060 |
mkdir -p root/etc/e-smith/tests |
mkdir -p root/etc/e-smith/tests |
1136 |
/bin/chown admin.root /etc/samba/smbpasswd |
/bin/chown admin.root /etc/samba/smbpasswd |
1137 |
fi |
fi |
1138 |
chown -R smelog.smelog /var/log/{smbd,nmbd} |
chown -R smelog.smelog /var/log/{smbd,nmbd} |
1139 |
|
# Move back secrets.tdb to private dir |
1140 |
|
[ -f /var/lib/samba/private/secrets.tdb ] && mv -f /var/lib/samba/private/secrets.tdb /etc/samba |
1141 |
|
|
1142 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
1143 |
%defattr(-,root,root) |
%defattr(-,root,root) |