- #656682 - using tmpfiles.d
This commit is contained in:
parent
67399105d3
commit
8ebac0c7b1
1
radvd-tmpfs.conf
Normal file
1
radvd-tmpfs.conf
Normal file
@ -0,0 +1 @@
|
||||
d /var/run/radvd 0755 radvd radvd
|
12
radvd.spec
12
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 <jskala@redhat.com> - 1.6-4
|
||||
- #656682 - using tmpfiles.d
|
||||
|
||||
* Wed Dec 01 2010 Jiri Skala <jskala@redhat.com> - 1.6-3
|
||||
- fixes #656682 - using %ghost on files in /var/run
|
||||
- added necessary buildrequres flex-static
|
||||
|
Loading…
Reference in New Issue
Block a user