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 02 |
6 |
Group: FIXME/SetThis |
Version: %{version} |
7 |
Source: %{name}-0.0.1.tar.gz |
Release: %{release} |
8 |
Packager: %{?_packager:%{_packager}}%{!?_packager:%{_vendor}} |
License: GPL |
9 |
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}} |
Group: System Environment/Base |
10 |
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} |
Source: %{name}-%{version}.tar.gz |
11 |
Prefix: %{_prefix} |
Patch0: smeserver-pdns_recursor-0.0.1.configuration.patch |
12 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root |
Packager: Charlie brady <charlieb@e-smith.com> |
13 |
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
14 |
|
BuildArchitectures: noarch |
15 |
|
Requires: e-smith-lib >= 1.15.1-19 |
16 |
|
Requires: pdns_recursor |
17 |
|
Obsoletes: e-smith-dnscache |
18 |
|
Conflicts: e-smith-dnscache |
19 |
|
BuildRequires: e-smith-devtools |
20 |
|
AutoReqProv: no |
21 |
|
|
22 |
%description |
%description |
23 |
FIXME -- Description goes here |
SME server enhancement to configure and run PowerDNS recursor as a |
24 |
|
caching nameserver |
25 |
|
|
26 |
|
%changelog |
27 |
|
* Thu Aug 24 2006 Charlie Brady <charlieb@e-smith.com> 0.0.1-02 |
28 |
|
- Add configuration scripts and templates |
29 |
|
|
30 |
|
* Wed Aug 23 2006 Charlie Brady <charlieb@e-smith.com> 0.0.1-01 |
31 |
|
- Initial |
32 |
|
|
33 |
%prep |
%prep |
34 |
%setup -q |
%setup |
35 |
|
%patch0 -p1 |
36 |
|
|
37 |
%build |
%build |
38 |
CFLAGS="%{?cflags:%{cflags}}%{!?cflags:$RPM_OPT_FLAGS}" |
perl createlinks |
39 |
CXXFLAGS="%{?cxxflags:%{cxxflags}}%{!?cflags:$RPM_OPT_FLAGS}" |
rm -f %{name}-%{version}-%{release}-filelist |
40 |
export CFLAGS CXXFLAGS |
touch root/var/service/pdns_recursor/down |
41 |
|
|
42 |
%configure %{?acflags} |
%pre |
43 |
%{__make} %{?mflags} |
/sbin/e-smith/create-system-user dnscache 410 \ |
44 |
|
"DNScache user" /var/service/dnscache /bin/false |
45 |
|
/sbin/e-smith/create-system-user dnslog 411 \ |
46 |
|
"DNS log user" /var/log /bin/false |
47 |
|
|
48 |
%install |
%install |
49 |
%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install} |
rm -rf $RPM_BUILD_ROOT |
50 |
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
51 |
%clean |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
52 |
test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT |
--dir /var/service/pdns_recursor 'attr(0755,root,root)' \ |
53 |
|
--dir /var/service/pdns_recursor/log 'attr(0755,root,root)' \ |
54 |
|
--file /var/service/pdns_recursor/run 'attr(0750,root,root)' \ |
55 |
|
--file /var/service/pdns_recursor/log/run 'attr(0750,root,root)' \ |
56 |
|
--dir /var/log/pdns_recursor 'attr(02755,dnslog,dnslog)' \ |
57 |
|
> %{name}-%{version}-%{release}-filelist |
58 |
|
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
59 |
|
|
60 |
%files |
%clean |
61 |
%defattr(-, root, root) |
rm -rf $RPM_BUILD_ROOT |
|
%doc |
|
|
/* |
|
62 |
|
|
63 |
%changelog |
%files -f %{name}-%{version}-%{release}-filelist |
64 |
|
%defattr(-,root,root) |