1 |
Summary: FIXME -- Brief synopsis goes here |
Summary: SME server module to configure pdns_recursor |
2 |
Name: smeserver-pdns_recursor |
%define name smeserver-pdns_recursor |
3 |
Version: 0.0.1 |
Name: %{name} |
4 |
Release: 1.%{?_vendorsuffix:%{_vendorsuffix}}%{!?_vendorsuffix:%{_vendor}} |
%define version 0.0.1 |
5 |
License: OSI-Approved |
%define release 4 |
6 |
Group: FIXME/SetThis |
Version: %{version} |
7 |
Source: %{name}-0.0.1.tar.gz |
Release: %smerelease %{release} |
8 |
Packager: %{?_packager:%{_packager}}%{!?_packager:%{_vendor}} |
Packager: %{_packager} |
9 |
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}} |
License: GPL |
10 |
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} |
Group: System Environment/Base |
11 |
Prefix: %{_prefix} |
Source: %{name}-%{version}.tar.gz |
12 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root |
Patch0: smeserver-pdns_recursor-0.0.1.configuration.patch |
13 |
|
Patch1: smeserver-pdns_recursor-0.0.1.configuration.patch2 |
14 |
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
15 |
|
BuildArchitectures: noarch |
16 |
|
Requires: e-smith-lib >= 1.15.1-19 |
17 |
|
Requires: pdns-recursor |
18 |
|
Obsoletes: e-smith-dnscache |
19 |
|
Conflicts: e-smith-dnscache |
20 |
|
BuildRequires: e-smith-devtools |
21 |
|
AutoReqProv: no |
22 |
|
|
23 |
%description |
%description |
24 |
FIXME -- Description goes here |
SME server enhancement to configure and run PowerDNS recursor as a |
25 |
|
caching nameserver |
26 |
|
|
27 |
|
%changelog |
28 |
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
29 |
|
- Update to new release naming. No functional changes. |
30 |
|
- Make Packager generic |
31 |
|
|
32 |
|
* Thu Aug 24 2006 Charlie Brady <charlieb@e-smith.com> 0.0.1-03 |
33 |
|
- Various configuration fixes. Functional in basic configuration now. |
34 |
|
- TODO: Handle forwarding configurations correctly. |
35 |
|
|
36 |
|
* Thu Aug 24 2006 Charlie Brady <charlieb@e-smith.com> 0.0.1-02 |
37 |
|
- Add configuration scripts and templates |
38 |
|
|
39 |
|
* Wed Aug 23 2006 Charlie Brady <charlieb@e-smith.com> 0.0.1-01 |
40 |
|
- Initial |
41 |
|
|
42 |
%prep |
%prep |
43 |
%setup -q |
%setup |
44 |
|
%patch0 -p1 |
45 |
|
%patch1 -p1 |
46 |
|
|
47 |
%build |
%build |
48 |
CFLAGS="%{?cflags:%{cflags}}%{!?cflags:$RPM_OPT_FLAGS}" |
perl createlinks |
49 |
CXXFLAGS="%{?cxxflags:%{cxxflags}}%{!?cflags:$RPM_OPT_FLAGS}" |
rm -f %{name}-%{version}-%{release}-filelist |
50 |
export CFLAGS CXXFLAGS |
mkdir -p root/var/log/pdns_recursor |
51 |
|
touch root/var/service/pdns_recursor/down |
52 |
%configure %{?acflags} |
|
53 |
%{__make} %{?mflags} |
%pre |
54 |
|
/sbin/e-smith/create-system-user dnscache 410 \ |
55 |
|
"DNScache user" /var/service/dnscache /bin/false |
56 |
|
/sbin/e-smith/create-system-user dnslog 411 \ |
57 |
|
"DNS log user" /var/log /bin/false |
58 |
|
|
59 |
%install |
%install |
60 |
%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install} |
rm -rf $RPM_BUILD_ROOT |
61 |
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
62 |
%clean |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
63 |
test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT |
--dir /var/service/pdns_recursor 'attr(0755,root,root)' \ |
64 |
|
--dir /var/service/pdns_recursor/log 'attr(0755,root,root)' \ |
65 |
|
--file /var/service/pdns_recursor/run 'attr(0750,root,root)' \ |
66 |
|
--file /var/service/pdns_recursor/log/run 'attr(0750,root,root)' \ |
67 |
|
--dir /var/log/pdns_recursor 'attr(02755,dnslog,dnslog)' \ |
68 |
|
> %{name}-%{version}-%{release}-filelist |
69 |
|
#echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
70 |
|
|
71 |
%files |
%clean |
72 |
%defattr(-, root, root) |
rm -rf $RPM_BUILD_ROOT |
|
%doc |
|
|
/* |
|
73 |
|
|
74 |
%changelog |
%files -f %{name}-%{version}-%{release}-filelist |
75 |
|
%defattr(-,root,root) |