/[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.2 - (show annotations) (download)
Fri Sep 22 15:47:43 2006 UTC (17 years, 7 months ago) by charliebrady
Branch: MAIN
Changes since 1.1: +8 -1 lines
Fri Sep 22 11:47:40 2006                        Charlie Brady (bradyc)

See changelog
----------------------------------------------------------------------

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

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