From 8ebac0c7b1cf1ebef9300ce6e6f392728dc3604a Mon Sep 17 00:00:00 2001 From: Jiri Skala Date: Thu, 9 Dec 2010 07:58:29 +0100 Subject: [PATCH] - #656682 - using tmpfiles.d --- radvd-tmpfs.conf | 1 + radvd.spec | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 radvd-tmpfs.conf diff --git a/radvd-tmpfs.conf b/radvd-tmpfs.conf new file mode 100644 index 0000000..590652c --- /dev/null +++ b/radvd-tmpfs.conf @@ -0,0 +1 @@ +d /var/run/radvd 0755 radvd radvd diff --git a/radvd.spec b/radvd.spec index c8a05e4..c4719a3 100644 --- a/radvd.spec +++ b/radvd.spec @@ -5,13 +5,14 @@ Summary: A Router Advertisement daemon Name: radvd Version: 1.6 -Release: 3%{?dist} +Release: 4%{?dist} # The code includes the advertising clause, so it's GPL-incompatible License: BSD with advertising Group: System Environment/Daemons URL: http://www.litech.org/radvd/ Source: http://www.litech.org/radvd/dist/%{name}-%{version}.tar.gz Source1: radvd.init +Source2: radvd-tmpfs.conf Requires(postun): chkconfig, /usr/sbin/userdel, initscripts Requires(preun): chkconfig, initscripts Requires(post): chkconfig @@ -56,6 +57,9 @@ install -m 644 redhat/radvd.conf.empty $RPM_BUILD_ROOT%{_sysconfdir}/radvd.conf install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{initdir}/radvd install -m 644 redhat/radvd.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/radvd +install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d +install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/radvd.conf + %clean [ $RPM_BUILD_ROOT != "/" ] && rm -rf $RPM_BUILD_ROOT @@ -84,14 +88,18 @@ exit 0 %doc COPYRIGHT README CHANGES INTRO.html TODO %config(noreplace) %{_sysconfdir}/radvd.conf %config(noreplace) %{_sysconfdir}/sysconfig/radvd +%config(noreplace) %{_sysconfdir}/tmpfiles.d/radvd.conf %{initdir}/radvd -%dir %attr(-,radvd,radvd) %ghost %{_localstatedir}/run/radvd/ +%dir %attr(-,radvd,radvd) %{_localstatedir}/run/radvd/ %doc radvd.conf.example %{_mandir}/*/* %{_sbindir}/radvd %{_sbindir}/radvdump %changelog +* Wed Dec 01 2010 Jiri Skala - 1.6-4 +- #656682 - using tmpfiles.d + * Wed Dec 01 2010 Jiri Skala - 1.6-3 - fixes #656682 - using %ghost on files in /var/run - added necessary buildrequres flex-static