/[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.1 - (hide annotations) (download)
Wed Jul 26 02:16:22 2006 UTC (18 years, 4 months ago) by gordonr
Branch: MAIN
Initial revision

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

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