2 # - fix add-dns.pl - remove hardcoded config entries
3 %include /usr/lib/rpm/macros.perl
4 Summary: autodns - configuration of secondary DNS via email
5 Summary(pl): autodns - konfiguracja secondary DNS poprzez e-mail
10 Group: Applications/Networking
11 Source0: http://www.earth.li/projectpurple/files/%{name}-%{version}.tar.gz
12 # Source0-md5: 03c6a8a4d6447b99ed18d40c627733d3
14 Patch0: %{name}-config.patch
15 URL: http://www.earth.li/projectpurple/progs/autodns.html
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 autodns is an easy way to enable configuration of secondary DNS via
22 email. It's used by the author in conjunction with BIND, but with
23 minimal effort should work with any DNS server.
26 autodns umo¿liwia ³atw± konfiguracjê secondary DNS-a poprzez e-mail.
27 Jest u¿ywany przez autora w po³±czeniu z BINDem, ale minimalny wk³ad
28 pracy powinien umo¿liwiæ jego wspó³pracê z dowolnym serwerem DNS.
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{_bindir},/var/lib/%{name},/etc/%{name}}
38 install autodns.pl contrib/add-dns.pl $RPM_BUILD_ROOT%{_bindir}
39 install autodns.users $RPM_BUILD_ROOT/etc/%{name}
41 install %{SOURCE1} $RPM_BUILD_ROOT/etc/%{name}.conf
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %doc ACKNOWLEDGEMENTS HISTORY README TODO
49 %config(noreplace) %verify(not size mtime md5) /etc/%{name}.conf
50 %attr(751,root,named) %dir /etc/%{name}
51 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) /etc/%{name}/autodns.users
52 %attr(755,root,root) %{_bindir}/*
53 %attr(771,root,named) %dir /var/lib/%{name}