filesystem-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. Summary: The basic directory layout for a Linux system.
  2. Summary(ja): Linux システム用の基本ディレクトリ配置
  3. Name: filesystem
  4. Version: 2.6
  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 run 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/{adm,empty,lib/{games,misc,rpm-state},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. /run
  49. %attr(555,root,root) /sbin
  50. /selinux
  51. /srv
  52. /sys
  53. /initrd
  54. %attr(1777,root,root) /tmp
  55. %dir /usr
  56. /usr/[^s]*
  57. /usr/sbin
  58. %dir /usr/share
  59. /usr/share/aclocal
  60. /usr/share/applications
  61. /usr/share/backgrounds
  62. /usr/share/desktop-directories
  63. /usr/share/doc
  64. /usr/share/dict
  65. %attr(555,root,root) %dir /usr/share/empty
  66. /usr/share/games
  67. /usr/share/ghostscript
  68. /usr/share/gnome
  69. /usr/share/icons
  70. /usr/share/idl
  71. /usr/share/info
  72. /usr/share/man
  73. /usr/share/mime-info
  74. /usr/share/misc
  75. /usr/share/omf
  76. /usr/share/pixmaps
  77. /usr/share/themes
  78. /usr/share/xsessions
  79. /usr/share/X11
  80. /usr/src
  81. %dir /var
  82. /var/db
  83. /var/lib
  84. /var/local
  85. %dir %attr(0775,root,lock) /var/lock
  86. /var/lock/subsys
  87. /var/cache
  88. /var/empty
  89. /var/log
  90. /var/mail
  91. /var/nis
  92. /var/opt
  93. /var/preserve
  94. /var/run
  95. %dir /var/spool
  96. %attr(755,root,root) /var/spool/lpd
  97. %attr(775,root,mail) /var/spool/mail
  98. %attr(1777,root,root) /var/tmp
  99. /var/yp
  100. %dir /var/state
  101. /var/state/misc
  102. %changelog
  103. * Tue Sep 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6-1
  104. - remove /var/lib/rpm , add /var/lib/rpm-state
  105. - add /run
  106. * Mon May 30 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5-1
  107. - remove %%ghost from /var/lock*
  108. - remove Prereq
  109. * Wed Apr 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4-2
  110. - build for Vine 6
  111. * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4-1
  112. - new versioning policy
  113. * Sun Jan 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4-0vl1
  114. - remove /usr/X11R6 heirarchy
  115. - remove /usr/{lib,bin}/X11 symlinks
  116. - add /usr/{lib,bin}/X11 as direcotries
  117. * Wed Mar 22 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3-0vl1
  118. - add lib64 directory
  119. - use License: instead of Copyright:
  120. * Fri Jun 10 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1
  121. - update to current directory layout.
  122. - remove old style directory (/usr/doc ...)
  123. - add /sys and ...
  124. * Fri Mar 29 2002 Jun Nishii <jun@vinelinux.org> 1.3.5-1vl2
  125. - added /initrd
  126. * Mon Aug 28 1999 Preston Brown <pbrown@redhat.com>
  127. - added /opt, /var/state, /var/cache for FHS compliance (#3966)
  128. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  129. - auto rebuild in the new build environment (release 4)
  130. * Sun Jan 17 1999 Jeff Johnson <jbj@redhat.com>
  131. - don't carry X11R6.1 as directory on sparc.
  132. - /var/tmp/build root (#811)
  133. * Wed Jan 13 1999 Preston Brown <pbrown@redhat.com>
  134. - font directory didn't belong, which I previously misunderstood. removed.
  135. * Fri Nov 13 1998 Preston Brown <pbrown@redhat.com>
  136. - /usr/share/fonts/default added.
  137. * Fri Oct 9 1998 Bill Nottingham <notting@redhat.com>
  138. - put /mnt/cdrom back in
  139. * Wed Oct 7 1998 Bill Nottingham <notting@redhat.com>
  140. - Changed /root to 0750
  141. * Wed Aug 05 1998 Erik Troan <ewt@redhat.com>
  142. - added /var/db
  143. - set attributes in the spec file; don't depend on the ones in the cpio
  144. archive
  145. - use a tarball instead of a cpioball
  146. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  147. - translations modified for de, fr, tr
  148. * Tue Sep 09 1997 Erik Troan <ewt@redhat.com>
  149. - made a noarch package
  150. * Wed Jul 09 1997 Erik Troan <ewt@redhat.com>
  151. - added /
  152. * Wed Apr 16 1997 Erik Troan <ewt@redhat.com>
  153. - Changed /proc to 555
  154. - Removed /var/spool/mqueue (which is owned by sendmail)