1 |
# $Id$ |
# $Id: e-smith-samba.spec,v 1.72 2013/01/23 03:23:38 wellsi 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 1 |
%define release 51 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
13 |
|
Patch1: e-smith-samba-2.2.0-sambaRole.patch |
14 |
|
Patch2: e-smith-samba-2.2.0-migratefix.patch |
15 |
|
Patch3: e-smith-samba-2.2.0-fixwarnings.patch |
16 |
|
Patch4: e-smith-samba-2.2.0-win7samba.patch |
17 |
|
Patch5: e-smith-samba-2.2.0-recylebin_perms.patch |
18 |
|
Patch6: e-smith-samba-2.2.0-enable-bind-interfaces.patch |
19 |
|
Patch7: e-smith-samba-2.2.0-profilev2.patch |
20 |
|
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 |
|
Patch13: e-smith-samba-2.2.0-backup-all-tdb-files.patch |
26 |
|
Patch14: e-smith-samba-2.2.0-strongkey.patch |
27 |
|
Patch15: e-smith-samba-2.2.0-slapd_support.patch |
28 |
|
Patch16: e-smith-samba-2.2.0-lanman_password_as_an_option.patch |
29 |
|
Patch17: e-smith-samba-2.2.0-anonymous_acls.patch |
30 |
|
Patch18: e-smith-samba-2.2.0-add_sambasid_to_sensible_attrs.patch |
31 |
|
Patch19: e-smith-samba-2.2.0-samba_attr_no_output.patch |
32 |
|
Patch20: e-smith-samba-2.2.0-fix_limited_anon_access.patch |
33 |
|
Patch21: e-smith-samba-2.2.0-fix_modify.patch |
34 |
|
Patch22: e-smith-samba-2.2.0-enable-cpu.patch |
35 |
|
Patch23: e-smith-samba-2.2.0-ldap-auth.patch |
36 |
|
Patch24: e-smith-samba-2.2.0-remove-domains.patch |
37 |
|
Patch25: e-smith-samba-2.2.0-better-ldap.patch |
38 |
|
Patch26: e-smith-samba-2.2.0-store_ldap_pw.patch |
39 |
|
Patch27: e-smith-samba-2.2.0-usergroup-mapping.patch |
40 |
|
Patch28: e-smith-samba-2.2.0-fixe_create_machine_accounts.patch |
41 |
|
Patch29: e-smith-samba-2.2.0-force_uid_gid.patch |
42 |
|
Patch30: e-smith-samba-2.2.0-migrate_machine_uid.patch |
43 |
|
Patch31: e-smith-samba-2.2.0-create_samba_data_in_event.patch |
44 |
|
Patch32: e-smith-samba-2.2.0-FixVFS_ExcludeSyntax.patch |
45 |
|
Patch34: e-smith-samba-2.2.0-fix-separator.patch |
46 |
|
Patch35: e-smith-samba-2.2.0-tdbbackup12.patch |
47 |
|
Patch36: e-smith-samba-2.2.0-samba_audit.patch |
48 |
|
Patch37: e-smith-samba-2.2.0-samba_audit_log.patch |
49 |
Obsoletes: e-smith-netlogon |
Obsoletes: e-smith-netlogon |
50 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
51 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
52 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
53 |
Obsoletes: e-smith-regedit |
Obsoletes: e-smith-regedit |
54 |
Requires: e-smith-lib >= 1.16.0-10 |
Requires: e-smith-lib >= 2.2.0-2 |
55 |
Requires: e-smith-formmagick >= 1.4.0-9 |
Requires: e-smith-formmagick >= 1.4.0-9 |
56 |
Requires: samba >= 3.0.25b |
Requires: samba3x >= 3.3.8 |
57 |
Requires: samba-client >= 3.0.25b |
Requires: samba3x-client >= 3.3.8 |
58 |
Requires: samba-common >= 3.0.25b |
Requires: samba3x-common >= 3.3.8 |
59 |
|
Obsoletes: samba <= 3.1.0 |
60 |
|
Obsoletes: samba-client <= 3.1.0 |
61 |
|
Obsoletes: samba-common <= 3.1.0 |
62 |
|
Obsoletes: samba = 3.4.3-1.1.el5.sme |
63 |
|
Obsoletes: samba-client = 3.4.3-1.1.el5.sme |
64 |
|
Obsoletes: samba-common = 3.4.3-1.1.el5.sme |
65 |
|
# Obsolete SerNet packages |
66 |
|
Obsoletes: libsmbclient0 |
67 |
|
Obsoletes: libwbclient0 |
68 |
|
Obsoletes: samba3 |
69 |
|
Obsoletes: samba3-cifsmount |
70 |
|
Obsoletes: samba3-client |
71 |
|
Obsoletes: samba3-doc |
72 |
|
Obsoletes: samba3-utils |
73 |
|
Obsoletes: samba3-winbind |
74 |
|
Requires: /usr/bin/tdbbackup12 |
75 |
AutoReqProv: no |
AutoReqProv: no |
76 |
|
|
77 |
%changelog |
%changelog |
78 |
|
* Tue Feb 12 2013 Ian Wells <esmith@wellsi.com> 2.2.0-51.sme |
79 |
|
- Remove samba_audit specific loglotate configuration [SME: 7335] |
80 |
|
|
81 |
|
* Mon Jan 21 2013 Ian Wells <esmith@wellsi.com> 2.2.0-50.sme |
82 |
|
- Enable smb auditing per ibay [SME: 6176] |
83 |
|
|
84 |
|
* Thu Jan 17 2013 Shad L. Lords <slords@mail.com> 2.2.0-49.sme |
85 |
|
- Update dependency to /usr/bin/tdbbackup12 [SME: 7210] |
86 |
|
|
87 |
|
* Sun Jan 29 2012 Ian Wells <esmith@wellsi.com> 2.2.0-48.sme |
88 |
|
- Obsolete only SerNet samba packages [SME: 6772] |
89 |
|
|
90 |
|
* Sat Jan 21 2012 Ian Wells <esmith@wellsi.com> 2.2.0-47.sme |
91 |
|
- Obsolete SerNet samba packages, again [SME: 6772] |
92 |
|
|
93 |
|
* Fri Dec 23 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-46.sme |
94 |
|
- Obsolete SerNet samba packages [SME: 6772] |
95 |
|
|
96 |
|
* Thu Mar 17 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-45.sme |
97 |
|
- Revert directory requirement from 2.2.0-43 [SME: 6571] |
98 |
|
|
99 |
|
* Thu Mar 17 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-44.sme |
100 |
|
- Revert changes made in 2.2.0-42 [SME: 6432] |
101 |
|
|
102 |
|
* Tue Mar 15 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-43.sme |
103 |
|
- Fix separator in general smb.conf section for recycle:exclude* [SME: 6571] |
104 |
|
|
105 |
|
* Tue Mar 15 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-42.sme |
106 |
|
- recycle:exclude_dir should contain directories [SME: 6432] |
107 |
|
|
108 |
|
* Sat Mar 12 2011 Gavin Weight <gweight@gmail.com> 2.2.0-41.sme |
109 |
|
- Fix Recycle Bin VFS Excludes syntax. [SME: 6432] |
110 |
|
|
111 |
|
* Tue Nov 30 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-40.sme |
112 |
|
- Create samba account during event for machine [SME: 6418] |
113 |
|
|
114 |
|
* Tue Nov 30 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-39.sme |
115 |
|
- Migrate existing machine uid in the DB (patch from Shad Lords) [SME: 6415] |
116 |
|
|
117 |
|
* Tue Nov 30 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-38.sme |
118 |
|
- Force uid/gid on machine accounts creation [SME: 6415] |
119 |
|
|
120 |
|
* Wed Nov 10 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-37.sme |
121 |
|
- Fix create-machine-accounts script [SME: 6358] |
122 |
|
|
123 |
|
* Fri Nov 5 2010 Shad L. Lords <slords@lordsfam.net> 2.2.0-36.sme |
124 |
|
- Call samba-group-mapping after user events too [SME: 6339] |
125 |
|
|
126 |
|
* Wed Nov 3 2010 Shad L. Lords <slords@lordsfam.net> 2.2.0-35.sme |
127 |
|
- Fix cpu critical patch missing ' [SME: 6330] |
128 |
|
|
129 |
|
* Wed Nov 3 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-34.sme |
130 |
|
- rename store-ldap-passwd and link it in other events [SME: 6332] |
131 |
|
|
132 |
|
* Wed Nov 3 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-33.sme |
133 |
|
- Store the ldap admin pw early in the bootstrap-ldap-save event [SME: 6332] |
134 |
|
|
135 |
|
* Wed Nov 3 2010 Shad L. Lords <slords@lordsfam.net> 2.2.0-32.sme |
136 |
|
- Make cpu calls critical only with ldap{Auth} is enabled [SME: 6330] |
137 |
|
|
138 |
|
* Tue Nov 2 2010 Shad L. Lords <slords@lordsfam.net> 2.2.0-31.sme |
139 |
|
- Always use cpu, do unix if ldap{Auth} is disabled [SME: 6321] |
140 |
|
|
141 |
|
* Tue Nov 2 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-30.sme |
142 |
|
- Fix a typo in create-machine-account [SME: 6321] |
143 |
|
|
144 |
|
* Tue Nov 2 2010 Shad L. Lords <slords@mail.com> 2.2.0-29.sme |
145 |
|
- Clean up old domain entries when using ldap [SME: 6322] |
146 |
|
|
147 |
|
* Mon Nov 1 2010 Shad L. Lords <slords@mail.com> 2.2.0-28.sme |
148 |
|
- Auth against ldap if it is master [SME: 6321] |
149 |
|
|
150 |
|
* Mon Nov 1 2010 Shad L. Lords <slords@mail.com> 2.2.0-27.sme |
151 |
|
- Change the way groups are modified on samba3x [SME: 6314] |
152 |
|
|
153 |
|
* Wed Oct 27 2010 Shad L. Lords <slords@mail.com> 2.2.0-26.sme |
154 |
|
- Change the way groups are modified on samba3x [SME: 6314] |
155 |
|
|
156 |
|
* Thu Oct 14 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-25.sme |
157 |
|
- Fix anonymous access [SME: 6254] |
158 |
|
|
159 |
|
* Fri Oct 8 2010 Shad L. Lords <slords@mail.com> 2.2.0-24.sme |
160 |
|
- Fix moving secrets.tdb file [SME: 6057] |
161 |
|
|
162 |
|
* Sat Oct 2 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-23.sme |
163 |
|
- Empty output when listing sensible attribtues [SME: 6254] |
164 |
|
|
165 |
|
* Sat Oct 2 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-22.sme |
166 |
|
- Add sambaSID to the list of sensible attributes [SME: 6254] |
167 |
|
|
168 |
|
* Sat Oct 2 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-21.sme |
169 |
|
- Deny access to some attributes for anonymous users [SME: 6254] |
170 |
|
|
171 |
|
* Thu Sep 23 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-20.sme |
172 |
|
- povide an option to enable lanman passwords [SME: 6229] |
173 |
|
|
174 |
|
* Thu Sep 23 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-19.sme |
175 |
|
- Add slapd support [SME: 6228] |
176 |
|
|
177 |
|
* Wed Jul 08 2010 Shad L. Lords <slords@mail.com> 2.2.0-18.sme |
178 |
|
- Remove require strong key part of regedit file [SME: 6119] |
179 |
|
|
180 |
|
* Wed Jun 23 2010 Shad L. Lords <slords@mail.com> 2.2.0-17.sme |
181 |
|
- Use samba3x package for windows 7 compatibility [SME: 5964] |
182 |
|
|
183 |
|
* Mon Jun 14 2010 Federico Simoncelli <federico.simoncelli@gmail.com> 2.2.0-16.sme |
184 |
|
- Backup all the tdb files (thanks Daniel) [SME: 5856] |
185 |
|
- Post scriptlet fix [SME: 6057] |
186 |
|
|
187 |
|
* Tue Mar 30 2010 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-15.sme |
188 |
|
- Explicitly declare samba private dir [SME: 5857] |
189 |
|
|
190 |
|
* Fri Mar 26 2010 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-14.sme |
191 |
|
- Fix tdb file paths to backup in run script [SME: 5856] |
192 |
|
|
193 |
|
* Wed Mar 17 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-13.sme |
194 |
|
- Add dependency /usr/bin/tdbbackup [SME: 5851] |
195 |
|
|
196 |
|
* Sat Mar 6 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-12.sme |
197 |
|
- Add missing comma in previous patch [SME: 5821] |
198 |
|
- Silently skip non-existent profile folder [SME: 5821] |
199 |
|
|
200 |
|
* Sat Mar 6 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-11.sme |
201 |
|
- Properly quote the profile folders manually [SME: 5821] |
202 |
|
|
203 |
|
* Sat Mar 6 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-10.sme |
204 |
|
- Rework V2 profile patch to fix error on user-delete event [SME: 5821] |
205 |
|
|
206 |
|
* Sun Feb 7 2010 Shad L. Lords <slords@mail.com> 2.2.0-9.sme |
207 |
|
- Create/remove V2 profile directories [SME: 3666] |
208 |
|
|
209 |
|
* Sun Jan 31 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-8.sme |
210 |
|
- Enable bindinterfaces by default [SME: 3325] |
211 |
|
|
212 |
|
* Sun Jan 31 2010 Stephen Noble <support@dungog.net> 2.2.0-7.sme |
213 |
|
- Set recyle bin permissions [SME: 1734] |
214 |
|
|
215 |
|
* Sat Dec 26 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-6.sme |
216 |
|
- Add registry file to server-resources to allow windows 7 to |
217 |
|
join Samba 3.x domains [SME: 5425] |
218 |
|
|
219 |
|
* Tue Jun 2 2009 Shad L. Lords <slords@mail.com> 2.2.0-5.sme |
220 |
|
- Fix warnings in template expansion [SME: 5309] |
221 |
|
|
222 |
|
* Sun Nov 23 2008 Shad L. Lords <slords@mail.com> 2.2.0-4.sme |
223 |
|
- Fix migrate fragments for samba [SME: 4777] |
224 |
|
|
225 |
|
* Tue Oct 28 2008 Shad L. Lords <slords@mail.com> 2.2.0-3.sme |
226 |
|
- Fix oslevel fragment for server roles [SME: 4730] |
227 |
|
|
228 |
|
* Mon Oct 13 2008 Shad L. Lords <slords@mail.com> 2.2.0-2.sme |
229 |
|
- Add patch to support multiple samba roles [SME: 4172] |
230 |
|
|
231 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
232 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
233 |
|
|
1191 |
|
|
1192 |
%prep |
%prep |
1193 |
%setup |
%setup |
1194 |
|
%patch1 -p1 |
1195 |
|
%patch2 -p1 |
1196 |
|
%patch3 -p1 |
1197 |
|
%patch4 -p1 |
1198 |
|
%patch5 -p1 |
1199 |
|
%patch6 -p1 |
1200 |
|
%patch7 -p1 |
1201 |
|
%patch8 -p1 |
1202 |
|
%patch9 -p1 |
1203 |
|
%patch10 -p1 |
1204 |
|
%patch11 -p1 |
1205 |
|
%patch12 -p1 |
1206 |
|
%patch13 -p1 |
1207 |
|
%patch14 -p1 |
1208 |
|
%patch15 -p1 |
1209 |
|
%patch16 -p1 |
1210 |
|
%patch17 -p1 |
1211 |
|
%patch18 -p1 |
1212 |
|
%patch19 -p1 |
1213 |
|
%patch20 -p1 |
1214 |
|
%patch21 -p1 |
1215 |
|
%patch22 -p1 |
1216 |
|
%patch23 -p1 |
1217 |
|
%patch24 -p1 |
1218 |
|
%patch25 -p1 |
1219 |
|
%patch26 -p1 |
1220 |
|
%patch27 -p1 |
1221 |
|
%patch28 -p1 |
1222 |
|
%patch29 -p1 |
1223 |
|
%patch30 -p1 |
1224 |
|
%patch31 -p1 |
1225 |
|
%patch32 -p1 |
1226 |
|
%patch34 -p1 |
1227 |
|
%patch35 -p1 |
1228 |
|
%patch36 -p1 |
1229 |
|
%patch37 -p1 |
1230 |
|
|
1231 |
%build |
%build |
1232 |
mkdir -p root/etc/e-smith/tests |
mkdir -p root/etc/e-smith/tests |
1289 |
rmdir /home/netlogon || echo "Couldn't rmdir /home/netlogon" |
rmdir /home/netlogon || echo "Couldn't rmdir /home/netlogon" |
1290 |
fi |
fi |
1291 |
|
|
1292 |
|
# Remove logrotate configuration for samba_audit |
1293 |
|
rm -f /etc/logrotate.d/samba_audit |
1294 |
|
|
1295 |
# Revert to canonical place for smb.conf |
# Revert to canonical place for smb.conf |
1296 |
if [ -f /etc/smb.conf ] |
if [ -f /etc/smb.conf ] |
1297 |
then |
then |
1311 |
/bin/chown admin.root /etc/samba/smbpasswd |
/bin/chown admin.root /etc/samba/smbpasswd |
1312 |
fi |
fi |
1313 |
chown -R smelog.smelog /var/log/{smbd,nmbd} |
chown -R smelog.smelog /var/log/{smbd,nmbd} |
1314 |
|
# Move back secrets.tdb to private dir |
1315 |
|
if [ -f /var/lib/samba/private/secrets.tdb ] |
1316 |
|
then |
1317 |
|
mv -f /var/lib/samba/private/secrets.tdb /etc/samba |
1318 |
|
fi |
1319 |
|
|
1320 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
1321 |
%defattr(-,root,root) |
%defattr(-,root,root) |