/[packages]/cauldron/maradns/current/SPECS/maradns.spec
ViewVC logotype

Contents of /cauldron/maradns/current/SPECS/maradns.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 645706 - (show annotations) (download)
Sun Jul 6 13:03:37 2014 UTC (6 years, 3 months ago) by ovitters
File size: 2544 byte(s)
SILENT remove cleaning buildroot in install
1 %define topver 1.4
2
3 Summary: An authoritative and recursive DNS server made with security in mind
4 Name: maradns
5 Version: 1.4.14
6 Release: %mkrel 2
7 License: BSD
8 Group: System/Servers
9 URL: http://www.maradns.org
10 Source0: http://www.maradns.org/download/%{topver}/%{name}-%{version}.tar.gz
11 Source1: maradns.service
12 Patch0: maradns-1.3.07.09-install.patch
13 Patch1: maradns-1.3.07.09-initscript.patch
14 Patch2: maradns-1.3.07.09-mararc_examples.patch
15 Requires(post): rpm-helper >= 0.24.8-1
16 Requires(preun): rpm-helper >= 0.24.8-1
17
18 %description
19 MaraDNS is an authoritative and recursive DNS server made with
20 security in mind. More information is at http://www.maradns.org.
21
22 %prep
23 %setup -q
24 %patch0 -p1 -b .path
25 %patch1 -p1
26 %patch2 -p1
27
28 %build
29 %setup_compile_flags
30 %make
31
32 %install
33 mkdir -p %{buildroot}%{_sbindir}
34 mkdir -p %{buildroot}%{_bindir}
35 mkdir -p %{buildroot}%{_mandir}/{man1,man5,man8}
36 mkdir -p %{buildroot}/%{_initrddir}
37 mkdir -p %{buildroot}%{_logdir}/%{name}
38 mkdir -p %{buildroot}%{_unitdir}
39
40 PREFIX="%{buildroot}%{_prefix}" make install
41
42 install -m 0644 doc/en/examples/example_authoritative_mararc.txt \
43 %{buildroot}%{_sysconfdir}/%{name}/mararc.authorative
44 install -m 0644 doc/en/examples/example_full_mararc \
45 %{buildroot}%{_sysconfdir}/%{name}/mararc.full
46 install -m 0644 doc/en/examples/example_recursive_mararc.txt \
47 %{buildroot}%{_sysconfdir}/%{name}/mararc.recursive
48 install -m 0644 %{SOURCE1} \
49 %{buildroot}%{_unitdir}/maradns.service
50
51 # remove unwanted %doc files
52 rm doc/en/Makefile \
53 doc/en/*.html \
54 doc/en/examples/Makefile
55 rm -r doc/en/man \
56 doc/en/misc \
57 doc/en/pdf \
58 doc/en/source
59 rm -r doc/pt_br
60
61 %clean
62 rm -rf %{buildroot}/
63
64 %pre
65 %_pre_useradd maradns /etc/maradns /bin/false
66 %_pre_groupadd maradns maradns
67 #if [ $1 = 1 ]
68 # then
69 # /usr/sbin/groupadd -r -g 99 maradns > /dev/null 2>&1
70 # /usr/sbin/useradd -u 99 -r -d /etc/maradns -s /bin/false \
71 # -c "Maradns pseudo user" -g maradns maradns > /dev/null 2>&1
72 #fi
73
74 %post
75 %_post_service maradns
76
77 %preun
78 %_preun_service maradns
79
80 %postun
81 %_postun_userdel maradns
82 %_postun_groupdel maradns
83
84
85 %files
86 %doc doc/*
87 %attr(755,root,root) %{_sysconfdir}/rc.d/init.d/%{name}*
88 %dir %{_sysconfdir}/%{name}
89 %dir %{_sysconfdir}/%{name}/logger
90 %config(noreplace) %{_sysconfdir}/%{name}/db.example.net
91 %config(noreplace) %{_sysconfdir}/%{name}/mararc*
92 %{_bindir}/fetchzone
93 %{_bindir}/getzone
94 %{_bindir}/askmara
95 %{_sbindir}/%{name}
96 %{_sbindir}/zoneserver
97 %{_sbindir}/duende
98 %{_mandir}/man1/*
99 %{_mandir}/man5/*
100 %{_mandir}/man8/*
101 %dir %{_logdir}/%{name}
102 %{_unitdir}/%{name}.service

  ViewVC Help
Powered by ViewVC 1.1.28