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/
13 BuildRequires: textutils
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _locmandir /usr/local/man
21 %define _xmandir /usr/X11R6/man
22 # directory for "privilege separation" chroot
23 %define _privsepdir /usr/share/empty
24 # directory for *.idl files (for CORBA implementations)
25 %define _idldir /usr/share/idl
28 This package contains the basic directory layout for a Linux system,
29 including the proper permissions for the directories. This layout
30 conforms to the Filesystem Hierarchy Standard (FHS) 2.2.
33 Dieses Paket enthält die grundlegende Verzeichnisstruktur eines
34 Linux-Systems, einschließlich der entsprechenden Zugriffsrechte. Diese
35 Struktur entspricht dem Filesystem Hierarchy Standard (FHS) 2.2.
38 Ce package contient l'arborescence type pour système Linux y compris
39 les permissions adéquates pour les répertoires. Cette arborescence est
40 conforme au standard \"Filesystem Hierarchy Standard\" (FHS) 2.2.
43 Pakiet ten zawiera informacje o podstawowej strukturze katalogów
44 systemu i praw dostêpu do nich. Struktura katalogów jest zgodna z FHS
48 Bu paket GNU makro iþleme dilini içerir. Mantýksal olarak
49 ayrýþtýrýlabilen metin dosyalarý yazýmý için yararlýdýr.
54 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT/{bin,boot,dev,etc,home/{users,services},opt,sys} \
57 $RPM_BUILD_ROOT%{_sysconfdir}/{X11,opt,security} \
58 $RPM_BUILD_ROOT/lib/{modules,security} \
59 $RPM_BUILD_ROOT/{mnt/{cdrom,floppy},proc,root,sbin,tmp} \
60 $RPM_BUILD_ROOT%{_prefix}/{bin,games,include/security,lib,sbin,share,src/examples} \
61 $RPM_BUILD_ROOT%{_datadir}/{applications,dict,doc,games,info,misc,tmac} \
62 $RPM_BUILD_ROOT%{_libdir}/games \
63 $RPM_BUILD_ROOT%{_prefix}/local/{bin,games,include,lib,sbin,share/{doc,info},src} \
64 $RPM_BUILD_ROOT/var/{lock/subsys,log,mail,run,spool} \
65 $RPM_BUILD_ROOT/var/{cache,crash,db,games,lib/misc,local,opt,tmp} \
66 $RPM_BUILD_ROOT%{_idldir} \
67 $RPM_BUILD_ROOT%{_fontsdir}/Type1/{afm,pfm} \
68 $RPM_BUILD_ROOT%{_fontsdir}/TTF \
69 $RPM_BUILD_ROOT%{_fontsdir}/misc \
70 $RPM_BUILD_ROOT%{_privsepdir} \
71 $RPM_BUILD_ROOT/usr/X11R6/share
73 for manp in man{1,2,3,4,5,6,7,8} ; do
74 install -d $RPM_BUILD_ROOT%{_mandir}/${manp}
75 install -d $RPM_BUILD_ROOT%{_locmandir}/${manp}
76 install -d $RPM_BUILD_ROOT%{_xmandir}/${manp}
77 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
78 install -d $RPM_BUILD_ROOT%{_mandir}/${mloc}/${manp}
80 for mloc in da fi fr hu it ja ko pl sk ; do
81 install -d $RPM_BUILD_ROOT%{_xmandir}/${mloc}/${manp}
84 install -d $RPM_BUILD_ROOT%{_mandir}/man{n,l}
85 install -d $RPM_BUILD_ROOT%{_mandir}/pl/mann
90 # %{_rpmfilename} is not expanded, so use
91 # %{name}-%{version}-%{release}.%{buildarch}.rpm
92 RPMFILE=%{name}-%{version}-%{release}.%{buildarch}.rpm
93 TMPFILE=%{name}-%{version}.tmp$$
94 find . | sed -e 's|^\.||g' -e 's|^$||g' | sort | grep -v $TMPFILE > $TMPFILE
96 # find finds also '.', so use option -B for diff
97 if rpm -qpl %{_rpmdir}/$RPMFILE | grep -v '^/$' | sort | diff -uB $TMPFILE - ; then
98 rm -rf $RPM_BUILD_ROOT
100 echo -e "\nNot so good, some directories are not included in package\n"
105 %defattr(644,root,root,755)
111 %dir %{_sysconfdir}/X11
112 %dir %{_sysconfdir}/opt
113 %attr(751,root,root) %dir /etc/security
116 %attr(751,root,root) /home/services
120 %attr(555,root,proc) %verify(not group) /proc
121 %attr(700,root,root) /root
124 %attr(1777,root,root) /tmp
131 %dir %{_prefix}/share
132 %{_datadir}/applications
142 %lang(bg) %{_mandir}/bg
143 %lang(cs) %{_mandir}/cs
144 %lang(da) %{_mandir}/da
145 %lang(de) %{_mandir}/de
146 %lang(el) %{_mandir}/el
147 %lang(es) %{_mandir}/es
148 %lang(fi) %{_mandir}/fi
149 %lang(fr) %{_mandir}/fr
150 %lang(gl) %{_mandir}/gl
151 %lang(hr) %{_mandir}/hr
152 %lang(hu) %{_mandir}/hu
153 %lang(id) %{_mandir}/id
154 %lang(it) %{_mandir}/it
155 %lang(ja) %{_mandir}/ja
156 %lang(ko) %{_mandir}/ko
157 %lang(nl) %{_mandir}/nl
158 %lang(pl) %{_mandir}/pl
159 %lang(pt) %{_mandir}/pt
160 %lang(pt_BR) %{_mandir}/pt_BR
161 %lang(ro) %{_mandir}/ro
162 %lang(ru) %{_mandir}/ru
163 %lang(sl) %{_mandir}/sl
164 %lang(sk) %{_mandir}/sk
165 %lang(sv) %{_mandir}/sv
169 %dir %{_prefix}/local
171 %{_prefix}/local/games
172 %{_prefix}/local/include
174 %{_prefix}/local/sbin
175 %dir %{_prefix}/local/share
176 %{_prefix}/local/share/doc
177 %{_prefix}/local/share/info
183 %lang(da) %{_xmandir}/da
184 %lang(fi) %{_xmandir}/fi
185 %lang(fr) %{_xmandir}/fr
186 %lang(hu) %{_xmandir}/hu
187 %lang(it) %{_xmandir}/it
188 %lang(ja) %{_xmandir}/ja
189 %lang(ko) %{_xmandir}/ko
190 %lang(pl) %{_xmandir}/pl
191 %lang(sk) %{_xmandir}/sk
192 %dir /usr/X11R6/share
202 %attr(1771,root,uucp) %dir /var/lock
203 %attr(700,root,root) %dir /var/lock/subsys
204 %attr(751,root,root) /var/log
205 %attr(775,root,mail) /var/mail
209 %attr(1777,root,root) %dir /var/tmp