filesystem-vl.spec 5.0 KB

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