File ez-ipupdate.spec of Package ez-ipupdate

#
# spec file for package ez-ipupdate (Version 3.0.11b8)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           ez-ipupdate
Summary:        A Small Utility for Updating a Dynamic DNS Service
Version:        3.0.11b8
Release:        264
License:        GPL v2 or later
Group:          Productivity/Networking/DNS/Utilities
Source0:        %{name}-%{version}.tar.bz2
Source1:        ez-ipupdate.init
Source2:        ez-ipupdate.example.conf
Patch:          ez-ipupdate.example.conf.patch
Patch1:         ez-ipupdate-3.0.11b8-include.diff
Patch2:         ez-ipupdate-format-string-vuln.patch
Patch3:         ez-ipupdate-includes.patch
Patch4:         ez-ipupdate-dnsexit.patch
Patch5:         ez-ipupdate-3.0.11b8-fix_autofoo.patch
Url:            http://ez-ipupdate.com/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         %insserv_prereq

%description
ez-ipupdate is a small utility for updating your hostname for any of
the dynamic DNS services offered at:

* http://www.ez-ip.net

* http://www.justlinux.com

* http://www.dhs.org

* http://www.dyndns.org

* http://www.ods.org

* http://gnudip.cheapnet.net (GNUDip)

* http://www.dyn.ca (GNUDip)

* http://www.tzo.com

* http://www.easydns.com

* http://www.dyns.cx

* http://www.hn.org

* http://www.zoneedit.com



Authors:
--------
    Angus Mackay

%prep
%setup -q
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3
%patch4
%patch5

%build
find -name "example*" | xargs -n 1 sed -i "s@/usr/local/bin/@/usr/bin/@"
autoreconf -fiv
%configure
%{__make} %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/init.d
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/ez-ipupdate/
install -m 600 %{S:2} $RPM_BUILD_ROOT%{_sysconfdir}/ez-ipupdate.conf
install -m 755 %{S:1} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/ez-ipupdate
install -d $RPM_BUILD_ROOT%{_sbindir}
ln -sf /etc/init.d/ez-ipupdate $RPM_BUILD_ROOT%{_sbindir}/rcez-ipupdate

%clean
rm -rf ${RPM_BUILD_ROOT}

%preun
%stop_on_removal %{name}

%post
%{fillup_and_insserv -f %{name}}

%postun
%restart_on_update %{name}
%insserv_cleanup

%files
%defattr(-, root, root)
%doc README INSTALL CHANGELOG COPYING example*
%{_bindir}/ez-ipupdate
%{_sbindir}/rcez-ipupdate
%config(noreplace) %{_sysconfdir}/ez-ipupdate.conf
%{_sysconfdir}/init.d/ez-ipupdate
%{_localstatedir}/lib/ez-ipupdate/

%changelog
* Tue Sep 30 2008 crrodriguez@suse.de
- fix init script handling
- regenerate autofoo stuff,too old for current tools
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Sep 19 2005 hvogel@suse.de
- add dnsexit support [#116381]
* Wed Jul 06 2005 hvogel@suse.de
- fix implicit functions
* Tue Nov 02 2004 hvogel@suse.de
- fix format string vulnerability (Bug #47857)
* Sat Feb 28 2004 ro@suse.de
- fix requires for /usr/local/bin
* Sat Feb 28 2004 ro@suse.de
- fix typo in specfile
* Tue Feb 03 2004 mmj@suse.de
- #include <time.h> for localtime() prototype
* Thu Jan 29 2004 hvogel@suse.de
- use bzip2 for the source package
- use correct macros for bin/sbin/var
* Mon Nov 17 2003 hvogel@suse.de
- patch /tmp out of the example config files. (#33161)
* Thu Nov 13 2003 hvogel@suse.de
- dont build as root
* Mon Sep 01 2003 hvogel@suse.de
- move the link to sbin.
- mark the config file as config(noreplace)
* Sun Aug 31 2003 hvogel@suse.de
- forgot to package rcez-ipupdate link
* Mon Jun 16 2003 hvogel@suse.de
- Initial Package, Version 3.0.11b8
openSUSE Build Service is sponsored by