1 |
charliebrady |
1.2 |
Summary: SME server module to configure pdns_recursor |
2 |
|
|
%define name smeserver-pdns_recursor |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 0.0.1 |
5 |
charliebrady |
1.4 |
%define release 03 |
6 |
charliebrady |
1.2 |
Version: %{version} |
7 |
|
|
Release: %{release} |
8 |
|
|
License: GPL |
9 |
|
|
Group: System Environment/Base |
10 |
|
|
Source: %{name}-%{version}.tar.gz |
11 |
|
|
Patch0: smeserver-pdns_recursor-0.0.1.configuration.patch |
12 |
charliebrady |
1.4 |
Patch1: smeserver-pdns_recursor-0.0.1.configuration.patch2 |
13 |
charliebrady |
1.3 |
Packager: Charlie Brady <charlieb@e-smith.com> |
14 |
charliebrady |
1.2 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
15 |
|
|
BuildArchitectures: noarch |
16 |
|
|
Requires: e-smith-lib >= 1.15.1-19 |
17 |
charliebrady |
1.3 |
Requires: pdns-recursor |
18 |
charliebrady |
1.2 |
Obsoletes: e-smith-dnscache |
19 |
|
|
Conflicts: e-smith-dnscache |
20 |
|
|
BuildRequires: e-smith-devtools |
21 |
|
|
AutoReqProv: no |
22 |
charliebrady |
1.1 |
|
23 |
|
|
%description |
24 |
charliebrady |
1.2 |
SME server enhancement to configure and run PowerDNS recursor as a |
25 |
|
|
caching nameserver |
26 |
|
|
|
27 |
|
|
%changelog |
28 |
charliebrady |
1.4 |
* Thu Aug 24 2006 Charlie Brady <charlieb@e-smith.com> 0.0.1-03 |
29 |
|
|
- Various configuration fixes. Functional in basic configuration now. |
30 |
|
|
- TODO: Handle forwarding configurations correctly. |
31 |
|
|
|
32 |
charliebrady |
1.2 |
* Thu Aug 24 2006 Charlie Brady <charlieb@e-smith.com> 0.0.1-02 |
33 |
|
|
- Add configuration scripts and templates |
34 |
|
|
|
35 |
|
|
* Wed Aug 23 2006 Charlie Brady <charlieb@e-smith.com> 0.0.1-01 |
36 |
|
|
- Initial |
37 |
charliebrady |
1.1 |
|
38 |
|
|
%prep |
39 |
charliebrady |
1.2 |
%setup |
40 |
|
|
%patch0 -p1 |
41 |
charliebrady |
1.4 |
%patch1 -p1 |
42 |
charliebrady |
1.1 |
|
43 |
|
|
%build |
44 |
charliebrady |
1.2 |
perl createlinks |
45 |
|
|
rm -f %{name}-%{version}-%{release}-filelist |
46 |
charliebrady |
1.5 |
mkdir -p root/var/log/pdns_recursor |
47 |
charliebrady |
1.2 |
touch root/var/service/pdns_recursor/down |
48 |
|
|
|
49 |
|
|
%pre |
50 |
|
|
/sbin/e-smith/create-system-user dnscache 410 \ |
51 |
|
|
"DNScache user" /var/service/dnscache /bin/false |
52 |
|
|
/sbin/e-smith/create-system-user dnslog 411 \ |
53 |
|
|
"DNS log user" /var/log /bin/false |
54 |
charliebrady |
1.1 |
|
55 |
|
|
%install |
56 |
charliebrady |
1.2 |
rm -rf $RPM_BUILD_ROOT |
57 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
58 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
59 |
|
|
--dir /var/service/pdns_recursor 'attr(0755,root,root)' \ |
60 |
|
|
--dir /var/service/pdns_recursor/log 'attr(0755,root,root)' \ |
61 |
|
|
--file /var/service/pdns_recursor/run 'attr(0750,root,root)' \ |
62 |
|
|
--file /var/service/pdns_recursor/log/run 'attr(0750,root,root)' \ |
63 |
|
|
--dir /var/log/pdns_recursor 'attr(02755,dnslog,dnslog)' \ |
64 |
|
|
> %{name}-%{version}-%{release}-filelist |
65 |
charliebrady |
1.3 |
#echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
66 |
charliebrady |
1.1 |
|
67 |
charliebrady |
1.2 |
%clean |
68 |
|
|
rm -rf $RPM_BUILD_ROOT |
69 |
charliebrady |
1.1 |
|
70 |
charliebrady |
1.2 |
%files -f %{name}-%{version}-%{release}-filelist |
71 |
|
|
%defattr(-,root,root) |