--- smeserver-pdns_recursor/F/smeserver-pdns_recursor.spec 2006/08/23 03:06:21 1.1.1.1 +++ smeserver-pdns_recursor/F/smeserver-pdns_recursor.spec 2007/05/06 06:24:55 1.7 @@ -1,39 +1,77 @@ -Summary: FIXME -- Brief synopsis goes here -Name: smeserver-pdns_recursor -Version: 0.0.1 -Release: 1.%{?_vendorsuffix:%{_vendorsuffix}}%{!?_vendorsuffix:%{_vendor}} -License: OSI-Approved -Group: FIXME/SetThis -Source: %{name}-0.0.1.tar.gz -Packager: %{?_packager:%{_packager}}%{!?_packager:%{_vendor}} -Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}} -Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} -Prefix: %{_prefix} -BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root +Summary: SME server module to configure pdns_recursor +%define name smeserver-pdns_recursor +Name: %{name} +%define version 0.0.1 +%define release 4 +Version: %{version} +Release: %{release}%{?dist} +License: GPL +Group: System Environment/Base +Source: %{name}-%{version}.tar.gz +Patch0: smeserver-pdns_recursor-0.0.1.configuration.patch +Patch1: smeserver-pdns_recursor-0.0.1.configuration.patch2 +BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot +BuildArchitectures: noarch +Requires: e-smith-lib >= 1.15.1-19 +Requires: pdns-recursor +Obsoletes: e-smith-dnscache +Conflicts: e-smith-dnscache +BuildRequires: e-smith-devtools +AutoReqProv: no %description -FIXME -- Description goes here +SME server enhancement to configure and run PowerDNS recursor as a +caching nameserver + +%changelog +* Sun Apr 29 2007 Shad L. Lords +- Clean up spec so package can be built by koji/plague + +* Thu Dec 07 2006 Shad L. Lords +- Update to new release naming. No functional changes. +- Make Packager generic + +* Thu Aug 24 2006 Charlie Brady 0.0.1-03 +- Various configuration fixes. Functional in basic configuration now. +- TODO: Handle forwarding configurations correctly. + +* Thu Aug 24 2006 Charlie Brady 0.0.1-02 +- Add configuration scripts and templates + +* Wed Aug 23 2006 Charlie Brady 0.0.1-01 +- Initial %prep -%setup -q +%setup +%patch0 -p1 +%patch1 -p1 %build -CFLAGS="%{?cflags:%{cflags}}%{!?cflags:$RPM_OPT_FLAGS}" -CXXFLAGS="%{?cxxflags:%{cxxflags}}%{!?cflags:$RPM_OPT_FLAGS}" -export CFLAGS CXXFLAGS - -%configure %{?acflags} -%{__make} %{?mflags} +perl createlinks +rm -f %{name}-%{version}-%{release}-filelist +mkdir -p root/var/log/pdns_recursor +touch root/var/service/pdns_recursor/down + +%pre +/sbin/e-smith/create-system-user dnscache 410 \ + "DNScache user" /var/service/dnscache /bin/false +/sbin/e-smith/create-system-user dnslog 411 \ + "DNS log user" /var/log /bin/false %install -%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install} +rm -rf $RPM_BUILD_ROOT +(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ + --dir /var/service/pdns_recursor 'attr(0755,root,root)' \ + --dir /var/service/pdns_recursor/log 'attr(0755,root,root)' \ + --file /var/service/pdns_recursor/run 'attr(0750,root,root)' \ + --file /var/service/pdns_recursor/log/run 'attr(0750,root,root)' \ + --dir /var/log/pdns_recursor 'attr(02755,dnslog,dnslog)' \ + > %{name}-%{version}-%{release}-filelist +#echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist -%clean -test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT +%clean +rm -rf $RPM_BUILD_ROOT -%files -%defattr(-, root, root) -%doc -/* - -%changelog +%files -f %{name}-%{version}-%{release}-filelist +%defattr(-,root,root)