1 |
gordonr |
1.1 |
Summary: Public tinydns server for SME server |
2 |
|
|
%define name smeserver-tinydns-public |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 1.0.0 |
5 |
charliebrady |
1.3 |
%define release 03 |
6 |
gordonr |
1.1 |
Version: %{version} |
7 |
|
|
Release: %{release} |
8 |
|
|
License: GPL |
9 |
|
|
Vendor: Gormand Pty Ltd |
10 |
|
|
Group: Networking/Daemons |
11 |
|
|
Source0: %{name}-%{version}.tar.gz |
12 |
|
|
Source1: http://http://www.lickey.com/autoaxfr/dist/autoaxfr-1.2.tar.gz |
13 |
charliebrady |
1.2 |
Patch0: smeserver-tinydns-public-1.0.0-axfr-get_path.patch |
14 |
charliebrady |
1.3 |
Patch1: smeserver-tinydns-public-1.0.0-access.patch |
15 |
charliebrady |
1.4 |
Patch2: smeserver-tinydns-public-1.0.0-dbpatch.patch |
16 |
gordonr |
1.1 |
Packager: Gordon Rowell <gordonr@gormand.com.au> |
17 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
|
|
Requires: djbdns |
19 |
|
|
Requires: e-smith-packetfilter >= 1.16.0-05 |
20 |
|
|
BuildArchitectures: noarch |
21 |
|
|
BuildRequires: e-smith-devtools |
22 |
|
|
Obsoletes: e-smith-tinydns-public |
23 |
|
|
Provides: e-smith-tinydns-public |
24 |
|
|
AutoReqProv: no |
25 |
|
|
%define autoaxfrid 408 |
26 |
|
|
|
27 |
|
|
%description |
28 |
|
|
Configure autoaxfr and tinydns to provide DNS secondary service |
29 |
|
|
|
30 |
|
|
%changelog |
31 |
charliebrady |
1.4 |
* Thu Oct 5 2006 Charlie Brady <charlie_brady@mitel.com> 1.0.0-04 |
32 |
|
|
- Fix path to db in conf script. |
33 |
|
|
|
34 |
charliebrady |
1.3 |
* Thu Oct 5 2006 Charlie Brady <charlie_brady@mitel.com> 1.0.0-03 |
35 |
|
|
- Add db default fragments to allow access through the firewall. |
36 |
|
|
|
37 |
charliebrady |
1.2 |
* Fri Sep 22 2006 Charlie Brady <charlie_brady@mitel.com> 1.0.0-02 |
38 |
|
|
- Remove autaxfr script from tarball, and change path in run script |
39 |
|
|
so that our axfr-get script is found by the standard autoaxfr |
40 |
|
|
script. |
41 |
|
|
|
42 |
gordonr |
1.1 |
* Wed Jul 26 2006 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-01 |
43 |
|
|
- Package renamed to smeserver-tinydns-public |
44 |
|
|
|
45 |
|
|
* Wed Jul 26 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-12 |
46 |
|
|
- Require newer version of e-smith-packetfilter [SME: 1776] |
47 |
|
|
|
48 |
|
|
* Tue Jun 15 2004 Gordon Rowell <gordonr@gormand.com.au> |
49 |
|
|
- [0.0.1-11] |
50 |
|
|
- SPEC file cleanup prior to tarball rebuild |
51 |
|
|
|
52 |
|
|
* Tue Jun 15 2004 Gordon Rowell <gordonr@gormand.com.au> |
53 |
|
|
- [0.0.1-10] |
54 |
|
|
- Use masq adjust instead of masq restart |
55 |
|
|
- Only run %post in run-level 7 |
56 |
|
|
- Retrieve tinydns.public{DataLimit} from configdb, defaulted to 1000000 bytes |
57 |
|
|
|
58 |
|
|
* Tue Jun 15 2004 Gordon Rowell <gordonr@gormand.com.au> |
59 |
|
|
- [0.0.1-09] |
60 |
|
|
- Open DNS/UDP firewall hole only if tinydns.public is enabled |
61 |
|
|
|
62 |
|
|
* Tue Jun 15 2004 Gordon Rowell <gordonr@gormand.com.au> |
63 |
|
|
- [0.0.1-08] |
64 |
|
|
- Unpack autoaxfr into its own tree, not as a subdirectory |
65 |
|
|
|
66 |
|
|
* Tue Jun 15 2004 Gordon Rowell <gordonr@gormand.com.au> |
67 |
|
|
- [0.0.1-07] |
68 |
|
|
- Remove crontab template now that we are no longer using make |
69 |
|
|
- Manual step required on upgrade for this version: |
70 |
|
|
/sbin/e-smith/expand-template /etc/crontab |
71 |
|
|
/etc/init.d/crond restart |
72 |
|
|
|
73 |
|
|
* Tue Jun 15 2004 Gordon Rowell <gordonr@gormand.com.au> |
74 |
|
|
- [0.0.1-06] |
75 |
|
|
- Add autoaxfr as a source tarball, and patch during build |
76 |
|
|
- Simplified data.cdb symlink |
77 |
|
|
|
78 |
|
|
* Fri Jun 11 2004 Charlie Brady <charlieb@e-smith.com> |
79 |
|
|
- [0.0.1-05] |
80 |
|
|
- Fold in (customised) autoaxfr. Remove crontab entry - data.cdb |
81 |
|
|
is now rebuilt as required. |
82 |
|
|
- Remove dependency on make and autoaxfr. |
83 |
|
|
- Rationalise build and install sections of spec file. |
84 |
|
|
|
85 |
|
|
* Fri Jun 11 2004 Gordon Rowell <gordonr@e-smith.com> |
86 |
|
|
- [0.0.1-04] |
87 |
|
|
- Removed unwanted build dependency |
88 |
|
|
|
89 |
|
|
* Fri Jun 11 2004 Gordon Rowell <gordonr@e-smith.com> |
90 |
|
|
- [0.0.1-03] |
91 |
|
|
- Generate/manage autoaxfr domains from publicdns config db |
92 |
|
|
- Added publicdns-conf action |
93 |
|
|
|
94 |
|
|
sudo /sbin/e-smith/db publicdns set \ |
95 |
|
|
<domain> publicdomain \ |
96 |
|
|
Primaries <ip1>[,<ip>]* \ |
97 |
|
|
Transfer autoaxfr |
98 |
|
|
|
99 |
|
|
sudo /etc/e-smith/events/actions/publicdns-conf |
100 |
|
|
|
101 |
|
|
* Thu Jun 10 2004 Gordon Rowell <gordonr@e-smith.com> |
102 |
|
|
- [0.0.1-02] |
103 |
|
|
- Create /var/service/autoaxfr/root/zones/EMPTY so we have something |
104 |
|
|
- Fix ownership of /var/service/autoaxfr/root/* |
105 |
|
|
|
106 |
|
|
* Thu Jun 10 2004 Gordon Rowell <gordonr@e-smith.com> |
107 |
|
|
- [0.0.1-01] |
108 |
|
|
- Initial |
109 |
|
|
|
110 |
|
|
%prep |
111 |
|
|
%setup -b 0 |
112 |
|
|
%setup -D -T -b 1 |
113 |
charliebrady |
1.2 |
%patch0 -p1 |
114 |
charliebrady |
1.3 |
%patch1 -p1 |
115 |
charliebrady |
1.4 |
%patch2 -p1 |
116 |
gordonr |
1.1 |
|
117 |
|
|
%build |
118 |
|
|
# perl createlinks |
119 |
|
|
|
120 |
|
|
mkdir -p root/etc/rc.d/init.d |
121 |
|
|
mkdir -p root/etc/rc.d/rc7.d |
122 |
|
|
mkdir -p root/service |
123 |
|
|
|
124 |
|
|
for i in autoaxfr tinydns.public |
125 |
|
|
do |
126 |
|
|
ln -s /var/service/$i root/service/$i |
127 |
|
|
ln -s daemontools root/etc/rc.d/init.d/$i |
128 |
|
|
ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S90$i |
129 |
|
|
touch root/var/service/$i/down |
130 |
|
|
done |
131 |
|
|
touch root/var/service/autoaxfr/root/zones/EMPTY |
132 |
|
|
|
133 |
|
|
mkdir -p root/var/service/tinydns.public/root/data |
134 |
|
|
mkdir -p root/var/service/tinydns.public/env |
135 |
|
|
ln -s data/data.cdb root/var/service/tinydns.public/root/data.cdb |
136 |
|
|
|
137 |
|
|
cp ../autoaxfr-1.2/autoaxfr root/var/service/autoaxfr/autoaxfr |
138 |
|
|
|
139 |
|
|
%install |
140 |
|
|
rm -rf $RPM_BUILD_ROOT |
141 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
142 |
|
|
|
143 |
|
|
|
144 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
145 |
|
|
--dir /var/log/autoaxfr 'attr(0750,smelog,smelog)' \ |
146 |
|
|
--dir /var/service/autoaxfr 'attr(01755,root,root)' \ |
147 |
|
|
--dir /var/service/autoaxfr/root/zones 'attr(01755,autoaxfr,autoaxfr)' \ |
148 |
|
|
--dir /var/service/autoaxfr/root/temp 'attr(01755,autoaxfr,autoaxfr)' \ |
149 |
|
|
--dir /var/service/autoaxfr/root/slaves 'attr(01755,autoaxfr,autoaxfr)' \ |
150 |
|
|
--file /var/service/autoaxfr/run 'attr(0750,root,root)' \ |
151 |
|
|
--file /var/service/autoaxfr/autoaxfr 'attr(0555,root,root)' \ |
152 |
|
|
--file /var/service/autoaxfr/axfr-get 'attr(0555,root,root)' \ |
153 |
|
|
--file /var/service/autoaxfr/log/run 'attr(0750,root,root)' \ |
154 |
|
|
--dir /var/log/tinydns.public 'attr(0750,dnslog,dnslog)' \ |
155 |
|
|
--dir /var/service/tinydns.public 'attr(01755,root,root)' \ |
156 |
|
|
--dir /var/service/tinydns.public/root 'attr(01755,root,root)' \ |
157 |
|
|
--dir /var/service/tinydns.public/root/data 'attr(01755,autoaxfr,autoaxfr)' \ |
158 |
|
|
--file /var/service/tinydns.public/root/mydata 'attr(0644,root,root) %config' \ |
159 |
|
|
--file /var/service/tinydns.public/run 'attr(0750,root,root)' \ |
160 |
|
|
--file /var/service/tinydns.public/log/run 'attr(0750,root,root)' \ |
161 |
|
|
> %{name}-%{version}-%{release}-filelist |
162 |
|
|
|
163 |
|
|
|
164 |
|
|
%pre |
165 |
|
|
/sbin/e-smith/create-system-user autoaxfr %{autoaxfrid} \ |
166 |
|
|
'Autoxfr system user' /var/log/autoaxfr /bin/false |
167 |
|
|
|
168 |
|
|
%preun |
169 |
|
|
|
170 |
|
|
%post |
171 |
|
|
case $(/sbin/runlevel) in |
172 |
|
|
*7) /etc/e-smith/events/actions/initialize-default-databases |
173 |
|
|
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
174 |
|
|
/etc/init.d/masq adjust |
175 |
|
|
;; |
176 |
|
|
esac |
177 |
|
|
|
178 |
|
|
%clean |
179 |
|
|
rm -rf $RPM_BUILD_ROOT |
180 |
|
|
|
181 |
|
|
%files -f %{name}-%{version}-%{release}-filelist |
182 |
|
|
%defattr(-,root,root) |