2007-01-16 00:10:19 +01:00
|
|
|
#
|
2011-05-05 10:40:27 +02:00
|
|
|
# spec file for package dnsmasq
|
2007-01-16 00:10:19 +01:00
|
|
|
#
|
2011-05-05 10:40:27 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:10:19 +01:00
|
|
|
#
|
2008-08-15 23:07:27 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:10:19 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-15 01:18:36 +01:00
|
|
|
|
2007-01-16 00:10:19 +01:00
|
|
|
Name: dnsmasq
|
|
|
|
Summary: Lightweight, Easy-to-Configure DNS Forwarder and DHCP Server
|
2011-03-02 09:56:26 +01:00
|
|
|
Version: 2.57
|
2009-11-23 12:03:11 +01:00
|
|
|
Release: 1
|
2010-01-27 17:33:24 +01:00
|
|
|
License: GPLv2+
|
2007-01-16 00:10:19 +01:00
|
|
|
Group: Productivity/Networking/DNS/Servers
|
|
|
|
Provides: dns_daemon
|
2008-11-11 15:29:31 +01:00
|
|
|
PreReq: /usr/sbin/useradd %fillup_prereq %insserv_prereq /bin/mkdir
|
2007-12-06 17:48:32 +01:00
|
|
|
AutoReqProv: on
|
|
|
|
Url: http://www.thekelleys.org.uk/dnsmasq/
|
2008-01-07 02:45:31 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2007-01-16 00:10:19 +01:00
|
|
|
Source1: vendor-files.tar.bz2
|
2009-03-12 15:25:37 +01:00
|
|
|
Patch1: group_and_isc.diff
|
2008-09-13 03:47:51 +02:00
|
|
|
Patch3: manpage.diff
|
2007-01-16 00:10:19 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-11-23 12:03:11 +01:00
|
|
|
BuildRequires: dbus-1-devel libidn libidn-devel pkg-config
|
2007-01-16 00:10:19 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Dnsmasq is a lightweight, easy-to-configure DNS forwarder and DHCP
|
|
|
|
server. It is designed to provide DNS and, optionally, DHCP, to a small
|
|
|
|
network. It can serve the names of local machines that are not in the
|
|
|
|
global DNS. The DHCP server integrates with the DNS server and allows
|
|
|
|
machines with DHCP-allocated addresses to appear in DNS with names
|
|
|
|
configured either in each host or in a central configuration file.
|
|
|
|
Dnsmasq supports static and dynamic DHCP leases and BOOTP for network
|
|
|
|
booting of diskless machines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
simon@thekelleys.org.uk
|
|
|
|
|
|
|
|
%prep
|
2007-05-02 10:38:34 +02:00
|
|
|
%setup -n dnsmasq-%{version}
|
|
|
|
%setup -T -D -a1 -n dnsmasq-%{version}
|
2007-01-16 00:10:19 +01:00
|
|
|
%patch1 -p0
|
2008-09-13 03:47:51 +02:00
|
|
|
%patch3 -p0
|
2009-03-12 15:25:37 +01:00
|
|
|
echo "#define HAVE_DBUS" >> src/config.h
|
2007-01-16 00:10:19 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
mv po/no.po po/nb.po
|
2008-01-07 02:45:31 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
2009-11-23 12:03:11 +01:00
|
|
|
%{__make} %{?jobs:-j%jobs} AWK=gawk all-i18n
|
2007-01-16 00:10:19 +01:00
|
|
|
|
2008-06-23 21:00:42 +02:00
|
|
|
%pre
|
|
|
|
if ! /usr/bin/getent passwd dnsmasq >/dev/null; then
|
|
|
|
/usr/sbin/useradd -r -d /var/lib/empty -s /bin/false -c "dnsmasq" -g nogroup dnsmasq || :
|
|
|
|
fi
|
|
|
|
|
2007-01-16 00:10:19 +01:00
|
|
|
%post
|
|
|
|
%{fillup_and_insserv dnsmasq}
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal dnsmasq
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update dnsmasq
|
|
|
|
%{insserv_cleanup}
|
|
|
|
|
|
|
|
%clean
|
2008-01-07 02:45:31 +01:00
|
|
|
rm -rf %{buildroot}
|
2007-01-16 00:10:19 +01:00
|
|
|
|
|
|
|
%install
|
2009-03-12 15:25:37 +01:00
|
|
|
make install-i18n DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr AWK=gawk
|
2007-01-16 00:10:19 +01:00
|
|
|
install -d -m 755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/init.d
|
|
|
|
install -d -m 755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/slp.reg.d
|
2007-03-06 17:48:16 +01:00
|
|
|
install -d -m 755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
|
2007-01-16 00:10:19 +01:00
|
|
|
install -m 755 rc.dnsmasq-suse $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/dnsmasq
|
|
|
|
ln -sf ../../etc/init.d/dnsmasq $RPM_BUILD_ROOT/usr/sbin/rcdnsmasq
|
|
|
|
install -m 644 dnsmasq.conf.example $RPM_BUILD_ROOT/%{_sysconfdir}/dnsmasq.conf
|
|
|
|
install -m 644 dnsmasq.reg $RPM_BUILD_ROOT/%{_sysconfdir}/slp.reg.d/
|
2007-03-15 18:09:15 +01:00
|
|
|
install -m 644 SuSEFirewall.dnsmasq-dns ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/dnsmasq-dns
|
|
|
|
install -m 644 SuSEFirewall.dnsmasq-dhcp ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/dnsmasq-dhcp
|
2009-03-12 15:25:37 +01:00
|
|
|
install -d 755 ${RPM_BUILD_ROOT}/etc/dbus-1/system.d/
|
|
|
|
install -m 644 dbus/dnsmasq.conf ${RPM_BUILD_ROOT}/etc/dbus-1/system.d/dnsmasq.conf
|
2008-01-07 02:45:31 +01:00
|
|
|
%find_lang %{name}
|
2007-01-16 00:10:19 +01:00
|
|
|
|
2008-01-07 02:45:31 +01:00
|
|
|
%files -f %{name}.lang
|
2007-01-16 00:10:19 +01:00
|
|
|
%defattr(-,root,root)
|
2009-03-17 17:01:53 +01:00
|
|
|
%doc CHANGELOG COPYING FAQ doc.html setup.html dnsmasq.conf.example contrib README.SUSE dbus
|
2007-01-16 00:10:19 +01:00
|
|
|
%config(noreplace) /%{_sysconfdir}/dnsmasq.conf
|
2008-01-07 02:45:31 +01:00
|
|
|
%{_sysconfdir}/init.d/dnsmasq
|
|
|
|
%{_sbindir}/rcdnsmasq
|
|
|
|
%{_sbindir}/dnsmasq
|
2008-09-13 03:47:51 +02:00
|
|
|
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/dnsmasq-dns
|
|
|
|
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/dnsmasq-dhcp
|
|
|
|
%dir %{_sysconfdir}/slp.reg.d/
|
|
|
|
%config %attr(0644,root,root) /%{_sysconfdir}/slp.reg.d/dnsmasq.reg
|
2008-01-07 02:45:31 +01:00
|
|
|
%{_mandir}/man8/dnsmasq.8.gz
|
2008-02-15 01:18:36 +01:00
|
|
|
%{_mandir}/fr/man8/dnsmasq.8.gz
|
2008-01-07 02:45:31 +01:00
|
|
|
%{_mandir}/es/man8/dnsmasq.8.gz
|
2009-03-12 15:25:37 +01:00
|
|
|
/etc/dbus-1/system.d/dnsmasq.conf
|
2007-01-16 00:10:19 +01:00
|
|
|
|
2007-03-06 17:48:16 +01:00
|
|
|
%changelog
|