1 |
slords |
1.1 |
Summary: SME Server specific advanced Samba configuration files and templates |
2 |
|
|
%define name smeserver-adv-samba |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 0.1.0 |
5 |
gregzartman |
1.3 |
%define release 2 |
6 |
slords |
1.1 |
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
License: GPL |
9 |
|
|
Group: Networking/Daemons |
10 |
|
|
Source: %{name}-%{version}.tar.gz |
11 |
gregzartman |
1.3 |
Patch1: smeserver-adv-samba-0.1.0-2.patch |
12 |
slords |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
13 |
|
|
BuildArchitectures: noarch |
14 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
15 |
|
|
Requires: e-smith-samba >= 1.14.1-6 |
16 |
|
|
Requires: samba >= 3.0.25b |
17 |
|
|
Requires: samba-client >= 3.0.25b |
18 |
gregzartman |
1.3 |
Requires: samba-common >= 3.0.25b |
19 |
slords |
1.1 |
AutoReqProv: no |
20 |
|
|
|
21 |
|
|
%changelog |
22 |
gregzartman |
1.3 |
* Tue Sep 30 2008 Greg J. Zartman <greg@leiinc.com> 0.1.0-2 |
23 |
|
|
- Add template fragments to etc/pam.d/login to look for winbindd auth is |
24 |
|
|
winbindd is running [SME: 4196]. |
25 |
|
|
- Add a template fragment to ibays to set the samba 'force group' |
26 |
|
|
parameter to the current ibay group or the group shared when SME is |
27 |
|
|
configured as a Domain Member of Active Directory Member. The is required |
28 |
|
|
so that domain members can have write access to domain member shares. At |
29 |
|
|
some point, we may decide to fully support domain groups transparently |
30 |
|
|
at the domain member or active directory member server [SME: 4196]. |
31 |
|
|
|
32 |
|
|
* Fri Apr 11 2008 Greg J. Zartman <greg@leiinc.com> 0.1.0-1 |
33 |
slords |
1.1 |
- Roll initial package. |
34 |
|
|
- Provide configuration parameters to deploy Samba winbindd deamon. |
35 |
|
|
- Add template to nsswitch.conf to configure nss to include winbindd auth. |
36 |
|
|
The configuration parameters included in this fragment really belong |
37 |
gregzartman |
1.3 |
in e-smith-base, but we are including it in this package until it is |
38 |
slords |
1.1 |
deemed appropriate to move it to e-smith-base. |
39 |
|
|
|
40 |
|
|
%description |
41 |
|
|
This package shall serve as a testbed for advanced Samba functions on the |
42 |
|
|
SME Server. This package will not conflict with e-smith-samba, but will |
43 |
|
|
expand upon it. The PRIMARY design objective of new functions included in |
44 |
|
|
this package is to implement them with the intent of including them in the |
45 |
|
|
SME Core packages in a "drop in" fashion (i.e., cut and paste). |
46 |
|
|
|
47 |
|
|
Ever effort will be made to maintain this package for use in a |
48 |
|
|
production network. However, certain functions provided by this package |
49 |
|
|
could introduce situations that might comprise the stability of |
50 |
|
|
the SME Server if not used properly. This is the nature of a testbed. |
51 |
|
|
smeserver-adv-samba is to e-smith-samba as Fedora Core is to RHEL. |
52 |
|
|
|
53 |
|
|
%prep |
54 |
|
|
%setup |
55 |
gregzartman |
1.3 |
%patch1 -p1 |
56 |
slords |
1.1 |
|
57 |
|
|
%build |
58 |
|
|
mkdir -p root/etc/e-smith/tests |
59 |
|
|
perl createlinks |
60 |
|
|
|
61 |
|
|
# Manage supervise and multilog for winbindd. |
62 |
|
|
mkdir -p root/service |
63 |
|
|
ln -s ../var/service/winbindd root/service/winbindd |
64 |
|
|
mkdir -p root/var/service/winbindd/supervise |
65 |
|
|
touch root/var/service/winbindd/down |
66 |
|
|
mkdir -p root/var/service/winbindd/log/supervise |
67 |
|
|
mkdir -p root/var/log/winbindd |
68 |
|
|
|
69 |
|
|
# Make storage point for shadowcopies |
70 |
|
|
mkdir -p root/home/e-smith/files/.shadow |
71 |
|
|
|
72 |
|
|
%install |
73 |
|
|
rm -rf $RPM_BUILD_ROOT |
74 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
75 |
|
|
/sbin/e-smith/genfilelist \ |
76 |
|
|
--dir '/var/service/winbindd' 'attr(1755,root,root)' \ |
77 |
|
|
--file '/var/service/winbindd/down' 'attr(0644,root,root)' \ |
78 |
|
|
--file '/var/service/winbindd/run' 'attr(0755,root,root)' \ |
79 |
|
|
--dir '/var/service/winbindd/supervise' 'attr(0700,root,root)' \ |
80 |
|
|
--dir '/var/service/winbindd/log' 'attr(1755,root,root)' \ |
81 |
|
|
--file '/var/service/winbindd/log/run' 'attr(0755,root,root)' \ |
82 |
|
|
--dir '/var/log/winbindd' 'attr(2750,smelog,smelog)' \ |
83 |
|
|
$RPM_BUILD_ROOT \ |
84 |
|
|
> %{name}-%{version}-filelist |
85 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
86 |
|
|
|
87 |
|
|
%clean |
88 |
|
|
rm -rf $RPM_BUILD_ROOT |
89 |
|
|
|
90 |
|
|
%post |
91 |
|
|
chown -R smelog.smelog /var/log/winbindd |
92 |
|
|
|
93 |
|
|
%files -f %{name}-%{version}-filelist |
94 |
|
|
%defattr(-,root,root) |