]>
Commit | Line | Data |
---|---|---|
7ec5780e PG |
1 | # TODO: |
2 | # - fix add-dns.pl - remove hardcoded config entries | |
0689f90f | 3 | Summary: autodns - configuration of secondary DNS via email |
738c8025 | 4 | Summary(pl.UTF-8): autodns - konfiguracja secondary DNS poprzez e-mail |
017f1538 | 5 | Name: autodns |
9e01ec3f PG |
6 | Version: 1.0.0 |
7 | Release: 1 | |
8 | License: GPL v2 | |
017f1538 JB |
9 | Group: Applications/Networking |
10 | Source0: http://www.earth.li/projectpurple/files/%{name}-%{version}.tar.gz | |
9e01ec3f | 11 | # Source0-md5: d5a87531de37a74c0dcb16f2a53aae1c |
61a85758 PG |
12 | Source1: %{name}.conf |
13 | Patch0: %{name}-config.patch | |
017f1538 | 14 | URL: http://www.earth.li/projectpurple/progs/autodns.html |
7ec5780e | 15 | Requires: bind |
8848c0a2 | 16 | BuildArch: noarch |
017f1538 JB |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
8628e634 ER |
20 | autodns is an easy way to enable configuration of secondary DNS via |
21 | email. It's used by the author in conjunction with BIND, but with | |
017f1538 JB |
22 | minimal effort should work with any DNS server. |
23 | ||
9cec0ba5 JR |
24 | %description -l pl.UTF-8 |
25 | autodns umożliwia łatwą konfigurację secondary DNS-a poprzez e-mail. | |
26 | Jest używany przez autora w połączeniu z BINDem, ale minimalny wkład | |
27 | pracy powinien umożliwić jego współpracę z dowolnym serwerem DNS. | |
017f1538 JB |
28 | |
29 | %prep | |
30 | %setup -q | |
61a85758 | 31 | %patch0 -p1 |
017f1538 JB |
32 | |
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
61a85758 | 35 | install -d $RPM_BUILD_ROOT{%{_bindir},/var/lib/%{name},/etc/%{name}} |
017f1538 JB |
36 | |
37 | install autodns.pl contrib/add-dns.pl $RPM_BUILD_ROOT%{_bindir} | |
61a85758 PG |
38 | install autodns.users $RPM_BUILD_ROOT/etc/%{name} |
39 | ||
b81cabbe | 40 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/%{name}/%{name}.conf |
017f1538 JB |
41 | |
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
b81cabbe PG |
45 | %triggerpostun -- autodns < 0.0.8 |
46 | echo "Upgrading from version < 0.0.8" | |
47 | if [ -e /etc/autodns.conf.rpmsave ]; then | |
48 | cp /etc/autodns/autodns.conf /etc/autodns/autodns.conf.rpmnew | |
49 | cp /etc/autodns.conf.rpmsave /etc/autodns/autodns.conf | |
50 | fi | |
51 | ||
017f1538 JB |
52 | %files |
53 | %defattr(644,root,root,755) | |
54 | %doc ACKNOWLEDGEMENTS HISTORY README TODO | |
bc837c9a | 55 | %attr(751,root,named) %dir /etc/%{name} |
7f5b9e76 JB |
56 | %config(noreplace) %verify(not md5 mtime size) /etc/%{name}/%{name}.conf |
57 | %attr(640,root,named) %config(noreplace) %verify(not md5 mtime size) /etc/%{name}/autodns.users | |
017f1538 | 58 | %attr(755,root,root) %{_bindir}/* |
7ec5780e | 59 | %attr(771,root,named) %dir /var/lib/%{name} |