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
9 # Source0-md5: 17738068b413cbbb9c2e63274aa9d1ee
11 Source2: zoneserver.init
14 Requires(pre): /usr/bin/getgid
15 Requires(pre): /bin/id
16 Requires(pre): /usr/sbin/groupadd
17 Requires(pre): /usr/sbin/useradd
18 Requires(post,preun): /sbin/chkconfig
19 Requires(post): fileutils
20 Requires(postun): /usr/sbin/userdel
21 Requires(postun): /usr/sbin/groupdel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 MaraDNS is (currently) an authoritative-only DNS server made with
30 MaraDNS jest (na razie) tylko autorytatywnym serwerem DNS zrobionym z
31 my¶l± o bezpieczeñstwie.
34 Summary: Handle zone transfers for MaraDNS
35 Summary(pl): Obs³uga transferów stref dla MaraDNS
36 Group: Networking/Daemons
38 Requires(post,preun): /sbin/chkconfig
39 Requires(post): fileutils
40 Requires: %{name} = %{version}
42 %description zoneserver
43 zoneserver listens on port 53/tcp and handles dns zone transfers.
44 zoneserver uses a configuration file, /etc/mararc by default, to
45 determine various parameters, such as the IP to bind to, who is
46 allowed to perform zone transfers, etc.
48 %description zoneserver -l pl
49 zoneserver s³ucha na porcie 53/tcp i obs³uguje transfery stref DNS.
50 U¿ywa domy¶lnie pliku konfiguracyjnego /etc/mararc aby uzyskaæ
51 parametry takie jak na jakim adresie ma s³uchaæ, kto mo¿e robiæ
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_mandir}/man{1,5,8}} \
65 $RPM_BUILD_ROOT{%{_sysconfdir}/maradns,/etc/rc.d/init.d} \
66 $RPM_BUILD_ROOT%{_localstatedir}/log
68 install server/maradns tcp/zoneserver tcp/getzone $RPM_BUILD_ROOT%{_sbindir}
69 install tools/askmara $RPM_BUILD_ROOT%{_bindir}
70 install tools/benchmark $RPM_BUILD_ROOT%{_bindir}
71 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/maradns
72 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/zoneserver
73 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/mararc
74 install doc/en/examples/example_csv1 $RPM_BUILD_ROOT%{_sysconfdir}/maradns/db.example.com
76 > $RPM_BUILD_ROOT%{_localstatedir}/log/maradns
77 > $RPM_BUILD_ROOT%{_localstatedir}/log/zoneserver
79 install doc/en/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
80 install doc/en/man/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
81 install doc/en/man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
83 rm -rf doc/{man,detailed/man_macros}
86 rm -rf $RPM_BUILD_ROOT
89 if [ -n "`getgid maradns`" ]; then
90 if [ "`getgid maradns`" != "58" ]; then
91 echo "Error: group maradns doesn't have gid=58. Correct this before installing maradns." 1>&2
95 /usr/sbin/groupadd -g 58 maradns
97 if [ -n "`id -u maradns 2>/dev/null`" ]; then
98 if [ "`id -u maradns`" != "58" ]; then
99 echo "Error: user maradns doesn't have uid=58. Correct this before installing maradns." 1>&2
103 /usr/sbin/useradd -u 58 -g 58 -d /dev/null -s /bin/false -c "maraDNS user" maradns
107 /sbin/chkconfig --add maradns
108 if [ -f /var/lock/subsys/maradns ]; then
109 /etc/rc.d/init.d/maradns restart 1>&2
111 echo "Type \"/etc/rc.d/init.d/maradns start\" to start maradns" 1>&2
113 touch %{_localstatedir}/log/maradns
114 chmod 640 %{_localstatedir}/log/maradns
117 if [ "$1" = "0" ]; then
118 /usr/sbin/userdel maradns
119 /usr/sbin/groupdel maradns
123 /sbin/chkconfig --add zoneserver
124 if [ -f /var/lock/subsys/zoneserver ]; then
125 /etc/rc.d/init.d/zoneserver restart 1>&2
127 echo "Type \"/etc/rc.d/init.d/zoneserver start\" to start zoneserver" 1>&2
129 touch %{_localstatedir}/log/zoneserver
130 chmod 640 %{_localstatedir}/log/zoneserver
133 if [ "$1" = "0" ]; then
134 if [ -f /var/lock/subsys/maradns ]; then
135 /etc/rc.d/init.d/maradns stop 1>&2
137 /sbin/chkconfig --del maradns
141 if [ "$1" = "0" ]; then
142 if [ -f /var/lock/subsys/zoneserver ]; then
143 /etc/rc.d/init.d/zoneserver stop 1>&2
145 /sbin/chkconfig --del zoneserver
149 %defattr(644,root,root,755)
150 %doc 0QuickStart TODO 00README.FIRST CREDITS doc CHANGELOG
151 %attr(754,root,root) /etc/rc.d/init.d/maradns
152 %attr(755,root,root) %{_sbindir}/getzone
153 %attr(755,root,root) %{_sbindir}/maradns
154 %attr(755,root,root) %{_bindir}/*
155 %attr(0640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mararc
156 %attr(0640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/maradns/db.example.com
157 %attr(0640,root,root) %ghost %{_localstatedir}/log/maradns
160 %{_mandir}/man8/maradns*
163 %defattr(644,root,root,755)
164 %attr(754,root,root) /etc/rc.d/init.d/zoneserver
165 %attr(755,root,root) %{_sbindir}/zoneserver
166 %attr(640,root,root) %ghost %{_localstatedir}/log/zoneserver
167 %{_mandir}/man8/zoneserver*