1 |
# $Id$ |
# $Id: smeserver-adv-samba.spec,v 1.11 2009/03/03 15:50:17 slords Exp $ |
2 |
# Authority: gregzartman |
# Authority: gzartman |
3 |
# Name: Greg J. Zartman |
# Name: Greg Zartman |
4 |
|
|
5 |
Summary: SME Server specific advanced Samba configuration files and templates |
Summary: SME Server specific advanced Samba configuration files and templates |
6 |
%define name smeserver-adv-samba |
%define name smeserver-adv-samba |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 0.1.0 |
%define version 0.1.0 |
9 |
%define release 1 |
%define release 6 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
13 |
Group: Networking/Daemons |
Group: Networking/Daemons |
14 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
15 |
|
Patch1: smeserver-adv-samba-0.1.0-2.patch |
16 |
|
Patch2: smeserver-adv-samba-0.1.0-safe_winbind.patch |
17 |
|
Patch3: smeserver-adv-samba-0.1.0-winbind2.patch |
18 |
|
Patch4: smeserver-adv-samba-0.1.0-auth.patch |
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
21 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
22 |
Requires: e-smith-samba >= 1.14.1-6 |
Requires: e-smith-samba >= 2.0.0 |
23 |
Requires: samba >= 3.0.25b |
Requires: e-smith-base >= 5.0.0 |
24 |
Requires: samba-client >= 3.0.25b |
Requires: samba-common >= 3.0.25b |
25 |
AutoReqProv: no |
AutoReqProv: no |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
* Fri Apr 11 2008 Greg J. Zartman <greg@leiinc.com> 0.1.0 |
* Thu Dec 2 2010 Greg J. Zartman <greg@leiinc.com> 0.1.0-6 |
29 |
|
- Reduce requires to samba-common to fix upgrades. |
30 |
|
|
31 |
|
* Tue Nov 5 2008 Greg J. Zartman <greg@leiinc.com> 0.1.0-5 |
32 |
|
- Add nsswitch.conf and pam.d/login fragments to workgroup-update |
33 |
|
templates2expand [SME: 4729]. |
34 |
|
|
35 |
|
* Wed Oct 15 2008 Greg J. Zartman <greg@leiinc.com> 0.1.0-4 |
36 |
|
- Update winbindd-service-status action to set service to disabled if |
37 |
|
service is enabled and ServerRole is changed. |
38 |
|
|
39 |
|
* Tue Oct 14 2008 Greg J. Zartman <greg@leiinc.com> 0.1.0-3 |
40 |
|
- Set winbindd to disabled by default and on initial install, was |
41 |
|
previouslly enabled by default. |
42 |
|
- Create action to start winbindd if the DM or ADM server roles are designated. |
43 |
|
|
44 |
|
* Tue Sep 30 2008 Greg J. Zartman <greg@leiinc.com> 0.1.0-2 |
45 |
|
- Add template fragments to etc/pam.d/login to look for winbindd auth is |
46 |
|
winbindd is running [SME: 4196]. |
47 |
|
- Add a template fragment to ibays to set the samba 'force group' |
48 |
|
parameter to the current ibay group or the group shared when SME is |
49 |
|
configured as a Domain Member of Active Directory Member. The is required |
50 |
|
so that domain members can have write access to domain member shares. At |
51 |
|
some point, we may decide to fully support domain groups transparently |
52 |
|
at the domain member or active directory member server [SME: 4196]. |
53 |
|
|
54 |
|
* Fri Apr 11 2008 Greg J. Zartman <greg@leiinc.com> 0.1.0-1 |
55 |
- Roll initial package. |
- Roll initial package. |
56 |
- Provide configuration parameters to deploy Samba winbindd deamon. |
- Provide configuration parameters to deploy Samba winbindd deamon. |
57 |
- Add template to nsswitch.conf to configure nss to include winbindd auth. |
- Add template to nsswitch.conf to configure nss to include winbindd auth. |
58 |
The configuration parameters included in this fragment really belong |
The configuration parameters included in this fragment really belong |
59 |
in e-smith-base, but we are including it in this package until it it |
in e-smith-base, but we are including it in this package until it is |
60 |
deemed appropriate to move it to e-smith-base. |
deemed appropriate to move it to e-smith-base. |
61 |
|
|
62 |
%description |
%description |
74 |
|
|
75 |
%prep |
%prep |
76 |
%setup |
%setup |
77 |
|
%patch1 -p1 |
78 |
|
%patch2 -p1 |
79 |
|
%patch3 -p1 |
80 |
|
%patch4 -p1 |
81 |
|
|
82 |
%build |
%build |
|
mkdir -p root/etc/e-smith/tests |
|
83 |
perl createlinks |
perl createlinks |
84 |
|
|
85 |
# Manage supervise and multilog for winbindd. |
# Manage supervise and multilog for winbindd. |
90 |
mkdir -p root/var/service/winbindd/log/supervise |
mkdir -p root/var/service/winbindd/log/supervise |
91 |
mkdir -p root/var/log/winbindd |
mkdir -p root/var/log/winbindd |
92 |
|
|
|
# Make storage point for shadowcopies |
|
|
mkdir -p root/home/e-smith/files/.shadow |
|
|
|
|
93 |
%install |
%install |
94 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
95 |
|
|
96 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
97 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
98 |
--dir '/var/service/winbindd' 'attr(1755,root,root)' \ |
--dir '/var/service/winbindd' 'attr(1755,root,root)' \ |