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