1 Summary: A (currently) authoritative-only DNS server made with security in mind
2 Summary(pl): Tylko autorytatywny (na razie) serwer DNS zrobiony z my¶l± o bezpieczeñstwie
7 Group: Networking/Daemons
8 Source0: http://www.maradns.org/download/%{name}-%{version}.tar.bz2
10 Source2: zoneserver.init
12 Prereq: /sbin/chkconfig
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 MaraDNS is (currently) an authoritative-only DNS server made with
22 MaraDNS jest (na razie) tylko autorytatywnym serwerem DNS zrobionym z
23 my¶l± o bezpieczeñstwie.
26 Summary: Handle zone transfers for MaraDNS
27 Summary(pl): Obs³uga transferów stref dla MaraDNS
28 Group: Networking/Daemons
29 Requires: maradns = %{version}
30 Prereq: /sbin/chkconfig
33 %description zoneserver
34 zoneserver listens on port 53/tcp and handles dns zone transfers.
35 zoneserver uses a configuration file, /etc/mararc by default, to
36 determine various parameters, such as the IP to bind to, who is
37 allowed to perform zone transfers, etc.
39 %description zoneserver -l pl
40 zoneserver s³ucha na porcie 53/tcp i obs³uguje transfery stref DNS.
41 U¿ywa domy¶lnie pliku konfiguracyjnego /etc/mararc aby uzyskaæ
42 parametry takie jak na jakim adresie ma s³uchaæ, kto mo¿e robiæ
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_mandir}/man{1,5,8}} \
56 $RPM_BUILD_ROOT{%{_sysconfdir}/maradns,/etc/rc.d/init.d} \
57 $RPM_BUILD_ROOT%{_localstatedir}/log
59 install server/maradns tcp/zoneserver tcp/getzone $RPM_BUILD_ROOT%{_sbindir}
60 install tools/askmara $RPM_BUILD_ROOT%{_bindir}
61 install tools/benchmark $RPM_BUILD_ROOT%{_bindir}
62 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/maradns
63 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/zoneserver
64 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/mararc
65 install doc/en/examples/example_csv1 $RPM_BUILD_ROOT%{_sysconfdir}/maradns/db.example.com
67 > $RPM_BUILD_ROOT%{_localstatedir}/log/maradns
68 > $RPM_BUILD_ROOT%{_localstatedir}/log/zoneserver
70 install doc/en/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
71 install doc/en/man/*.5 $RPM_BUILD_ROOT%{_mandir}/man5/
72 install doc/en/man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8/
74 rm -rf doc/{man,detailed/man_macros}
77 rm -rf $RPM_BUILD_ROOT
80 if ! id -g maradns > /dev/null 2>&1 ; then
81 %{_sbindir}/groupadd -g 58 maradns
83 if ! id -u maradns > /dev/null 2>&1 ; then
84 %{_sbindir}/useradd -u 58 -g 58 -d /dev/null -s /bin/false -c "maraDNS user" maradns
88 /sbin/chkconfig --add maradns
89 if [ -f /var/lock/subsys/maradns ]; then
90 /etc/rc.d/init.d/maradns restart 1>&2
92 echo "Type \"/etc/rc.d/init.d/maradns start\" to start maradns" 1>&2
94 touch %{_localstatedir}/log/maradns
95 chmod 640 %{_localstatedir}/log/maradns
98 /sbin/chkconfig --add zoneserver
99 if [ -f /var/lock/subsys/zoneserver ]; then
100 /etc/rc.d/init.d/zoneserver restart 1>&2
102 echo "Type \"/etc/rc.d/init.d/zoneserver start\" to start zoneserver" 1>&2
104 touch %{_localstatedir}/log/zoneserver
105 chmod 640 %{_localstatedir}/log/zoneserver
108 if [ "$1" = "0" ]; then
109 if [ -f /var/lock/subsys/maradns ]; then
110 /etc/rc.d/init.d/maradns stop 1>&2
112 /sbin/chkconfig --del maradns
116 if [ "$1" = "0" ]; then
117 if [ -f /var/lock/subsys/zoneserver ]; then
118 /etc/rc.d/init.d/zoneserver stop 1>&2
120 /sbin/chkconfig --del zoneserver
124 if [ "$1" = "0" ]; then
125 %{_sbindir}/userdel maradns
126 %{_sbindir}/groupdel maradns
130 %defattr(644,root,root,755)
131 %doc 0QuickStart TODO 00README.FIRST CREDITS doc CHANGELOG
132 %attr(754,root,root) /etc/rc.d/init.d/maradns
133 %attr(755,root,root) %{_sbindir}/getzone
134 %attr(755,root,root) %{_sbindir}/maradns
135 %attr(755,root,root) %{_bindir}/*
136 %attr(0640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mararc
137 %attr(0640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/maradns/db.example.com
138 %attr(0640,root,root) %ghost %{_localstatedir}/log/maradns
141 %{_mandir}/man8/maradns*
144 %defattr(644,root,root,755)
145 %attr(754,root,root) /etc/rc.d/init.d/zoneserver
146 %attr(755,root,root) %{_sbindir}/zoneserver
147 %attr(640,root,root) %ghost %{_localstatedir}/log/zoneserver
148 %{_mandir}/man8/zoneserver*