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/1.1/%{name}-%{version}.tar.bz2
9 # Source0-md5: aa07cddf79f650eb2ca986cf21584fc4
11 Source2: zoneserver.init
13 Patch0: %{name}-default_uid.patch
14 URL: http://www.maradns.org/
15 BuildRequires: rpmbuild(macros) >= 1.202
17 Requires(pre): /bin/id
18 Requires(pre): /usr/bin/getgid
19 Requires(pre): /usr/sbin/groupadd
20 Requires(pre): /usr/sbin/groupmod
21 Requires(pre): /usr/sbin/useradd
22 Requires(pre): /usr/sbin/usermod
23 Requires(post,preun): /sbin/chkconfig
24 Requires(post): fileutils
25 Requires(postun): /usr/sbin/groupdel
26 Requires(postun): /usr/sbin/userdel
27 Provides: group(named)
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 MaraDNS is (currently) an authoritative-only DNS server made with
38 MaraDNS jest (na razie) tylko autorytatywnym serwerem DNS zrobionym z
39 my¶l± o bezpieczeñstwie.
42 Summary: Handle zone transfers for MaraDNS
43 Summary(pl): Obs³uga transferów stref dla MaraDNS
44 Group: Networking/Daemons
46 Requires(post,preun): /sbin/chkconfig
47 Requires(post): fileutils
48 Requires: %{name} = %{version}-%{release}
50 %description zoneserver
51 zoneserver listens on port 53/tcp and handles dns zone transfers.
52 zoneserver uses a configuration file, /etc/mararc by default, to
53 determine various parameters, such as the IP to bind to, who is
54 allowed to perform zone transfers, etc.
56 %description zoneserver -l pl
57 zoneserver s³ucha na porcie 53/tcp i obs³uguje transfery stref DNS.
58 U¿ywa domy¶lnie pliku konfiguracyjnego /etc/mararc aby uzyskaæ
59 parametry takie jak na jakim adresie ma s³uchaæ, kto mo¿e robiæ
66 # kill precompiled x86 objects
67 rm -f {parse,qual,tcp}/*.o
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_mandir}/{,fr/}man{1,5,8}} \
77 $RPM_BUILD_ROOT{%{_sysconfdir}/maradns,/etc/rc.d/init.d} \
78 $RPM_BUILD_ROOT%{_localstatedir}/log
80 install server/maradns tcp/zoneserver tcp/getzone $RPM_BUILD_ROOT%{_sbindir}
81 install tools/askmara $RPM_BUILD_ROOT%{_bindir}
82 install tools/benchmark $RPM_BUILD_ROOT%{_bindir}
83 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/maradns
84 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/zoneserver
85 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/mararc
86 install doc/en/examples/example_csv1 $RPM_BUILD_ROOT%{_sysconfdir}/maradns/db.example.com
88 > $RPM_BUILD_ROOT%{_localstatedir}/log/maradns
89 > $RPM_BUILD_ROOT%{_localstatedir}/log/zoneserver
91 install doc/en/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
92 install doc/en/man/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
93 install doc/en/man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
94 install doc/fr/man/*.1 $RPM_BUILD_ROOT%{_mandir}/fr/man1
95 install doc/fr/man/*.5 $RPM_BUILD_ROOT%{_mandir}/fr/man5
96 install doc/fr/man/*.8 $RPM_BUILD_ROOT%{_mandir}/fr/man8
101 rm -rf $RPM_BUILD_ROOT
104 %groupadd -g 58 named
105 # TODO: move this to trigger
106 if [ -n "`/bin/id -u maradns 2>/dev/null`" -a "`/bin/id -u maradns`" = "58" ]; then
107 /usr/sbin/usermod -d /tmp -l named maradns
109 %useradd -u 58 -g 58 -d /tmp -s /bin/false -c "maraDNS user" named
112 /sbin/chkconfig --add maradns
113 if [ -f /var/lock/subsys/maradns ]; then
114 /etc/rc.d/init.d/maradns restart 1>&2
116 echo "Type \"/etc/rc.d/init.d/maradns start\" to start maradns" 1>&2
118 touch %{_localstatedir}/log/maradns
119 chmod 640 %{_localstatedir}/log/maradns
122 if [ "$1" = "0" ]; then
128 /sbin/chkconfig --add zoneserver
129 if [ -f /var/lock/subsys/zoneserver ]; then
130 /etc/rc.d/init.d/zoneserver restart 1>&2
132 echo "Type \"/etc/rc.d/init.d/zoneserver start\" to start zoneserver" 1>&2
134 touch %{_localstatedir}/log/zoneserver
135 chmod 640 %{_localstatedir}/log/zoneserver
138 if [ "$1" = "0" ]; then
139 if [ -f /var/lock/subsys/maradns ]; then
140 /etc/rc.d/init.d/maradns stop 1>&2
142 /sbin/chkconfig --del maradns
146 if [ "$1" = "0" ]; then
147 if [ -f /var/lock/subsys/zoneserver ]; then
148 /etc/rc.d/init.d/zoneserver stop 1>&2
150 /sbin/chkconfig --del zoneserver
154 %defattr(644,root,root,755)
155 %doc 0QuickStart TODO 00README.FIRST CREDITS CHANGELOG doc/{README,en}
156 %lang(fr) %doc doc/fr
157 %attr(754,root,root) /etc/rc.d/init.d/maradns
158 %attr(755,root,root) %{_sbindir}/getzone
159 %attr(755,root,root) %{_sbindir}/maradns
160 %attr(755,root,root) %{_bindir}/*
161 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mararc
162 %dir %{_sysconfdir}/maradns
163 %attr(640,root,root) %config %verify(not md5 mtime size) %{_sysconfdir}/maradns/db.example.com
164 %attr(640,root,root) %ghost %{_localstatedir}/log/maradns
167 %{_mandir}/man8/maradns*
168 %{_mandir}/man8/duende*
169 %lang(fr) %{_mandir}/fr/man1/*
170 %lang(fr) %{_mandir}/fr/man5/*
171 %lang(fr) %{_mandir}/fr/man8/maradns*
174 %defattr(644,root,root,755)
175 %attr(754,root,root) /etc/rc.d/init.d/zoneserver
176 %attr(755,root,root) %{_sbindir}/zoneserver
177 %attr(640,root,root) %ghost %{_localstatedir}/log/zoneserver
178 %{_mandir}/man8/zoneserver*
179 %lang(fr) %{_mandir}/fr/man8/zoneserver*