source: projects/specs/trunk/d/dnsmasq/dnsmasq-vl.spec @ 8067

Revision 8067, 8.6 KB checked in by Takemikaduchi, 10 years ago (diff)

new upstream release or rebuild

Line 
1Name:           dnsmasq
2Version:        2.45
3Release:        3%{?_dist_release}
4Summary:        A lightweight DHCP/caching DNS server
5Summary(ja):    軽量 DHCP/DNSキャッシュサーバ
6
7Group:          System Environment/Daemons
8License:        GPLv2 or GPLv3
9URL:            http://www.thekelleys.org.uk/dnsmasq/
10Source0:        http://www.thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
11Patch0:         %{name}-2.33-initscript.patch
12Patch1:         %{name}-configuration.patch
13BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
14
15BuildRequires:  dbus-devel
16BuildRequires:  pkgconfig
17
18Requires(post):  /sbin/chkconfig
19Requires(post):  /sbin/service
20Requires(post):  /bin/sed /bin/grep
21Requires(preun): /sbin/chkconfig
22Requires(preun): /sbin/service
23
24Vendor: Project Vine
25Distribution: Vine Linux
26
27%description
28Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server.
29It is designed to provide DNS and, optionally, DHCP, to a small network.
30It can serve the names of local machines which are not in the global
31DNS. The DHCP server integrates with the DNS server and allows machines
32with DHCP-allocated addresses to appear in the DNS with names configured
33either in each host or in a central configuration file. Dnsmasq supports
34static and dynamic DHCP leases and BOOTP for network booting of diskless
35machines.
36
37
38%prep
39%setup -q -n %{name}-%{version}
40%patch0 -p1
41%patch1 -p1
42
43%build
44make %{?_smp_mflags}
45
46
47%install
48rm -rf $RPM_BUILD_ROOT
49# normally i'd do 'make install'...it's a bit messy, though
50mkdir -p $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_initrddir} \
51        $RPM_BUILD_ROOT%{_mandir}/man8 \
52        $RPM_BUILD_ROOT%{_var}/lib/dnsmasq \
53        $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.d \
54        $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d
55install src/dnsmasq $RPM_BUILD_ROOT%{_sbindir}/dnsmasq
56install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
57install dbus/dnsmasq.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/
58install rpm/dnsmasq.init $RPM_BUILD_ROOT%{_initrddir}/dnsmasq
59install -m 644 man/dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8/
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%post
65if [ "$1" = "2" ]; then # if we're being upgraded
66    # if using the old leases location, move the file to the new one
67    # but only if we're not clobbering another file
68    #
69    if [ -f /var/lib/misc/dnsmasq.leases -a ! -f /var/lib/dnsmasq/dnsmasq.leases ]; then
70        # causes rpmlint to report dangerous-command-in-post,
71        # but that's the price of selinux compliance :-(
72        mv -f /var/lib/misc/dnsmasq.leases /var/lib/dnsmasq/dnsmasq.leases || :
73    fi
74    # ugly, but kind of necessary
75    if [ ! `grep -q dhcp-leasefile=/var/lib/misc/dnsmasq.leases %{_sysconfdir}/dnsmasq.conf` ]; then
76        cp %{_sysconfdir}/dnsmasq.conf %{_sysconfdir}/dnsmasq.conf.tmp || :
77        sed -e 's/var\/lib\/misc/var\/lib\/dnsmasq/' < %{_sysconfdir}/dnsmasq.conf.tmp > %{_sysconfdir}/dnsmasq.conf || :
78        rm -f %{_sysconfdir}/dnsmasq.conf.tmp || :
79    fi
80    /sbin/service dnsmasq condrestart >/dev/null 2>&1 || :
81else # if we're being installed
82    /sbin/chkconfig --add dnsmasq
83fi
84
85%preun
86if [ "$1" = "0" ]; then     # execute this only if we are NOT doing an upgrade
87    /sbin/service dnsmasq stop >/dev/null 2>&1 || :
88    /sbin/chkconfig --del dnsmasq
89fi
90
91
92%files
93%defattr(-,root,root,-)
94%doc CHANGELOG COPYING FAQ doc.html setup.html dbus/DBus-interface
95%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dnsmasq.conf
96%dir /etc/dnsmasq.d
97%dir %{_var}/lib/dnsmasq
98%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/dnsmasq.conf
99%{_initrddir}/dnsmasq
100%{_sbindir}/dnsmasq
101%{_mandir}/man8/dnsmasq*
102
103
104%changelog
105* Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.45-3
106- rebuild with VineSeed environment
107
108* Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 2.45-2
109- rebuilt with rpm-4.8.1-3
110
111* Thu Jul 31 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.45-1
112- initial build for Vine Linux
113
114* Mon Jul 21 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.45-1
115- Upstream release (bugfixes)
116
117* Wed Jul 16 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.43-2
118- New upstream release, contains fixes for CVE-2008-1447/CERT VU#800113
119- Dropped patch for newer glibc (merged upstream)
120
121* Wed Feb 13 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.41-0.8
122- Added upstream-authored patch for newer glibc (thanks Simon!)
123
124* Wed Feb 13 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.41-0.7
125- New upstream release
126
127* Wed Jan 30 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.41-0.6.rc1
128- Release candidate
129- Happy Birthday Isaac!
130
131* Wed Jan 23 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.41-0.5.test30
132- Bugfix update
133
134* Mon Dec 31 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.41-0.4.test26
135- Bugfix/feature enhancement update
136
137* Thu Dec 13 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.41-0.3.test24
138- Upstream fix for fairly serious regression
139
140* Tue Dec 04 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.41-0.2.test20
141- New upstream test release
142- Moving dnsmasq.leases to /var/lib/dnsmasq/ as per BZ#407901
143- Ignoring dangerous-command-in-%%post rpmlint warning (as per above fix)
144- Patch consolidation/cleanup
145- Removed conditionals for Fedora <= 3 and Aurora 2.0
146
147* Tue Sep 18 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.40-1
148- Finalized upstream release
149- Removing URLs from patch lines (CVS is the authoritative source)
150- Added more magic to make spinning rc/test packages more seamless
151
152* Sun Aug 26 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.40-0.1.rc2
153- New upstream release candidate (feature-frozen), thanks Simon!
154- License clarification
155
156* Tue May 29 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.39-1
157- New upstream version (bugfixes, enhancements)
158
159* Mon Feb 12 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.38-1
160- New upstream version with bugfix for potential hang
161
162* Tue Feb 06 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.37-1
163- New upstream version
164
165* Wed Jan 24 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.36-1
166- New upstream version
167
168* Mon Nov 06 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.35-2
169- Stop creating /etc/sysconfig on %%install
170- Create /etc/dnsmasq.d on %%install
171
172* Mon Nov 06 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.35-1
173- Update to 2.35
174- Removed UPGRADING_to_2.0 from %%doc as per upstream change
175- Enabled conf-dir in default config as per RFE BZ#214220 (thanks Chris!)
176- Added %%dir /etc/dnsmasq.d to %%files as per above RFE
177
178* Tue Oct 24 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.34-2
179- Fixed BZ#212005
180- Moved %%postun scriptlet to %%post, where it made more sense
181- Render scriptlets safer
182- Minor cleanup for consistency
183
184* Thu Oct 19 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.34-1
185- Hardcoded version in patches, as I'm getting tired of updating them
186- Update to 2.34
187
188* Mon Aug 28 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.33-2
189- Rebuild for FC6
190
191* Tue Aug 15 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.33-1
192- Update
193
194* Sat Jul 22 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.32-3
195- Added pkgconfig BuildReq due to reduced buildroot
196
197* Thu Jul 20 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.32-2
198- Forced update due to dbus version bump
199
200* Mon Jun 12 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.32-1
201- Update from upstream
202- Patch from Dennis Gilmore fixed the conditionals to detect Aurora Linux
203
204* Mon May  8 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.31-1
205- Removed dbus config patch (now provided upstream)
206- Patched in init script (no longer provided upstream)
207- Added DBus-interface to docs
208
209* Tue May  2 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-4.2
210- More upstream-recommended cleanups :)
211- Killed sysconfig file (provides unneeded functionality)
212- Tweaked init script a little more
213
214* Tue May  2 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-4
215- Moved options out of init script and into /etc/sysconfig/dnsmasq
216- Disabled DHCP_LEASE in sysconfig file, fixing bug #190379
217- Simon Kelley provided dbus/dnsmasq.conf, soon to be part of the tarball
218
219* Thu Apr 27 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-3
220- Un-enabled HAVE_ISC_READER, a hack to enable a deprecated feature (request)
221- Split initscript & enable-dbus patches, conditionalized dbus for FC3
222- Tweaked name field in changelog entries (trying to be consistent)
223
224* Mon Apr 24 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-2
225- Disabled stripping of binary while installing (oops)
226- Enabled HAVE_ISC_READER/HAVE_DBUS via patch
227- Added BuildReq for dbus-devel
228
229* Mon Apr 24 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-1
230- Initial Fedora Extras RPM
Note: See TracBrowser for help on using the repository browser.