[packages/puppet] setup tmpfiles.d for puppet

glen glen at pld-linux.org
Wed May 1 14:02:07 CEST 2013


commit 228f295240bb08dac483bc375beb53709b48c2b2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed May 1 15:01:51 2013 +0300

    setup tmpfiles.d for puppet

 puppet.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/puppet.spec b/puppet.spec
index c23c280..68d7375 100644
--- a/puppet.spec
+++ b/puppet.spec
@@ -113,6 +113,10 @@ cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 chmod 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/ext/regexp_nodes/regexp_nodes.rb
 chmod 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/ext/puppet-load.rb
 
+install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir}
+echo "D /var/run/%{name} 0755 %{name} %{name} -" > \
+    $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -157,6 +161,7 @@ fi
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/puppet
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/puppet.conf
 %attr(754,root,root) /etc/rc.d/init.d/puppet
+%{systemdtmpfilesdir}/puppet.conf
 
 %files server
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/puppet.git/commitdiff/228f295240bb08dac483bc375beb53709b48c2b2



More information about the pld-cvs-commit mailing list