1 ###############################################################################
5 ###############################################################################
11 Group: Productivity
/Networking
/DNS
/Servers
13 Packager: Simon Kelley
14 URL: http
://www.thekelleys.org.uk
/dnsmasq
16 Conflicts: bind bind8 bind9
17 PreReq
: %fillup_prereq %insserv_prereq
19 Source0: %{name}-%{version}.tar.gz
20 BuildRoot: /var
/tmp
/%{name}-%{version}
21 Summary: A lightweight caching nameserver
24 Dnsmasq is lightweight
, easy to configure DNS forwarder and DHCP server. It
25 is designed to provide DNS and
, optionally
, DHCP
, to a small network. It can
26 serve the names of
local machines which are not
in the global DNS. The DHCP
27 server integrates with the DNS server and allows machines with DHCP
-allocated
28 addresses to appear
in the DNS with names configured either
in each host or
29 in a central configuration file. Dnsmasq supports static and dynamic DHCP
30 leases and BOOTP
for network booting of diskless machines.
34 ###############################################################################
38 ###############################################################################
43 %{?suse_update_config:%{suse_update_config -f}}
46 ###############################################################################
50 ###############################################################################
53 rm -rf $RPM_BUILD_ROOT
54 mkdir -p $
{RPM_BUILD_ROOT
}/etc
/init.d
55 mkdir -p $
{RPM_BUILD_ROOT
}/usr
/sbin
56 mkdir -p $
{RPM_BUILD_ROOT
}%{_mandir}/man8
57 install -o root
-g root
-m
755 rpm
/rc.dnsmasq
-suse $RPM_BUILD_ROOT
/etc
/init.d
/dnsmasq
58 install -o root
-g root
-m
644 dnsmasq.conf.example $RPM_BUILD_ROOT
/etc
/dnsmasq.conf
60 install -o root
-g root
-m
755 src
/dnsmasq $RPM_BUILD_ROOT
/usr
/sbin
61 ln
-sf ..
/..
/etc
/init.d
/dnsmasq $RPM_BUILD_ROOT
/usr
/sbin
/rcdnsmasq
63 install -o root
-g root
-m
644 dnsmasq
.8.gz $RPM_BUILD_ROOT
%{_mandir}/man8
65 ###############################################################################
69 ###############################################################################
72 rm -rf $RPM_BUILD_ROOT
74 ###############################################################################
76 # Post-install scriptlet
78 ###############################################################################
81 %{fillup_and_insserv dnsmasq}
83 ###############################################################################
85 # Post-uninstall scriptlet
87 # The %postun script executes after the package has been removed. It is the
88 # last chance for a package to clean up after itself.
90 ###############################################################################
95 ###############################################################################
99 ###############################################################################
102 %defattr(-,root
,root
)
103 %doc CHANGELOG COPYING FAQ doc.html setup.html UPGRADING_to_2.0 rpm
/README.susefirewall
104 %config /etc
/init.d
/dnsmasq
105 %config /etc
/dnsmasq.conf
108 %doc %{_mandir}/man8
/dnsmasq
.8.gz