filesystem-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. Summary: The basic directory layout for a Linux system.
  2. Summary(ja): Linux システム用の基本ディレクトリ配置
  3. Name: filesystem
  4. Version: 2.4
  5. Release: 1%{?_dist_release}
  6. License: Public Domain
  7. Group: System Environment/Base
  8. Buildroot: %{_tmppath}/%{name}-%{version}-root
  9. Prereq: setup
  10. BuildArchitectures: noarch
  11. %description
  12. The filesystem package is one of the basic packages that is installed on
  13. a Vine Linux system. Filesystem contains the basic directory layout
  14. for a Linux operating system, including the correct permissions for the
  15. directories.
  16. %prep
  17. %install
  18. rm -rf $RPM_BUILD_ROOT
  19. mkdir $RPM_BUILD_ROOT
  20. cd $RPM_BUILD_ROOT
  21. mkdir -p mnt/{floppy,cdrom} \
  22. bin boot \
  23. etc/{X11/{applnk,sysconfig,serverconfig,starthere},opt,xinetd.d,skel,sysconfig,pki,fonts/conf.d} \
  24. home lib/modules {lib,lib64}/tls media mnt opt proc root sbin selinux srv sys tmp initrd\
  25. usr/{bin,etc,games,include,{lib,lib64}/{games,gcc-lib,tls,X11},lib/{games,gcc-lib,locale,X11},libexec,local/{bin,etc,games,lib,lib64,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/{applications,desktop-directories,doc,dict,empty,games,gnome,icons,info,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x},mime-info,misc,omf,pixmaps,themes,xsessions},src} \
  26. var/{empty,lib/{games,misc,rpm},state/misc,local,lock/subsys,log,nis,preserve,run,spool/{mail,lpd},tmp,db,cache,opt,games,yp}
  27. ln -snf ../var/tmp usr/tmp
  28. ln -snf spool/mail var/mail
  29. %clean
  30. rm -rf $RPM_BUILD_ROOT
  31. %files
  32. %defattr(0755,root,root)
  33. %dir /
  34. /bin
  35. /boot
  36. /etc
  37. /home
  38. /lib
  39. /lib64
  40. /media
  41. %dir /mnt
  42. %ghost %config(missingok) %verify(not size md5 mode user link rdev group mtime) /mnt/cdrom
  43. %ghost %config(missingok) %verify(not size md5 mode user link rdev group mtime) /mnt/floppy
  44. %dir /opt
  45. %attr(555,root,root) /proc
  46. %attr(750,root,root) /root
  47. /sbin
  48. /selinux
  49. /srv
  50. /sys
  51. /initrd
  52. %attr(1777,root,root) /tmp
  53. %dir /usr
  54. /usr/[^s]*
  55. /usr/sbin
  56. %dir /usr/share
  57. /usr/share/applications
  58. /usr/share/desktop-directories
  59. /usr/share/doc
  60. /usr/share/dict
  61. %attr(555,root,root) %dir /usr/share/empty
  62. /usr/share/games
  63. /usr/share/gnome
  64. /usr/share/icons
  65. /usr/share/info
  66. /usr/share/man
  67. /usr/share/mime-info
  68. /usr/share/misc
  69. /usr/share/omf
  70. /usr/share/pixmaps
  71. /usr/share/themes
  72. /usr/share/xsessions
  73. /usr/src
  74. %dir /var
  75. /var/db
  76. /var/lib
  77. /var/local
  78. %dir %attr(0775,root,lock) /var/lock
  79. %attr(755,root,root) /var/lock/subsys
  80. /var/cache
  81. /var/empty
  82. /var/log
  83. /var/mail
  84. /var/nis
  85. /var/opt
  86. /var/preserve
  87. /var/run
  88. %dir /var/spool
  89. %attr(755,root,root) /var/spool/lpd
  90. %attr(775,root,mail) /var/spool/mail
  91. %attr(1777,root,root) /var/tmp
  92. /var/yp
  93. %dir /var/state
  94. /var/state/misc
  95. %changelog
  96. * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4-1
  97. - new versioning policy
  98. * Sun Jan 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4-0vl1
  99. - remove /usr/X11R6 heirarchy
  100. - remove /usr/{lib,bin}/X11 symlinks
  101. - add /usr/{lib,bin}/X11 as direcotries
  102. * Wed Mar 22 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3-0vl1
  103. - add lib64 directory
  104. - use License: instead of Copyright:
  105. * Fri Jun 10 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1
  106. - update to current directory layout.
  107. - remove old style directory (/usr/doc ...)
  108. - add /sys and ...
  109. * Fri Mar 29 2002 Jun Nishii <jun@vinelinux.org> 1.3.5-1vl2
  110. - added /initrd
  111. * Mon Aug 28 1999 Preston Brown <pbrown@redhat.com>
  112. - added /opt, /var/state, /var/cache for FHS compliance (#3966)
  113. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  114. - auto rebuild in the new build environment (release 4)
  115. * Sun Jan 17 1999 Jeff Johnson <jbj@redhat.com>
  116. - don't carry X11R6.1 as directory on sparc.
  117. - /var/tmp/build root (#811)
  118. * Wed Jan 13 1999 Preston Brown <pbrown@redhat.com>
  119. - font directory didn't belong, which I previously misunderstood. removed.
  120. * Fri Nov 13 1998 Preston Brown <pbrown@redhat.com>
  121. - /usr/share/fonts/default added.
  122. * Fri Oct 9 1998 Bill Nottingham <notting@redhat.com>
  123. - put /mnt/cdrom back in
  124. * Wed Oct 7 1998 Bill Nottingham <notting@redhat.com>
  125. - Changed /root to 0750
  126. * Wed Aug 05 1998 Erik Troan <ewt@redhat.com>
  127. - added /var/db
  128. - set attributes in the spec file; don't depend on the ones in the cpio
  129. archive
  130. - use a tarball instead of a cpioball
  131. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  132. - translations modified for de, fr, tr
  133. * Tue Sep 09 1997 Erik Troan <ewt@redhat.com>
  134. - made a noarch package
  135. * Wed Jul 09 1997 Erik Troan <ewt@redhat.com>
  136. - added /
  137. * Wed Apr 16 1997 Erik Troan <ewt@redhat.com>
  138. - Changed /proc to 555
  139. - Removed /var/spool/mqueue (which is owned by sendmail)