/[packages]/updates/1/dnsmasq/current/SPECS/dnsmasq.spec
ViewVC logotype

Contents of /updates/1/dnsmasq/current/SPECS/dnsmasq.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 42235 - (show annotations) (download)
Thu Jan 27 20:17:36 2011 UTC (13 years, 2 months ago) by erwan
Original Path: cauldron/dnsmasq/current/SPECS/dnsmasq.spec
File size: 2799 byte(s)
imported package dnsmasq
1 Summary: A lightweight dhcp and caching nameserver
2 Name: dnsmasq
3 Version: 2.55
4 Release: %mkrel 1
5 License: GPLv2 or GPLv3
6 Group: System/Servers
7 URL: http://www.thekelleys.org.uk/dnsmasq
8 Conflicts: bind
9 Source0: http://www.thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.lzma
10 BuildRequires: dbus-devel
11 Source1: dnsmasq.sysconfig
12 Source2: dnsmasq.init
13 Requires: %{name}-base = %{version}-%{release}
14 Requires(preun): rpm-helper
15 Requires(post): rpm-helper
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
17
18 %description
19 Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. It
20 is designed to provide DNS and, optionally, DHCP, to a small network. It can
21 serve the names of local machines which are not in the global DNS. The DHCP
22 server integrates with the DNS server and allows machines with DHCP-allocated
23 addresses to appear in the DNS with names configured either in each host or
24 in a central configuration file. Dnsmasq supports static and dynamic DHCP
25 leases and BOOTP for network booting of diskless machines.
26
27 %package base
28 Summary: A lightweight dhcp and caching nameserver - base files without init scripts
29 Group: Networking/Remote access
30 Conflicts: dnsmasq < 2.45-2mdv
31
32 %description base
33 Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. It
34 is designed to provide DNS and, optionally, DHCP, to a small network. It can
35 serve the names of local machines which are not in the global DNS. The DHCP
36 server integrates with the DNS server and allows machines with DHCP-allocated
37 addresses to appear in the DNS with names configured either in each host or
38 in a central configuration file. Dnsmasq supports static and dynamic DHCP
39 leases and BOOTP for network booting of diskless machines.
40
41 This package contains the base files of the Dnsmasq server, without the init
42 scripts and global configuration files.
43
44 %prep
45 %setup -q
46
47 %build
48 #(tpg) enable dbus support
49 sed -i 's|/\* #define HAVE_DBUS \*/|#define HAVE_DBUS|g' src/config.h
50
51 %serverbuild
52 %make
53
54 %install
55 rm -rf %{buildroot}
56 install -m755 %{SOURCE2} -D %{buildroot}%{_initrddir}/%{name}
57 install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/sysconfig/%{name}
58
59 install -m644 dnsmasq.conf.example -D %{buildroot}%{_sysconfdir}/dnsmasq.conf
60
61 install -m755 -D src/dnsmasq %{buildroot}%{_sbindir}/dnsmasq
62 #ln -sf ../../%{_initrddir}/%{name} %{buildroot}/%{_sbindir}/rcdnsmasq
63 install -m644 man/dnsmasq.8 -D %{buildroot}%{_mandir}/man8/dnsmasq.8
64
65
66 %clean
67 rm -rf %{buildroot}
68
69 %post
70 %_post_service %{name}
71
72 %preun
73 %_preun_service %{name}
74
75 %files
76 %defattr(-,root,root)
77 %{_initrddir}/%{name}
78 %config(noreplace) %{_sysconfdir}/dnsmasq.conf
79 %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
80
81 %files base
82 %doc CHANGELOG FAQ doc.html setup.html
83 %{_sbindir}/%{name}
84 %doc %{_mandir}/man8/%{name}*
85
86

  ViewVC Help
Powered by ViewVC 1.1.30