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 |
%define release 1 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GPL |
9 |
Group: Networking/Daemons |
10 |
Source: %{name}-%{version}.tar.gz |
11 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
12 |
BuildArchitectures: noarch |
13 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
14 |
Requires: e-smith-samba >= 1.14.1-6 |
15 |
Requires: samba >= 3.0.25b |
16 |
Requires: samba-client >= 3.0.25b |
17 |
Requires: samba-common >= 3.0.25b |
18 |
AutoReqProv: no |
19 |
|
20 |
%changelog |
21 |
* Fri Apr 11 2008 Greg J. Zartman <greg@leiinc.com> 0.1.0 |
22 |
- Roll initial package. |
23 |
- Provide configuration parameters to deploy Samba winbindd deamon. |
24 |
- Add template to nsswitch.conf to configure nss to include winbindd auth. |
25 |
The configuration parameters included in this fragment really belong |
26 |
in e-smith-base, but we are including it in this package until it it |
27 |
deemed appropriate to move it to e-smith-base. |
28 |
|
29 |
%description |
30 |
This package shall serve as a testbed for advanced Samba functions on the |
31 |
SME Server. This package will not conflict with e-smith-samba, but will |
32 |
expand upon it. The PRIMARY design objective of new functions included in |
33 |
this package is to implement them with the intent of including them in the |
34 |
SME Core packages in a "drop in" fashion (i.e., cut and paste). |
35 |
|
36 |
Ever effort will be made to maintain this package for use in a |
37 |
production network. However, certain functions provided by this package |
38 |
could introduce situations that might comprise the stability of |
39 |
the SME Server if not used properly. This is the nature of a testbed. |
40 |
smeserver-adv-samba is to e-smith-samba as Fedora Core is to RHEL. |
41 |
|
42 |
%prep |
43 |
%setup |
44 |
|
45 |
%build |
46 |
mkdir -p root/etc/e-smith/tests |
47 |
perl createlinks |
48 |
|
49 |
# Manage supervise and multilog for winbindd. |
50 |
mkdir -p root/service |
51 |
ln -s ../var/service/winbindd root/service/winbindd |
52 |
mkdir -p root/var/service/winbindd/supervise |
53 |
touch root/var/service/winbindd/down |
54 |
mkdir -p root/var/service/winbindd/log/supervise |
55 |
mkdir -p root/var/log/winbindd |
56 |
|
57 |
# Make storage point for shadowcopies |
58 |
mkdir -p root/home/e-smith/files/.shadow |
59 |
|
60 |
%install |
61 |
rm -rf $RPM_BUILD_ROOT |
62 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
63 |
/sbin/e-smith/genfilelist \ |
64 |
--dir '/var/service/winbindd' 'attr(1755,root,root)' \ |
65 |
--file '/var/service/winbindd/down' 'attr(0644,root,root)' \ |
66 |
--file '/var/service/winbindd/run' 'attr(0755,root,root)' \ |
67 |
--dir '/var/service/winbindd/supervise' 'attr(0700,root,root)' \ |
68 |
--dir '/var/service/winbindd/log' 'attr(1755,root,root)' \ |
69 |
--file '/var/service/winbindd/log/run' 'attr(0755,root,root)' \ |
70 |
--dir '/var/log/winbindd' 'attr(2750,smelog,smelog)' \ |
71 |
$RPM_BUILD_ROOT \ |
72 |
> %{name}-%{version}-filelist |
73 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
74 |
|
75 |
%clean |
76 |
rm -rf $RPM_BUILD_ROOT |
77 |
|
78 |
%post |
79 |
chown -R smelog.smelog /var/log/winbindd |
80 |
|
81 |
%files -f %{name}-%{version}-filelist |
82 |
%defattr(-,root,root) |