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

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

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


Revision 1.3 - (hide annotations) (download)
Thu Oct 5 16:21:25 2006 UTC (18 years, 1 month ago) by charliebrady
Branch: MAIN
Changes since 1.2: +6 -1 lines
Thu Oct  5 12:21:22 2006                      Charlie Brady (charlieb)

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

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

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