- #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
|
Summary: A Router Advertisement daemon
|
||||||
Name: radvd
|
Name: radvd
|
||||||
Version: 1.6
|
Version: 1.6
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
# The code includes the advertising clause, so it's GPL-incompatible
|
# The code includes the advertising clause, so it's GPL-incompatible
|
||||||
License: BSD with advertising
|
License: BSD with advertising
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://www.litech.org/radvd/
|
URL: http://www.litech.org/radvd/
|
||||||
Source: http://www.litech.org/radvd/dist/%{name}-%{version}.tar.gz
|
Source: http://www.litech.org/radvd/dist/%{name}-%{version}.tar.gz
|
||||||
Source1: radvd.init
|
Source1: radvd.init
|
||||||
|
Source2: radvd-tmpfs.conf
|
||||||
Requires(postun): chkconfig, /usr/sbin/userdel, initscripts
|
Requires(postun): chkconfig, /usr/sbin/userdel, initscripts
|
||||||
Requires(preun): chkconfig, initscripts
|
Requires(preun): chkconfig, initscripts
|
||||||
Requires(post): chkconfig
|
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 755 %{SOURCE1} $RPM_BUILD_ROOT%{initdir}/radvd
|
||||||
install -m 644 redhat/radvd.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/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
|
%clean
|
||||||
[ $RPM_BUILD_ROOT != "/" ] && rm -rf $RPM_BUILD_ROOT
|
[ $RPM_BUILD_ROOT != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
@ -84,14 +88,18 @@ exit 0
|
|||||||
%doc COPYRIGHT README CHANGES INTRO.html TODO
|
%doc COPYRIGHT README CHANGES INTRO.html TODO
|
||||||
%config(noreplace) %{_sysconfdir}/radvd.conf
|
%config(noreplace) %{_sysconfdir}/radvd.conf
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/radvd
|
%config(noreplace) %{_sysconfdir}/sysconfig/radvd
|
||||||
|
%config(noreplace) %{_sysconfdir}/tmpfiles.d/radvd.conf
|
||||||
%{initdir}/radvd
|
%{initdir}/radvd
|
||||||
%dir %attr(-,radvd,radvd) %ghost %{_localstatedir}/run/radvd/
|
%dir %attr(-,radvd,radvd) %{_localstatedir}/run/radvd/
|
||||||
%doc radvd.conf.example
|
%doc radvd.conf.example
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
%{_sbindir}/radvd
|
%{_sbindir}/radvd
|
||||||
%{_sbindir}/radvdump
|
%{_sbindir}/radvdump
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Dec 01 2010 Jiri Skala <jskala@redhat.com> - 1.6-3
|
||||||
- fixes #656682 - using %ghost on files in /var/run
|
- fixes #656682 - using %ghost on files in /var/run
|
||||||
- added necessary buildrequres flex-static
|
- added necessary buildrequres flex-static
|
||||||
|
Loading…
Reference in New Issue
Block a user