/[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.6 - (hide annotations) (download)
Sun May 6 06:26:47 2007 UTC (17 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +4 -3 lines
Sun May  6 00:26:45 2007                                        slords

Koji/plague contribs update
----------------------------------------------------------------------

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

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