Hello community,

here is the log from the commit of package ddclient for openSUSE:Factory 
checked in at 2014-07-02 15:05:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ddclient (Old)
 and      /work/SRC/openSUSE:Factory/.ddclient.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ddclient"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ddclient/ddclient.changes        2014-05-23 
08:08:50.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ddclient.new/ddclient.changes   2014-07-02 
15:05:23.000000000 +0200
@@ -2 +2 @@
-Thu May 22 13:14:42 UTC 2014 - [email protected]
+Mon Jun 30 17:51:12 CEST 2014 - [email protected]
@@ -4,4 +4 @@
-- update systemd stuff
-  * add {?has_systemd} to fix build for Systems using init scripts
-- spec cleanup
-  * add missing BuildRoot
+- Use perl_requires instead of harcoding a value.
@@ -10 +7,9 @@
-Tue May 20 14:29:35 UTC 2014 - [email protected]
+Wed Jun 18 11:03:39 UTC 2014 - [email protected]
+
+- fix pidfile path in /etc/ddclient.conf and set ownership to ddclient
+- create user and group ddclient (bnc#881520)
+- create /run/ddclient/ with user and group ddclient if not yet 
+  available in %pre
+
+-------------------------------------------------------------------
+Tue May 20 14:31:29 UTC 2014 - [email protected]

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ddclient.spec ++++++
--- /var/tmp/diff_new_pack.Ui6HHS/_old  2014-07-02 15:05:23.000000000 +0200
+++ /var/tmp/diff_new_pack.Ui6HHS/_new  2014-07-02 15:05:23.000000000 +0200
@@ -29,17 +29,11 @@
 Source3:        %{name}-tmpfiles.conf
 Source4:        rc.%{name}
 Patch0:         %{name}-3.8.1-config.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildArch:      noarch
-Requires(pre):  %fillup_prereq
-
-%if 0%{?suse_version} >= 1230
 BuildRequires:  pkgconfig(systemd)
+BuildArch:      noarch
+Requires(pre):  %fillup_prereq shadow
+%{?perl_requires}
 %{?systemd_requires}
-%define has_systemd 1
-%endif
-
-Requires:       perl >= 5.004
 Recommends:     perl-IO-Socket-SSL
 
 %description
@@ -71,41 +65,54 @@
 
 %install
 #make DESTDIR=$RPM_BUILD_ROOT install
-%{__install} -D -m 755 %{name} %{buildroot}%{_sbindir}/%{name}
-%{__install} -D -m 644 examples/sample-etc_ddclient.conf 
%{buildroot}%{_sysconfdir}/%{name}.conf
+%{__mkdir_p} %{buildroot}%{_sbindir}
+%{__mkdir_p} %{buildroot}%{_sysconfdir}
+%if 0%{?suse_version} >=1230
+%{__mkdir_p} %{buildroot}%{_unitdir}
+%{__mkdir_p} %{buildroot}%{_libexecdir}/tmpfiles.d
+%else
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/init.d
+%endif
+%{__install} -m 755 %{name} %{buildroot}%{_sbindir}/
+%{__install} -m 600 examples/sample-etc_ddclient.conf 
%{buildroot}%{_sysconfdir}/%{name}.conf
 # init script and config file
-%if 0%{?has_systemd}
-%{__install} -D -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}.service
-%{__install} -D -m 644 %{SOURCE3} 
%{buildroot}%{_libexecdir}/tmpfiles.d/%{name}.conf
+%if 0%{?suse_version} >=1230
+%{__install} -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}.service
+%{__install} -m 644 %{SOURCE3} 
%{buildroot}%{_libexecdir}/tmpfiles.d/%{name}.conf
 %{__ln_s} %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
 %else
-%{__install} -D -m 755 %{SOURCE4} %{buildroot}%{_sysconfdir}/init.d/%{name}
+%{__install} -m 755 %{SOURCE4} %{buildroot}%{_sysconfdir}/init.d/%{name}
 %{__ln_s} %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
 %endif
 %{__install} -d -m 755 %{buildroot}/var/adm/fillup-templates
 %{__install} -m 644 %{SOURCE2} 
%{buildroot}/var/adm/fillup-templates/sysconfig.%{name}
 %{__install} -d -m 755 %{buildroot}/var/cache/%{name}
 
-%if 0%{?has_systemd}
 %pre
+%if 0%{?suse_version} >=1230
 %service_add_pre %{name}.service
 %endif
+getent group %{name} >/dev/null || %{_sbindir}/groupadd -r %{name}
+getent passwd %{name} >/dev/null || %{_sbindir}/useradd -r -g %{name} -d 
/var/cache/%{name} -s /bin/false -c "user for ddclient" %{name}
+test -d /run/ddclient || mkdir /run/ddclient 
+chown ddclient /run/ddclient
+chgrp ddclient /run/ddclient
 
 %post
 %{fillup_only}
-%if 0%{?has_systemd}
+%if 0%{?suse_version} >=1230
 %service_add_post %{name}.service
 %endif
 
 %preun
-%if 0%{?has_systemd}
+%if 0%{?suse_version} >=1230
 %service_del_preun %{name}.service
 %else
 %stop_on_removal ddclient
 %endif
 
 %postun
-%if 0%{?has_systemd}
+%if 0%{?suse_version} >=1230
 %service_del_postun %{name}.service
 %else
 %restart_on_update ddclient
@@ -114,9 +121,10 @@
 
 %files
 %defattr(-, root, root)
+%dir %attr(700,%{name},%{name}) /var/cache/%{name}
 %doc COPY* README* examples
-%config(noreplace) %attr(600,root,root) %{_sysconfdir}/%{name}.conf
-%if 0%{?has_systemd}
+%config(noreplace) %attr(660,%{name},%{name}) %{_sysconfdir}/%{name}.conf
+%if 0%{?suse_version} >=1230
 %{_unitdir}/%{name}.service
 %{_libexecdir}/tmpfiles.d/ddclient.conf
 %else
@@ -125,6 +133,5 @@
 %{_sbindir}/%{name}
 %{_sbindir}/rc%{name}
 /var/adm/fillup-templates/sysconfig.%{name}
-%dir /var/cache/%{name}
 
 %changelog

++++++ ddclient-3.8.1-config.patch ++++++
--- /var/tmp/diff_new_pack.Ui6HHS/_old  2014-07-02 15:05:23.000000000 +0200
+++ /var/tmp/diff_new_pack.Ui6HHS/_new  2014-07-02 15:05:23.000000000 +0200
@@ -15,8 +15,9 @@
 -mail=root                             # mail all msgs to root
 +#mail=root                            # mail all msgs to root
  mail-failure=root                     # mail failed update msgs to root
- pid=/var/run/ddclient.pid             # record PID in file.
+-pid=/var/run/ddclient.pid             # record PID in file.
 -ssl=yes                                       # use ssl-support.  Works with
++pid=/run/ddclient/ddclient.pid                # record PID in file.
 +ssl=no                                        # use ssl-support.  Works with
                                        # ssl-library
  # postscript=script                   # run script after updating.  The

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to