1 Summary: Basic FHS 2.2 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.2
5 Summary(tr): Temel dosya sistemi yapýsý
11 URL: http://www.pathname.com/fhs/
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _locmandir /usr/local/man
19 %define _xmandir /usr/X11R6/man
20 # directory for "privilege separation" chroot
21 %define _privsepdir /usr/share/empty
22 # directory for *.idl files (for CORBA implementations)
23 %define _idldir /usr/share/idl
26 This package contains the basic directory layout for a Linux system,
27 including the proper permissions for the directories. This layout
28 conforms to the Filesystem Hierarchy Standard (FHS) 2.2.
31 Dieses Paket enthält die grundlegende Verzeichnisstruktur eines
32 Linux-Systems, einschließlich der entsprechenden Zugriffsrechte. Diese
33 Struktur entspricht dem Filesystem Hierarchy Standard (FHS) 2.2.
36 Ce package contient l'arborescence type pour système Linux y compris
37 les permissions adéquates pour les répertoires. Cette arborescence est
38 conforme au standard \"Filesystem Hierarchy Standard\" (FHS) 2.2.
41 Pakiet ten zawiera informacje o podstawowej strukturze katalogów
42 systemu i praw dostêpu do nich. Struktura katalogów jest zgodna z FHS
46 Bu paket GNU makro iþleme dilini içerir. Mantýksal olarak
47 ayrýþtýrýlabilen metin dosyalarý yazýmý için yararlýdýr.
52 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT/{bin,boot,dev,etc,home/{users,services},opt,sys} \
55 $RPM_BUILD_ROOT%{_sysconfdir}/{X11,opt,security} \
56 $RPM_BUILD_ROOT/lib/{modules,security} \
57 $RPM_BUILD_ROOT/{mnt/{cdrom,floppy},proc,root,sbin,tmp} \
58 $RPM_BUILD_ROOT%{_prefix}/{bin,games,include/security,lib,sbin,share,src/examples} \
59 $RPM_BUILD_ROOT%{_datadir}/{applications,dict,doc,games,info,misc,tmac} \
60 $RPM_BUILD_ROOT%{_libdir}/games \
61 $RPM_BUILD_ROOT%{_prefix}/local/{bin,games,include,lib,sbin,share/{doc,info},src} \
62 $RPM_BUILD_ROOT/var/{lock/subsys,log,mail,run,spool} \
63 $RPM_BUILD_ROOT/var/{cache,crash,db,games,lib/misc,local,opt,tmp} \
64 $RPM_BUILD_ROOT%{_idldir} \
65 $RPM_BUILD_ROOT%{_fontsdir}/Type1/{afm,pfm} \
66 $RPM_BUILD_ROOT%{_fontsdir}/TTF \
67 $RPM_BUILD_ROOT%{_fontsdir}/misc \
68 $RPM_BUILD_ROOT%{_privsepdir} \
69 $RPM_BUILD_ROOT/usr/X11R6/share
71 for manp in man{1,2,3,4,5,6,7,8} ; do
72 install -d $RPM_BUILD_ROOT%{_mandir}/${manp}
73 install -d $RPM_BUILD_ROOT%{_locmandir}/${manp}
74 install -d $RPM_BUILD_ROOT%{_xmandir}/${manp}
75 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
76 install -d $RPM_BUILD_ROOT%{_mandir}/${mloc}/${manp}
78 for mloc in da fi fr hu it ja ko pl sk ; do
79 install -d $RPM_BUILD_ROOT%{_xmandir}/${mloc}/${manp}
82 install -d $RPM_BUILD_ROOT%{_mandir}/man{n,l}
83 install -d $RPM_BUILD_ROOT%{_mandir}/pl/mann
88 # %{_rpmfilename} is not expanded, so use
89 # %{name}-%{version}-%{release}.%{buildarch}.rpm
90 RPMFILE=%{name}-%{version}-%{release}.%{buildarch}.rpm
91 TMPFILE=%{name}-%{version}.tmp$$
92 find . | sed -e 's|^\.||g' -e 's|^$||g' | sort | grep -v $TMPFILE > $TMPFILE
94 # find finds also '.', so use option -B for diff
95 if rpm -qpl %{_rpmdir}/$RPMFILE | grep -v '^/$' | sort | diff -uB $TMPFILE - ; then
96 rm -rf $RPM_BUILD_ROOT
98 echo -e "\nNot so good, some directories are not included in package\n"
103 %defattr(644,root,root,755)
109 %dir %{_sysconfdir}/X11
110 %dir %{_sysconfdir}/opt
111 %attr(751,root,root) %dir /etc/security
114 %attr(751,root,root) /home/services
118 %attr(555,root,proc) %verify(not group) /proc
119 %attr(700,root,root) /root
122 %attr(1777,root,root) /tmp
129 %dir %{_prefix}/share
130 %{_datadir}/applications
140 %lang(bg) %{_mandir}/bg
141 %lang(cs) %{_mandir}/cs
142 %lang(da) %{_mandir}/da
143 %lang(de) %{_mandir}/de
144 %lang(el) %{_mandir}/el
145 %lang(es) %{_mandir}/es
146 %lang(fi) %{_mandir}/fi
147 %lang(fr) %{_mandir}/fr
148 %lang(gl) %{_mandir}/gl
149 %lang(hr) %{_mandir}/hr
150 %lang(hu) %{_mandir}/hu
151 %lang(id) %{_mandir}/id
152 %lang(it) %{_mandir}/it
153 %lang(ja) %{_mandir}/ja
154 %lang(ko) %{_mandir}/ko
155 %lang(nl) %{_mandir}/nl
156 %lang(pl) %{_mandir}/pl
157 %lang(pt) %{_mandir}/pt
158 %lang(pt_BR) %{_mandir}/pt_BR
159 %lang(ro) %{_mandir}/ro
160 %lang(ru) %{_mandir}/ru
161 %lang(sl) %{_mandir}/sl
162 %lang(sk) %{_mandir}/sk
163 %lang(sv) %{_mandir}/sv
167 %dir %{_prefix}/local
169 %{_prefix}/local/games
170 %{_prefix}/local/include
172 %{_prefix}/local/sbin
173 %dir %{_prefix}/local/share
174 %{_prefix}/local/share/doc
175 %{_prefix}/local/share/info
181 %lang(da) %{_xmandir}/da
182 %lang(fi) %{_xmandir}/fi
183 %lang(fr) %{_xmandir}/fr
184 %lang(hu) %{_xmandir}/hu
185 %lang(it) %{_xmandir}/it
186 %lang(ja) %{_xmandir}/ja
187 %lang(ko) %{_xmandir}/ko
188 %lang(pl) %{_xmandir}/pl
189 %lang(sk) %{_xmandir}/sk
190 %dir /usr/X11R6/share
200 %attr(1771,root,uucp) %dir /var/lock
201 %attr(700,root,root) %dir /var/lock/subsys
202 %attr(751,root,root) /var/log
203 %attr(2775,root,mail) /var/mail
207 %attr(1777,root,root) %dir /var/tmp