do /var/lock/subsys directory systemd way via tmpfiles.d conf file(#656586)

This commit is contained in:
Ondřej Vašík 2011-02-25 17:04:51 +01:00
parent 774d14ddae
commit 67fe1a2c1e
2 changed files with 22 additions and 5 deletions

1
filesystem.conf Normal file
View File

@ -0,0 +1 @@
d /var/lock/subsys 0755 root root

View File

@ -1,7 +1,7 @@
Summary: The basic directory layout for a Linux system Summary: The basic directory layout for a Linux system
Name: filesystem Name: filesystem
Version: 2.4.37 Version: 2.4.38
Release: 2%{?dist} Release: 1%{?dist}
License: Public Domain License: Public Domain
URL: https://fedorahosted.org/filesystem URL: https://fedorahosted.org/filesystem
Group: System Environment/Base Group: System Environment/Base
@ -9,6 +9,7 @@ Group: System Environment/Base
Source1: https://fedorahosted.org/filesystem/browser/lang-exceptions Source1: https://fedorahosted.org/filesystem/browser/lang-exceptions
Source2: iso_639.sed Source2: iso_639.sed
Source3: iso_3166.sed Source3: iso_3166.sed
Source4: filesystem.conf
Requires(Pre): setup >= 2.5.4-1 Requires(Pre): setup >= 2.5.4-1
BuildRequires: iso-codes BuildRequires: iso-codes
@ -28,6 +29,8 @@ rm -rf %{buildroot}
mkdir %{buildroot} mkdir %{buildroot}
install -p -c -m755 %SOURCE2 %{buildroot}/iso_639.sed install -p -c -m755 %SOURCE2 %{buildroot}/iso_639.sed
install -p -c -m755 %SOURCE3 %{buildroot}/iso_3166.sed install -p -c -m755 %SOURCE3 %{buildroot}/iso_3166.sed
mkdir -p %{buildroot}/etc/tmpfiles.d
install -p -c -m644 %SOURCE4 %{buildroot}/etc/tmpfiles.d/filesystem.conf
cd %{buildroot} cd %{buildroot}
@ -35,7 +38,7 @@ mkdir -p bin boot dev \
etc/{X11/{applnk,fontpath.d},xdg/autostart,opt,pm/{config.d,power.d,sleep.d},xinetd.d,skel,sysconfig,pki} \ etc/{X11/{applnk,fontpath.d},xdg/autostart,opt,pm/{config.d,power.d,sleep.d},xinetd.d,skel,sysconfig,pki} \
home lib/modules %{_lib}/tls media mnt opt proc root sbin selinux srv sys tmp \ home lib/modules %{_lib}/tls media mnt opt proc root sbin selinux srv sys tmp \
usr/{bin,etc,games,include,%{_lib}/{games,sse2,tls,X11,pm-utils/{module.d,power.d,sleep.d}},lib/{games,locale,sse2},libexec,local/{bin,etc,games,lib,%{_lib},sbin,src,share/{applications,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x},info},libexec,include,},sbin,share/{aclocal,applications,augeas/lenses,backgrounds,desktop-directories,dict,doc,empty,games,ghostscript/conf.d,gnome,icons,idl,info,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p},mime-info,misc,omf,pixmaps,sounds,themes,xsessions,X11},src,src/kernels,src/debug} \ usr/{bin,etc,games,include,%{_lib}/{games,sse2,tls,X11,pm-utils/{module.d,power.d,sleep.d}},lib/{games,locale,sse2},libexec,local/{bin,etc,games,lib,%{_lib},sbin,src,share/{applications,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x},info},libexec,include,},sbin,share/{aclocal,applications,augeas/lenses,backgrounds,desktop-directories,dict,doc,empty,games,ghostscript/conf.d,gnome,icons,idl,info,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p},mime-info,misc,omf,pixmaps,sounds,themes,xsessions,X11},src,src/kernels,src/debug} \
var/{empty,lib/{games,misc},local,lock/subsys,log,nis,preserve,run,spool/{mail,lpd},tmp,db,cache,opt,games,yp} var/{empty,lib/{games,misc},local,lock,log,nis,preserve,run,spool/{mail,lpd},tmp,db,cache,opt,games,yp}
ln -snf ../var/tmp usr/tmp ln -snf ../var/tmp usr/tmp
ln -snf spool/mail var/mail ln -snf spool/mail var/mail
@ -104,7 +107,15 @@ rm -rf %{buildroot}
%attr(555,root,root) /bin %attr(555,root,root) /bin
%attr(555,root,root) /boot %attr(555,root,root) /boot
/dev /dev
/etc %dir /etc
/etc/X11
/etc/xdg
/etc/opt
/etc/pm
/etc/xinetd.d
/etc/skel
/etc/sysconfig
/etc/pki
/home /home
%attr(555,root,root) /lib %attr(555,root,root) /lib
%ifarch x86_64 ppc ppc64 sparc sparc64 s390 s390x %ifarch x86_64 ppc ppc64 sparc sparc64 s390 s390x
@ -165,7 +176,7 @@ rm -rf %{buildroot}
/var/lib /var/lib
/var/local /var/local
%dir %attr(0755,root,root) /var/lock %dir %attr(0755,root,root) /var/lock
%attr(755,root,root) /var/lock/subsys %ghost /var/lock/subsys
/var/cache /var/cache
/var/empty /var/empty
/var/log /var/log
@ -179,8 +190,13 @@ rm -rf %{buildroot}
%attr(775,root,mail) /var/spool/mail %attr(775,root,mail) /var/spool/mail
%attr(1777,root,root) /var/tmp %attr(1777,root,root) /var/tmp
/var/yp /var/yp
%config /etc/tmpfiles.d/filesystem.conf
%changelog %changelog
* Fri Feb 25 2011 Ondrej Vasik <ovasik@redhat.com> 2.4.38-1
- do /var/lock/subsys directory systemd way via tmpfiles.d conf file
(#656586)
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild