commit 91cda60246362580eb17efdb7ad7e0c6c434307c
Author: Elan Ruusamäe <[email protected]>
Date:   Wed Sep 23 09:00:40 2015 +0300

    add tmpfiles config

 ddclient-tmpfiles.conf | 1 +
 ddclient.spec          | 7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ddclient.spec b/ddclient.spec
index a39d125..3ab3bab 100644
--- a/ddclient.spec
+++ b/ddclient.spec
@@ -13,6 +13,7 @@ Source0:      
http://downloads.sourceforge.net/ddclient/%{name}-%{version}.tar.bz2
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}.NetworkManager
+Source4:       %{name}-tmpfiles.conf
 Patch0:                config.patch
 # https://github.com/wimpunk/ddclient
 URL:           http://ddclient.sourceforge.net/
@@ -85,13 +86,14 @@ cp -p sample-etc_ddclient.conf %{name}.conf
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d 
$RPM_BUILD_ROOT{%{_sysconfdir}/%{name},/etc/{rc.d/init.d,sysconfig,NetworkManager/dispatcher.d}}
 \
-       $RPM_BUILD_ROOT{%{_sbindir},%{cachedir},%{rundir}}
+       $RPM_BUILD_ROOT{%{_sbindir},%{systemdtmpfilesdir},%{cachedir},%{rundir}}
 
 cp -p %{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
 install -p %{name} $RPM_BUILD_ROOT%{_sbindir}
 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
 install -p %{SOURCE3} 
$RPM_BUILD_ROOT/etc/NetworkManager/dispatcher.d/50-%{name}
+cp -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
 touch $RPM_BUILD_ROOT%{cachedir}/%{name}.cache
 
 %clean
@@ -132,9 +134,10 @@ fi
 %dir %{_sysconfdir}/%{name}
 # switch to %attr(640,root,ddclient) when this gets resolution: 
https://sourceforge.net/p/ddclient/bugs/77/
 %attr(600,ddclient,root) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/%{name}/%{name}.conf
-%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) 
/etc/sysconfig/ddclient
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) 
/etc/sysconfig/%{name}
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
 %attr(755,root,root) /etc/NetworkManager/dispatcher.d/50-%{name}
+%{systemdtmpfilesdir}/%{name}.conf
 
 %dir %attr(770,root,ddclient) %{cachedir}
 %ghost %attr(600,ddclient,ddclient) %ghost %{cachedir}/%{name}.cache
diff --git a/ddclient-tmpfiles.conf b/ddclient-tmpfiles.conf
new file mode 100644
index 0000000..56a9edc
--- /dev/null
+++ b/ddclient-tmpfiles.conf
@@ -0,0 +1 @@
+d /var/run/ddclient 0770 root ddclient -
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ddclient.git/commitdiff/91cda60246362580eb17efdb7ad7e0c6c434307c

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to