migrate /var/run to a symlink of /run [release 2.2-19mamba;Sun Mar 17 2019]
This commit is contained in:
parent
6413264346
commit
e7a0ff685a
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: filesystem
|
Name: filesystem
|
||||||
Version: 2.2
|
Version: 2.2
|
||||||
Release: 18mamba
|
Release: 19mamba
|
||||||
Summary: The basic directory layout for a Linux system
|
Summary: The basic directory layout for a Linux system
|
||||||
Group: System/Configuration
|
Group: System/Configuration
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -39,8 +39,8 @@ install -d %{buildroot}/usr/local/games
|
|||||||
#ln -s ../share/man %{buildroot}/usr/local/man
|
#ln -s ../share/man %{buildroot}/usr/local/man
|
||||||
install -d %{buildroot}/usr/local/man
|
install -d %{buildroot}/usr/local/man
|
||||||
|
|
||||||
install -d %{buildroot}/var/{lock,log,mail,run,spool}
|
install -d %{buildroot}/var/{lock,log,mail,spool}
|
||||||
install -d %{buildroot}/var/{tmp,opt,cache,%_lib/misc,local}
|
install -d %{buildroot}/var/{tmp,opt,cache,lib/misc,local}
|
||||||
install -d %{buildroot}/opt/{bin,doc,include,info}
|
install -d %{buildroot}/opt/{bin,doc,include,info}
|
||||||
install -d %{buildroot}/opt/{%_lib,man/man{1,2,3,4,5,6,7,8}}
|
install -d %{buildroot}/opt/{%_lib,man/man{1,2,3,4,5,6,7,8}}
|
||||||
install -d %{buildroot}/var/lock/subsys
|
install -d %{buildroot}/var/lock/subsys
|
||||||
@ -52,6 +52,7 @@ install -d %{buildroot}/sys
|
|||||||
|
|
||||||
ln -s ../var/tmp %{buildroot}/usr
|
ln -s ../var/tmp %{buildroot}/usr
|
||||||
ln -s ../mail %{buildroot}/var/spool/mail
|
ln -s ../mail %{buildroot}/var/spool/mail
|
||||||
|
ln -s ../run %{buildroot}/var/run
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||||
@ -61,6 +62,16 @@ ln -s ../mail %{buildroot}/var/spool/mail
|
|||||||
#%pre
|
#%pre
|
||||||
#[ -L /usr/local/man ] && rm -f /usr/local/man || :
|
#[ -L /usr/local/man ] && rm -f /usr/local/man || :
|
||||||
|
|
||||||
|
%pre
|
||||||
|
[ -L /var/run ] || {
|
||||||
|
mv /var/run /var/run.rpmold
|
||||||
|
for f in /var/run.rpmold/*; do
|
||||||
|
b=`basename $f`
|
||||||
|
[ -e /run/$b ] || mv $f /run/
|
||||||
|
done
|
||||||
|
}
|
||||||
|
:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%attr(0755,root,root) %dir /
|
%attr(0755,root,root) %dir /
|
||||||
@ -125,8 +136,10 @@ ln -s ../mail %{buildroot}/var/spool/mail
|
|||||||
|
|
||||||
%dir /var
|
%dir /var
|
||||||
%dir /var/cache
|
%dir /var/cache
|
||||||
%dir /var/%_lib/misc
|
%dir /var/lib
|
||||||
|
%dir /var/lib/misc
|
||||||
%dir /var/local
|
%dir /var/local
|
||||||
|
%dir /var/lock
|
||||||
%attr(0755,root,root) /var/lock/subsys
|
%attr(0755,root,root) /var/lock/subsys
|
||||||
%dir /var/log
|
%dir /var/log
|
||||||
%dir /var/mail
|
%dir /var/mail
|
||||||
@ -142,11 +155,15 @@ ln -s ../mail %{buildroot}/var/spool/mail
|
|||||||
%dir /opt/include
|
%dir /opt/include
|
||||||
%dir /opt/info
|
%dir /opt/info
|
||||||
%dir /opt/%_lib
|
%dir /opt/%_lib
|
||||||
|
%dir /opt/man
|
||||||
/opt/man/man*
|
/opt/man/man*
|
||||||
|
|
||||||
/usr/tmp
|
/usr/tmp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Mar 17 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2-19mamba
|
||||||
|
- migrate /var/run to a symlink of /run
|
||||||
|
|
||||||
* Tue Dec 11 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2-18mamba
|
* Tue Dec 11 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2-18mamba
|
||||||
- own root dir with 0755 permissions
|
- own root dir with 0755 permissions
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user