]> git.pld-linux.org Git - packages/maradns.git/blame - maradns.spec
- fixed doc
[packages/maradns.git] / maradns.spec
CommitLineData
a493773b 1Summary: A (currently) authoritative-only DNS server made with security in mind
88076dd0 2Summary(pl.UTF-8): Tylko autorytatywny (na razie) serwer DNS zrobiony z myślą o bezpieczeństwie
a493773b 3Name: maradns
8f82cc4f
MM
4Version: 1.3.07.09
5Release: 0.1
0c98cd76 6License: Public Domain
a493773b 7Group: Networking/Daemons
8f82cc4f
MM
8Source0: http://www.maradns.org/download/1.3/%{version}/%{name}-%{version}.tar.bz2
9# Source0-md5: 1d221438fb4d9317263555262b9c652c
7f131a65 10Source1: %{name}.init
d276b9d3 11Source2: zoneserver.init
12Source3: mararc
b0a404a2 13Patch0: %{name}-default_uid.patch
622c3f75 14URL: http://www.maradns.org/
d6a4b8ee 15BuildRequires: rpmbuild(macros) >= 1.268
47534733
ER
16Requires(post): fileutils
17Requires(post,preun): /sbin/chkconfig
18Requires(postun): /usr/sbin/groupdel
19Requires(postun): /usr/sbin/userdel
1dab4293 20Requires(pre): /bin/id
b0a404a2 21Requires(pre): /usr/bin/getgid
1dab4293 22Requires(pre): /usr/sbin/groupadd
b0a404a2 23Requires(pre): /usr/sbin/groupmod
1dab4293 24Requires(pre): /usr/sbin/useradd
b0a404a2 25Requires(pre): /usr/sbin/usermod
47534733 26Requires: rc-scripts
b0a404a2 27Provides: group(named)
a9ec4311 28Provides: nameserver
b0a404a2 29Provides: user(named)
af89ec0b 30Obsoletes: nameserver
b0a404a2 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a493773b 32
33%description
a493773b 34MaraDNS is (currently) an authoritative-only DNS server made with
35security in mind.
36
b42ae77d 37%description -l pl.UTF-8
7d251ab2 38MaraDNS jest (na razie) tylko autorytatywnym serwerem DNS zrobionym z
b42ae77d 39myślą o bezpieczeństwie.
7d251ab2 40
00f09138 41%package zoneserver
7d251ab2 42Summary: Handle zone transfers for MaraDNS
88076dd0 43Summary(pl.UTF-8): Obsługa transferów stref dla MaraDNS
00f09138 44Group: Networking/Daemons
1dab4293 45Requires(post): fileutils
47534733 46Requires(post,preun): /sbin/chkconfig
1f2c89a7 47Requires: %{name} = %{version}-%{release}
47534733 48Requires: rc-scripts
00f09138 49
50%description zoneserver
9433a235 51zoneserver listens on port 53/tcp and handles dns zone transfers.
52zoneserver uses a configuration file, /etc/mararc by default, to
53determine various parameters, such as the IP to bind to, who is
54allowed to perform zone transfers, etc.
00f09138 55
b42ae77d
JR
56%description zoneserver -l pl.UTF-8
57zoneserver słucha na porcie 53/tcp i obsługuje transfery stref DNS.
58Używa domyślnie pliku konfiguracyjnego /etc/mararc aby uzyskać
59parametry takie jak na jakim adresie ma słuchać, kto może robić
7d251ab2
JB
60transfery stref itp.
61
a493773b 62%prep
ad6f3c2f 63%setup -q
8f82cc4f 64#%patch0 -p1
1f2c89a7 65
a493773b 66%build
9433a235 67%{__make} \
61476c65 68 CC="%{__cc}" \
9433a235 69 FLAGS="%{rpmcflags}"
a493773b 70
71%install
72rm -rf $RPM_BUILD_ROOT
8f82cc4f 73install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_mandir}/man{1,5,8}} \
9433a235 74 $RPM_BUILD_ROOT{%{_sysconfdir}/maradns,/etc/rc.d/init.d} \
00f09138 75 $RPM_BUILD_ROOT%{_localstatedir}/log
9433a235 76
685edb0a 77install server/maradns tcp/zoneserver tcp/getzone $RPM_BUILD_ROOT%{_sbindir}
a493773b 78install tools/askmara $RPM_BUILD_ROOT%{_bindir}
bc66ed76 79install tools/benchmark $RPM_BUILD_ROOT%{_bindir}
9433a235 80install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/maradns
81install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/zoneserver
72f7580e 82install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/mararc
685edb0a 83install doc/en/examples/example_csv1 $RPM_BUILD_ROOT%{_sysconfdir}/maradns/db.example.com
00f09138 84
9433a235 85> $RPM_BUILD_ROOT%{_localstatedir}/log/maradns
86> $RPM_BUILD_ROOT%{_localstatedir}/log/zoneserver
87
1dab4293
JB
88install doc/en/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
89install doc/en/man/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
90install doc/en/man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
9433a235 91
a493773b 92%clean
93rm -rf $RPM_BUILD_ROOT
94
7f131a65 95%pre
ab71e0a9 96%groupadd -g 58 named
b0684b8d 97if [ "`/bin/id -u maradns 2>/dev/null`" = "58" ]; then
ab71e0a9 98 /usr/sbin/usermod -d /tmp -l named maradns
7f131a65 99fi
ab71e0a9 100%useradd -u 58 -g 58 -d /tmp -s /bin/false -c "maraDNS user" named
7f131a65 101
102%post
103/sbin/chkconfig --add maradns
d6a4b8ee 104%service maradns restart
9433a235 105touch %{_localstatedir}/log/maradns
106chmod 640 %{_localstatedir}/log/maradns
00f09138 107
1dab4293
JB
108%postun
109if [ "$1" = "0" ]; then
b0a404a2 110 %userremove named
111 %groupremove named
1dab4293
JB
112fi
113
00f09138 114%post zoneserver
115/sbin/chkconfig --add zoneserver
d6a4b8ee 116%service zoneserver restart
9433a235 117touch %{_localstatedir}/log/zoneserver
118chmod 640 %{_localstatedir}/log/zoneserver
7f131a65 119
120%preun
121if [ "$1" = "0" ]; then
d6a4b8ee 122 %service maradns stop
a9ec4311 123 /sbin/chkconfig --del maradns
00f09138 124fi
125
126%preun zoneserver
127if [ "$1" = "0" ]; then
d6a4b8ee 128 %service zoneserver stop
a9ec4311 129 /sbin/chkconfig --del zoneserver
7f131a65 130fi
131
a493773b 132%files
133%defattr(644,root,root,755)
e85adb1a 134%doc 0QuickStart 00README.FIRST CREDITS CHANGELOG doc/{README,en}
00f09138 135%attr(754,root,root) /etc/rc.d/init.d/maradns
136%attr(755,root,root) %{_sbindir}/getzone
137%attr(755,root,root) %{_sbindir}/maradns
a493773b 138%attr(755,root,root) %{_bindir}/*
622c3f75 139%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mararc
f323a461 140%dir %{_sysconfdir}/maradns
622c3f75 141%attr(640,root,root) %config %verify(not md5 mtime size) %{_sysconfdir}/maradns/db.example.com
1f2c89a7 142%attr(640,root,root) %ghost %{_localstatedir}/log/maradns
00f09138 143%{_mandir}/man1/*
144%{_mandir}/man5/*
145%{_mandir}/man8/maradns*
40a03a7d 146%{_mandir}/man8/duende*
00f09138 147
148%files zoneserver
9433a235 149%defattr(644,root,root,755)
00f09138 150%attr(754,root,root) /etc/rc.d/init.d/zoneserver
151%attr(755,root,root) %{_sbindir}/zoneserver
9433a235 152%attr(640,root,root) %ghost %{_localstatedir}/log/zoneserver
00f09138 153%{_mandir}/man8/zoneserver*
This page took 0.080959 seconds and 4 git commands to generate.