d60b6ceba1
Copy from network/ddclient based on submit request 24472 from user msmeissn OBS-URL: https://build.opensuse.org/request/show/24472 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ddclient?expand=0&rev=16
118 lines
3.7 KiB
RPMSpec
118 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package ddclient (Version 3.8.0)
|
|
#
|
|
# Copyright (c) 2009 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: ddclient
|
|
Summary: A Perl Client to Update Dynamic DNS Entries
|
|
Version: 3.8.0
|
|
Release: 5
|
|
License: GPL v2 or later
|
|
Group: Productivity/Networking/DNS/Utilities
|
|
AutoReqProv: on
|
|
Url: http://ddclient.sourceforge.net/
|
|
Source0: http://switch.dl.sourceforge.net/sourceforge/ddclient/%{name}-%{version}.tar.bz2
|
|
Source1: rc.ddclient
|
|
Source2: %{name}.sysconfig
|
|
Patch0: %{name}-3.8.0-config.patch
|
|
Patch1: %{name}-3.8.0-update_nic.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
PreReq: %fillup_prereq
|
|
Requires: perl >= 5.004
|
|
Suggests: perl-IO-Socket-SSL
|
|
|
|
%description
|
|
ddclient is a small full-featured client requiring only Perl. Supported
|
|
features include daemon operation, manual and automatic updates, static
|
|
and dynamic updates, optimized updates for multiple addresses, MX, wild
|
|
cards, abuse avoidance, retry for failed updates, and status updates to
|
|
syslog and through e-mail. ddclient can obtain the IP address from any
|
|
interface, through a Web-based IP detection service, and for multiple
|
|
routers using custom FW definitions. It also provides full support for
|
|
DynDNS.org's NIC2 protocol. Support is also included for other dynamic
|
|
DNS services. Comes with sample scripts for use with DHCP, PPP, and
|
|
cron.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Wim Vinckier <wimpunk@users.sourceforge.net >
|
|
Paul Burry <paul@burry.ca>
|
|
|
|
%prep
|
|
%setup
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
rm -f sample-etc_ddclient.conf.orig
|
|
chmod a-x sample-etc*
|
|
mkdir examples
|
|
mv sample-ddclient-wrapper.sh examples
|
|
|
|
%build
|
|
#export CFLAGS="$RPM_OPT_FLAGS"
|
|
#./configure \
|
|
# --mandir=%{_mandir} \
|
|
# --prefix=%{prefix} \
|
|
# --libdir=%{_libdir} \
|
|
# --infodir=%{_infodir} \
|
|
# --sysconfdir=%{_sysconfdir} \
|
|
#
|
|
# If the package provides automatic testing
|
|
#make test
|
|
# nothing to do here (yet)
|
|
|
|
%install
|
|
#make DESTDIR=$RPM_BUILD_ROOT install
|
|
%{__mkdir_p} $RPM_BUILD_ROOT%{_sbindir}
|
|
%{__mkdir_p} $RPM_BUILD_ROOT/%{_sysconfdir}/init.d
|
|
%{__install} -m 755 %{name} $RPM_BUILD_ROOT%{_sbindir}/
|
|
%{__install} -m 644 sample-etc_ddclient.conf $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}.conf
|
|
# init script and config file
|
|
%{__install} -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/%{name}
|
|
%{__ln_s} %{_sysconfdir}/init.d/%{name} $RPM_BUILD_ROOT%{_sbindir}/rc%{name}
|
|
%{__install} -d -m 755 $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
%{__install} -m 644 %{SOURCE2} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.%{name}
|
|
%{__install} -d -m 755 $RPM_BUILD_ROOT/var/cache/%{name}
|
|
|
|
%post
|
|
%{fillup_only}
|
|
|
|
%preun
|
|
%stop_on_removal ddclient
|
|
|
|
%postun
|
|
%restart_on_update ddclient
|
|
%insserv_cleanup
|
|
|
|
%clean
|
|
# Clear up the mess
|
|
%{__rm} -rf $RPM_BUILD_ROOT;
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc COPY* README* sample* examples
|
|
%config(noreplace) %attr(600,root,root) %{_sysconfdir}/%{name}.conf
|
|
%config %attr(0755,root,root) /etc/init.d/%{name}
|
|
%{_sbindir}/%{name}
|
|
%{_sbindir}/rc%{name}
|
|
/var/adm/fillup-templates/sysconfig.%{name}
|
|
%dir /var/cache/%{name}
|
|
|
|
%changelog
|