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 BuildRequires: rpmbuild(macros) >= 1.213
13 Requires: setup >= 2.4.6-4
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.3.
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.3.
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.3.
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,initrd,dev,etc,home/{users,services},opt,selinux,srv,sys} \
55 $RPM_BUILD_ROOT%{_sysconfdir}/{X11,certs,opt,security} \
56 $RPM_BUILD_ROOT{/lib/{firmware,modules},/%{_lib}/security} \
57 $RPM_BUILD_ROOT/{mnt,media/{cdrom,floppy},proc,root,sbin,tmp} \
58 $RPM_BUILD_ROOT%{_prefix}/{bin,games,include/security,lib/cgi-bin,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,etc,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}/{100,75}dpi \
66 $RPM_BUILD_ROOT%{_fontsdir}/OTF \
67 $RPM_BUILD_ROOT%{_fontsdir}/Speedo \
68 $RPM_BUILD_ROOT%{_fontsdir}/Type1/{afm,pfm} \
69 $RPM_BUILD_ROOT%{_fontsdir}/TTF \
70 $RPM_BUILD_ROOT%{_fontsdir}/cyrillic \
71 $RPM_BUILD_ROOT%{_fontsdir}/local \
72 $RPM_BUILD_ROOT%{_fontsdir}/misc \
73 $RPM_BUILD_ROOT%{_privsepdir} \
74 $RPM_BUILD_ROOT/usr/X11R6/share
76 %ifarch %{x8664} ppc64 s390x sparc64
77 install -d $RPM_BUILD_ROOT{/lib64,%{_prefix}/lib64,%{_prefix}/local/lib64}
80 for manp in man{1,2,3,4,5,6,7,8} ; do
81 install -d $RPM_BUILD_ROOT%{_mandir}/${manp}
82 install -d $RPM_BUILD_ROOT%{_locmandir}/${manp}
83 install -d $RPM_BUILD_ROOT%{_xmandir}/${manp}
84 for mloc in bg cs da de el es fi fr gl hr hu id it ja ko nl pl pt \
85 pt_BR ro ru sk sl sr sv tr uk zh_CN zh_TW ; do
86 install -d $RPM_BUILD_ROOT%{_mandir}/${mloc}/${manp}
88 for mloc in it ko pl ; do
89 install -d $RPM_BUILD_ROOT%{_xmandir}/${mloc}/${manp}
92 install -d $RPM_BUILD_ROOT%{_mandir}/man{n,l}
93 install -d $RPM_BUILD_ROOT%{_mandir}/pl/mann
95 ln -sf ../man $RPM_BUILD_ROOT/usr/local/share/man
100 # %{_rpmfilename} is not expanded, so use
101 # %{name}-%{version}-%{release}.%{buildarch}.rpm
102 RPMFILE=%{name}-%{version}-%{release}.%{_target_cpu}.rpm
103 TMPFILE=%{name}-%{version}.tmp$$
104 find . | sed -e 's|^\.||g' -e 's|^$||g' | sort | grep -v $TMPFILE > $TMPFILE
106 # find finds also '.', so use option -B for diff
107 if rpm -qpl %{_rpmdir}/$RPMFILE | grep -v '^/$' | sort | diff -uB $TMPFILE - ; then
108 rm -rf $RPM_BUILD_ROOT
110 echo -e "\nNot so good, some directories are not included in package\n"
115 %defattr(644,root,root,755)
122 %dir %{_sysconfdir}/X11
123 %attr(751,root,root) %dir /etc/certs
124 %dir %{_sysconfdir}/opt
125 %attr(751,root,root) %dir /etc/security
128 %attr(751,root,adm) /home/services
130 %attr(775,root,disk) %dir /media
131 %attr(775,root,disk) /media/floppy
132 %attr(775,root,disk) /media/cdrom
135 %attr(555,root,proc) %verify(not group) /proc
136 %attr(700,root,root) /root
140 %attr(751,root,root) /srv
141 %attr(1777,root,root) /tmp
148 %dir %{_prefix}/share
149 %{_datadir}/applications
159 %lang(bg) %{_mandir}/bg
160 %lang(cs) %{_mandir}/cs
161 %lang(da) %{_mandir}/da
162 %lang(de) %{_mandir}/de
163 %lang(el) %{_mandir}/el
164 %lang(es) %{_mandir}/es
165 %lang(fi) %{_mandir}/fi
166 %lang(fr) %{_mandir}/fr
167 %lang(gl) %{_mandir}/gl
168 %lang(hr) %{_mandir}/hr
169 %lang(hu) %{_mandir}/hu
170 %lang(id) %{_mandir}/id
171 %lang(it) %{_mandir}/it
172 %lang(ja) %{_mandir}/ja
173 %lang(ko) %{_mandir}/ko
174 %lang(nl) %{_mandir}/nl
175 %lang(pl) %{_mandir}/pl
176 %lang(pt) %{_mandir}/pt
177 %lang(pt_BR) %{_mandir}/pt_BR
178 %lang(ro) %{_mandir}/ro
179 %lang(ru) %{_mandir}/ru
180 %lang(sl) %{_mandir}/sl
181 %lang(sk) %{_mandir}/sk
182 %lang(sr) %{_mandir}/sr
183 %lang(sv) %{_mandir}/sv
184 %lang(tr) %{_mandir}/tr
185 %lang(uk) %{_mandir}/uk
186 %lang(zh_CN) %{_mandir}/zh_CN
187 %lang(zh_TW) %{_mandir}/zh_TW
190 %dir %{_prefix}/lib/cgi-bin
192 %dir %{_prefix}/local
195 %{_prefix}/local/games
196 %{_prefix}/local/include
198 %{_prefix}/local/sbin
199 %dir %{_prefix}/local/share
200 %{_prefix}/local/share/doc
201 %{_prefix}/local/share/man
202 %{_prefix}/local/share/info
208 %lang(it) %{_xmandir}/it
209 %lang(ko) %{_xmandir}/ko
210 %lang(pl) %{_xmandir}/pl
211 %dir /usr/X11R6/share
221 %attr(1771,root,uucp) %dir /var/lock
222 %attr(700,root,root) %dir /var/lock/subsys
223 %attr(751,root,root) /var/log
224 %attr(2775,root,mail) /var/mail
228 %attr(1777,root,root) %dir /var/tmp
230 %ifarch ppc64 sparc64 x86_64
233 %{_prefix}/local/lib64