/[smeserver]/smeserver-tinydns-public/F/smeserver-tinydns-public.spec
ViewVC logotype

Contents of /smeserver-tinydns-public/F/smeserver-tinydns-public.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download)
Thu Dec 7 23:26:55 2006 UTC (17 years, 5 months ago) by slords
Branch: MAIN
Changes since 1.4: +7 -3 lines
Update release and packager

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed