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

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

%setup -q
%patch -p1
%patch1 -p1
%patch2 -p1

find -name "example*" | xargs -n 1 sed -i "s@/usr/local/bin/@/usr/bin/@"
autoreconf -fiv
make %{?_smp_mflags}

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

%stop_on_removal %{name}

%{fillup_and_insserv -f %{name}}

%restart_on_update %{name}

%defattr(-, root, root)
%config(noreplace) %{_sysconfdir}/ez-ipupdate.conf