Summary: Basic FHS 2.2 filesystem layout Summary(de): Grundlegende Dateisystemstruktur Summary(fr): Arborescence de base du système de fichiers Summary(pl): Podstawowy uk³ad katalogów systemu Linux zgodny z FHS 2.2 Summary(tr): Temel dosya sistemi yapısı Name: FHS Version: 2.2 Release: 12 License: GPL Group: Base URL: http://www.pathname.com/fhs/ BuildRequires: grep BuildRequires: textutils PreReq: setup Provides: filesystem Obsoletes: filesystem BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _locmandir /usr/local/man %define _xmandir /usr/X11R6/man # directory for "privilege separation" chroot %define _privsepdir /usr/share/empty # directory for *.idl files (for CORBA implementations) %define _idldir /usr/share/idl %description This package contains the basic directory layout for a Linux system, including the proper permissions for the directories. This layout conforms to the Filesystem Hierarchy Standard (FHS) 2.2. %description -l de Dieses Paket enthält die grundlegende Verzeichnisstruktur eines Linux-Systems, einschließlich der entsprechenden Zugriffsrechte. Diese Struktur entspricht dem Filesystem Hierarchy Standard (FHS) 2.2. %description -l fr Ce package contient l'arborescence type pour système Linux y compris les permissions adéquates pour les répertoires. Cette arborescence est conforme au standard \"Filesystem Hierarchy Standard\" (FHS) 2.2. %description -l pl Pakiet ten zawiera informacje o podstawowej strukturze katalogów systemu i praw dostêpu do nich. Struktura katalogów jest zgodna z FHS 2.2. %description -l tr Bu paket GNU makro işleme dilini içerir. Mantıksal olarak ayrıştırılabilen metin dosyaları yazımı için yararlıdır. %prep %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/{bin,boot,dev,etc,home/{users,services},opt,sys} \ $RPM_BUILD_ROOT%{_sysconfdir}/{X11,opt,security} \ $RPM_BUILD_ROOT/lib/{modules,security} \ $RPM_BUILD_ROOT/{mnt/{cdrom,floppy},proc,root,sbin,tmp} \ $RPM_BUILD_ROOT%{_prefix}/{bin,games,include/security,lib,sbin,share,src/examples} \ $RPM_BUILD_ROOT%{_datadir}/{applications,dict,doc,games,info,misc,tmac} \ $RPM_BUILD_ROOT%{_libdir}/games \ $RPM_BUILD_ROOT%{_prefix}/local/{bin,games,include,lib,sbin,share/{doc,info},src} \ $RPM_BUILD_ROOT/var/{lock/subsys,log,mail,run,spool} \ $RPM_BUILD_ROOT/var/{cache,crash,db,games,lib/misc,local,opt,tmp} \ $RPM_BUILD_ROOT%{_idldir} \ $RPM_BUILD_ROOT%{_fontsdir}/Type1/{afm,pfm} \ $RPM_BUILD_ROOT%{_fontsdir}/TTF \ $RPM_BUILD_ROOT%{_fontsdir}/misc \ $RPM_BUILD_ROOT%{_privsepdir} \ $RPM_BUILD_ROOT/usr/X11R6/share for manp in man{1,2,3,4,5,6,7,8} ; do install -d $RPM_BUILD_ROOT%{_mandir}/${manp} install -d $RPM_BUILD_ROOT%{_locmandir}/${manp} install -d $RPM_BUILD_ROOT%{_xmandir}/${manp} 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 install -d $RPM_BUILD_ROOT%{_mandir}/${mloc}/${manp} done for mloc in da fi fr hu it ja ko pl sk ; do install -d $RPM_BUILD_ROOT%{_xmandir}/${mloc}/${manp} done done install -d $RPM_BUILD_ROOT%{_mandir}/man{n,l} install -d $RPM_BUILD_ROOT%{_mandir}/pl/mann %clean cd $RPM_BUILD_ROOT # %{_rpmfilename} is not expanded, so use # %{name}-%{version}-%{release}.%{buildarch}.rpm RPMFILE=%{name}-%{version}-%{release}.%{buildarch}.rpm TMPFILE=%{name}-%{version}.tmp$$ find . | sed -e 's|^\.||g' -e 's|^$||g' | sort | grep -v $TMPFILE > $TMPFILE # find finds also '.', so use option -B for diff if rpm -qpl %{_rpmdir}/$RPMFILE | grep -v '^/$' | sort | diff -uB $TMPFILE - ; then rm -rf $RPM_BUILD_ROOT else echo -e "\nNot so good, some directories are not included in package\n" exit 1; fi %files %defattr(644,root,root,755) %dir / /bin /boot /dev %dir /etc %dir %{_sysconfdir}/X11 %dir %{_sysconfdir}/opt %attr(751,root,root) %dir /etc/security %dir /home /home/users %attr(751,root,root) /home/services /lib /mnt /opt %attr(555,root,proc) %verify(not group) /proc %attr(700,root,root) /root %dir /sbin %dir /sys %attr(1777,root,root) /tmp %dir %{_prefix} %{_prefix}/bin %{_prefix}/games %{_prefix}/include %{_prefix}/lib %{_prefix}/sbin %dir %{_prefix}/share %{_datadir}/applications %{_datadir}/dict %{_datadir}/doc %{_privsepdir} %{_fontsdir} %{_idldir} %{_datadir}/games %{_datadir}/info %dir %{_mandir} %dir %{_mandir}/man* %lang(bg) %{_mandir}/bg %lang(cs) %{_mandir}/cs %lang(da) %{_mandir}/da %lang(de) %{_mandir}/de %lang(el) %{_mandir}/el %lang(es) %{_mandir}/es %lang(fi) %{_mandir}/fi %lang(fr) %{_mandir}/fr %lang(gl) %{_mandir}/gl %lang(hr) %{_mandir}/hr %lang(hu) %{_mandir}/hu %lang(id) %{_mandir}/id %lang(it) %{_mandir}/it %lang(ja) %{_mandir}/ja %lang(ko) %{_mandir}/ko %lang(nl) %{_mandir}/nl %lang(pl) %{_mandir}/pl %lang(pt) %{_mandir}/pt %lang(pt_BR) %{_mandir}/pt_BR %lang(ro) %{_mandir}/ro %lang(ru) %{_mandir}/ru %lang(sl) %{_mandir}/sl %lang(sk) %{_mandir}/sk %lang(sv) %{_mandir}/sv %{_datadir}/misc %{_datadir}/tmac %{_prefix}/src %dir %{_prefix}/local %{_prefix}/local/bin %{_prefix}/local/games %{_prefix}/local/include %{_prefix}/local/lib %{_prefix}/local/sbin %dir %{_prefix}/local/share %{_prefix}/local/share/doc %{_prefix}/local/share/info %{_locmandir} %{_prefix}/local/src %dir /usr/X11R6 %dir %{_xmandir} %{_xmandir}/man* %lang(da) %{_xmandir}/da %lang(fi) %{_xmandir}/fi %lang(fr) %{_xmandir}/fr %lang(hu) %{_xmandir}/hu %lang(it) %{_xmandir}/it %lang(ja) %{_xmandir}/ja %lang(ko) %{_xmandir}/ko %lang(pl) %{_xmandir}/pl %lang(sk) %{_xmandir}/sk %dir /usr/X11R6/share %dir /var /var/cache %dir /var/crash %dir /var/db %dir /var/games %dir /var/lib %dir /var/lib/misc %dir /var/local %attr(1771,root,uucp) %dir /var/lock %attr(700,root,root) %dir /var/lock/subsys %attr(751,root,root) /var/log %attr(775,root,mail) /var/mail %dir /var/opt %dir /var/run %dir /var/spool %attr(1777,root,root) %dir /var/tmp