1 Summary: Basic FHS 2.3 filesystem layout
2 Summary(de): Grundlegende Dateisystemstruktur
3 Summary(fr): Arborescence de base du système de fichiers
4 Summary(pl): Podstawowy uk³ad katalogów systemu Linux zgodny z FHS 2.3
5 Summary(tr): Temel dosya sistemi yapýsý
11 URL: http://www.pathname.com/fhs/
12 PreReq: setup >= 2.4.5-4
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _locmandir /usr/local/man
18 %define _xmandir /usr/X11R6/man
19 # directory for "privilege separation" chroot
20 %define _privsepdir /usr/share/empty
21 # directory for *.idl files (for CORBA implementations)
22 %define _idldir /usr/share/idl
25 This package contains the basic directory layout for a Linux system,
26 including the proper permissions for the directories. This layout
27 conforms to the Filesystem Hierarchy Standard (FHS) 2.3.
30 Dieses Paket enthält die grundlegende Verzeichnisstruktur eines
31 Linux-Systems, einschließlich der entsprechenden Zugriffsrechte. Diese
32 Struktur entspricht dem Filesystem Hierarchy Standard (FHS) 2.3.
35 Ce package contient l'arborescence type pour système Linux y compris
36 les permissions adéquates pour les répertoires. Cette arborescence est
37 conforme au standard \"Filesystem Hierarchy Standard\" (FHS) 2.3.
40 Pakiet ten zawiera informacje o podstawowej strukturze katalogów
41 systemu i praw dostêpu do nich. Struktura katalogów jest zgodna z FHS
45 Bu paket GNU makro iþleme dilini içerir. Mantýksal olarak
46 ayrýþtýrýlabilen metin dosyalarý yazýmý için yararlýdýr.
51 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT/{bin,boot,dev,etc,home/{users,services},opt,selinux,srv,sys} \
54 $RPM_BUILD_ROOT%{_sysconfdir}/{X11,opt,security} \
55 $RPM_BUILD_ROOT/lib/{modules,security} \
56 $RPM_BUILD_ROOT/{mnt,media/{cdrom,floppy},proc,root,sbin,tmp} \
57 $RPM_BUILD_ROOT%{_prefix}/{bin,games,include/security,lib,sbin,share,src/examples} \
58 $RPM_BUILD_ROOT%{_datadir}/{applications,dict,doc,games,info,misc,tmac} \
59 $RPM_BUILD_ROOT%{_libdir}/games \
60 $RPM_BUILD_ROOT%{_prefix}/local/{bin,games,include,lib,sbin,share/{doc,info},src} \
61 $RPM_BUILD_ROOT/var/{lock/subsys,log,mail,run,spool} \
62 $RPM_BUILD_ROOT/var/{cache,crash,db,games,lib/misc,local,opt,tmp} \
63 $RPM_BUILD_ROOT%{_idldir} \
64 $RPM_BUILD_ROOT%{_fontsdir}/Type1/{afm,pfm} \
65 $RPM_BUILD_ROOT%{_fontsdir}/TTF \
66 $RPM_BUILD_ROOT%{_fontsdir}/misc \
67 $RPM_BUILD_ROOT%{_privsepdir} \
68 $RPM_BUILD_ROOT/usr/X11R6/share
70 %ifarch ppc64 sparc64 x86_64
71 install -d $RPM_BUILD_ROOT{/lib64,%{_prefix}/lib64,%{_prefix}/local/lib64}
74 for manp in man{1,2,3,4,5,6,7,8} ; do
75 install -d $RPM_BUILD_ROOT%{_mandir}/${manp}
76 install -d $RPM_BUILD_ROOT%{_locmandir}/${manp}
77 install -d $RPM_BUILD_ROOT%{_xmandir}/${manp}
78 for mloc in bg cs da de el es fi fr gl hr hu id it ja ko nl pl pt pt_BR ro ru sl sk sv ; do
79 install -d $RPM_BUILD_ROOT%{_mandir}/${mloc}/${manp}
81 for mloc in da fi fr hu it ja ko pl sk ; do
82 install -d $RPM_BUILD_ROOT%{_xmandir}/${mloc}/${manp}
85 install -d $RPM_BUILD_ROOT%{_mandir}/man{n,l}
86 install -d $RPM_BUILD_ROOT%{_mandir}/pl/mann
91 # %{_rpmfilename} is not expanded, so use
92 # %{name}-%{version}-%{release}.%{buildarch}.rpm
93 RPMFILE=%{name}-%{version}-%{release}.%{_target_cpu}.rpm
94 TMPFILE=%{name}-%{version}.tmp$$
95 find . | sed -e 's|^\.||g' -e 's|^$||g' | sort | grep -v $TMPFILE > $TMPFILE
97 # find finds also '.', so use option -B for diff
98 if rpm -qpl %{_rpmdir}/$RPMFILE | grep -v '^/$' | sort | diff -uB $TMPFILE - ; then
99 rm -rf $RPM_BUILD_ROOT
101 echo -e "\nNot so good, some directories are not included in package\n"
106 %defattr(644,root,root,755)
112 %dir %{_sysconfdir}/X11
113 %dir %{_sysconfdir}/opt
114 %attr(751,root,root) %dir /etc/security
117 %attr(751,root,root) /home/services
119 %attr(775,root,disk) %dir /media
120 %attr(775,root,disk) /media/floppy
121 %attr(775,root,disk) /media/cdrom
124 %attr(555,root,proc) %verify(not group) /proc
125 %attr(700,root,root) /root
129 %attr(751,root,root) /srv
130 %attr(1777,root,root) /tmp
137 %dir %{_prefix}/share
138 %{_datadir}/applications
148 %lang(bg) %{_mandir}/bg
149 %lang(cs) %{_mandir}/cs
150 %lang(da) %{_mandir}/da
151 %lang(de) %{_mandir}/de
152 %lang(el) %{_mandir}/el
153 %lang(es) %{_mandir}/es
154 %lang(fi) %{_mandir}/fi
155 %lang(fr) %{_mandir}/fr
156 %lang(gl) %{_mandir}/gl
157 %lang(hr) %{_mandir}/hr
158 %lang(hu) %{_mandir}/hu
159 %lang(id) %{_mandir}/id
160 %lang(it) %{_mandir}/it
161 %lang(ja) %{_mandir}/ja
162 %lang(ko) %{_mandir}/ko
163 %lang(nl) %{_mandir}/nl
164 %lang(pl) %{_mandir}/pl
165 %lang(pt) %{_mandir}/pt
166 %lang(pt_BR) %{_mandir}/pt_BR
167 %lang(ro) %{_mandir}/ro
168 %lang(ru) %{_mandir}/ru
169 %lang(sl) %{_mandir}/sl
170 %lang(sk) %{_mandir}/sk
171 %lang(sv) %{_mandir}/sv
175 %dir %{_prefix}/local
177 %{_prefix}/local/games
178 %{_prefix}/local/include
180 %{_prefix}/local/sbin
181 %dir %{_prefix}/local/share
182 %{_prefix}/local/share/doc
183 %{_prefix}/local/share/info
189 %lang(da) %{_xmandir}/da
190 %lang(fi) %{_xmandir}/fi
191 %lang(fr) %{_xmandir}/fr
192 %lang(hu) %{_xmandir}/hu
193 %lang(it) %{_xmandir}/it
194 %lang(ja) %{_xmandir}/ja
195 %lang(ko) %{_xmandir}/ko
196 %lang(pl) %{_xmandir}/pl
197 %lang(sk) %{_xmandir}/sk
198 %dir /usr/X11R6/share
208 %attr(1771,root,uucp) %dir /var/lock
209 %attr(700,root,root) %dir /var/lock/subsys
210 %attr(751,root,root) /var/log
211 %attr(2775,root,mail) /var/mail
215 %attr(1777,root,root) %dir /var/tmp
217 %ifarch ppc64 sparc64 x86_64
220 %{_prefix}/local/lib64