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