Package openresolv: Specfile

Name: openresolv
Version: 3.3.2
Release: alt6

Summary: A framework for managing DNS information 
License: %bsdstyle
Group: System/Configuration/Networking

URL: http://roy.marples.name/projects/%name
Source: %name-%version.tar
Source1: test
Patch0: %name-%version-%release.patch
Packager: Mikhail Efremov <sem@altlinux.org>
BuildArch: noarch

BuildRequires: rpm-build-licenses

Requires: filesystem >= 2.3.5

%description
resolvconf is the middleman between the network
configuration services and /etc/resolv.conf.
resolvconf itself is just a script that stores,
removes and lists a full resolv.conf generated
for the interface. It then calls all the helper
scripts it knows about so it can configure the real
/etc/resolv.conf and optionally any local nameservers
other can libc.

%prep
%setup -q
%patch0 -p1
cp %SOURCE1 .

%build
./test
%make_build PREFIX="" LIBEXECDIR=/lib/resolvconf RESTARTCMD='/sbin/service \1 condreload'

%install
%make_install PREFIX="" LIBEXECDIR=/lib/resolvconf DESTDIR=%buildroot install

%files
/sbin/*
%_man5dir/*
%_man8dir/*
%dir /lib/resolvconf
/lib/resolvconf/*
%config(noreplace) %_sysconfdir/resolvconf.conf

%changelog
* Tue Oct 06 2009 Mikhail Efremov <sem@altlinux.org> 3.3.2-alt6
- remove /etc/hooks/resolv.conf.d from %files.
- use 'test' script when package building.

* Thu Jul 23 2009 Mikhail Efremov <sem@altlinux.org> 3.3.2-alt5
- fixed adding nameservers to LIBC_NAMESERVERS variable (closes: #20854)

* Wed Jul 22 2009 Mikhail Efremov <sem@altlinux.org> 3.3.2-alt4
- Using separate variable LIBC_NAMESERVERS with '127.*' nameservers
    for libc subscriber.
- added resolv.conf head message.

* Mon Jun 22 2009 Mikhail Efremov <sem@altlinux.org> 3.3.2-alt3
- added dnsmasq subscriber configuration files to resolvconf.conf.
- dnsmasq subscriber: not to do anything if files does not exist.
- use 'condreload' command for dnsmasq restart
- added 'lo.*' to default interface_order.

* Wed Jun 10 2009 Mikhail Efremov <sem@altlinux.org> 3.3.2-alt2
- Allow 'nameserver 127.0.0.1' from all interfaces (closes: #20345).

* Tue Jun 02 2009 Mikhail Efremov <sem@altlinux.org> 3.3.2-alt1
- 3.3.2

* Tue May 19 2009 Mikhail Efremov <sem@altlinux.org> 3.3-alt2
- fixed dnsmasq restart.

* Fri Apr 24 2009 Mikhail Efremov <sem@altlinux.org> 3.3-alt1
- 3.3

* Mon Apr 20 2009 Mikhail Efremov <sem@altlinux.org> 3.2-alt2
- fixed FILES section in man page.

* Mon Apr 20 2009 Mikhail Efremov <sem@altlinux.org> 3.2-alt1
- 3.2

* Mon Mar 30 2009 Mikhail Efremov <sem@altlinux.org> 3.1.1-alt3
- fix service restarting

* Mon Mar 23 2009 Mikhail Efremov <sem@altlinux.org> 3.1.1-alt2
- some minor changes in dnsmasq and named subscribers scripts.
- Set more quotes, masquerade dnsmasq and dbus-tools deps (thx raorn@).

* Fri Mar 20 2009 Mikhail Efremov <sem@altlinux.org> 3.1.1-alt1
- 3.1.1 

* Mon Mar 16 2009 Stanislav Ievlev <inger@altlinux.org> 2.0.1-alt2
- Build for Sisyphus

* Wed Feb 25 2009 Mikhail Efremov <sem@altlinux.org> 2.0.1-alt1
- initial build