LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ez-ipupdate.spec of Package ez-ipupdate (Project openSUSE:Factory)

#
# spec file for package ez-ipupdate
#
# Copyright (c) 2011 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/
#

Name:           ez-ipupdate
Summary:        A Small Utility for Updating a Dynamic DNS Service
Version:        3.0.11b8
Release:        0
License:        GPL-2.0+
BuildRequires:  automake
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

%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 %{?_smp_mflags}

%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

%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