From 6a26077d5d5d1a537d6e4a85eeb47aff9e19c4be Mon Sep 17 00:00:00 2001 From: Vaidas Jablonskis Date: Sat, 20 Apr 2013 13:33:09 +0100 Subject: [PATCH] rpm: make sure /run/entrydns is created properly --- dist/fedora/etc/tmpfiles.d/entrydns.conf | 1 + entrydns.spec | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 dist/fedora/etc/tmpfiles.d/entrydns.conf diff --git a/dist/fedora/etc/tmpfiles.d/entrydns.conf b/dist/fedora/etc/tmpfiles.d/entrydns.conf new file mode 100644 index 0000000..076b451 --- /dev/null +++ b/dist/fedora/etc/tmpfiles.d/entrydns.conf @@ -0,0 +1 @@ +d /run/entrydns 0755 entrydns entrydns - diff --git a/entrydns.spec b/entrydns.spec index 1b49d50..df319ec 100644 --- a/entrydns.spec +++ b/entrydns.spec @@ -82,6 +82,7 @@ install -p -d -m 0755 %{buildroot}%{entrydns_root} install -p -d -m 0755 %{buildroot}%{entrydns_root}/log install -p -d -m 0755 %{buildroot}%{entrydns_root}/tmp install -p -d -m 0755 %{buildroot}%{_unitdir} +install -p -d -m 0755 %{buildroot}%{_tmpfilesdir} cp -R app %{buildroot}%{entrydns_root} cp -R config %{buildroot}%{entrydns_root} cp -R db %{buildroot}%{entrydns_root} @@ -97,6 +98,7 @@ cp Rakefile %{buildroot}%{entrydns_root} cp dist/fedora/etc/sysconfig/unicorn-entrydns %{buildroot}%{_sysconfdir}/sysconfig cp dist/fedora/etc/%{name}/unicorn.conf %{buildroot}%{_sysconfdir}/%{name} cp dist/fedora%{_unitdir}/%{entrydns_systemd_unit} %{buildroot}%{_unitdir} +cp dist/fedora/etc/tmpfiles.d/%{name}.conf %{buildroot}%{_tmpfilesdir} %files @@ -119,8 +121,9 @@ cp dist/fedora%{_unitdir}/%{entrydns_systemd_unit} %{buildroot}%{_unitdir} %attr(0644, root, root) %config(noreplace) %{_sysconfdir}/%{name}/unicorn.conf %{_unitdir}/%{entrydns_systemd_unit} %attr(-, %{entrydns_user}, %{entrydns_group}) %{_var}/log/%{name} -#%{_sysconfdir}/%{name} %attr(0755, %{entrydns_user}, %{entrydns_group}) /run/%{name} +%dir /run/%{name} +%{_tmpfilesdir}/%{name}.conf %pre