- remove group marks for mount points (pointless)
- other groups handled in %post via <lua>
- FHS is now first installed pkg
- rel 25
Changed files:
FHS.spec -> 1.135
# NOTE
# - don't use %{_*dir} macros for paths defined by FHS
# NOTE
# - don't use %{_*dir} macros for paths defined by FHS
+# - do not add any dependencies to this pkg, FHS should be the first package being installed
+# - do not use any other user/group than "root", as then we have to depend on "setup" package.
Summary: Basic FHS 2.3 filesystem layout
Summary(de.UTF-8): Grundlegende Dateisystemstruktur
Summary(fr.UTF-8): Arborescence de base du système de fichiers
Summary: Basic FHS 2.3 filesystem layout
Summary(de.UTF-8): Grundlegende Dateisystemstruktur
Summary(fr.UTF-8): Arborescence de base du système de fichiers
Summary(tr.UTF-8): Temel dosya sistemi yapısı
Name: FHS
Version: 2.3
Summary(tr.UTF-8): Temel dosya sistemi yapısı
Name: FHS
Version: 2.3
License: GPL
Group: Base
URL: http://www.pathname.com/fhs/
BuildRequires: mktemp
BuildRequires: rpmbuild(macros) >= 1.213
License: GPL
Group: Base
URL: http://www.pathname.com/fhs/
BuildRequires: mktemp
BuildRequires: rpmbuild(macros) >= 1.213
-Requires: setup >= 2.4.6-4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# nothing to put there
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# nothing to put there
%define no_install_post_chrpath 1
%define no_install_post_compress_modules 1
%define no_install_post_chrpath 1
%define no_install_post_compress_modules 1
+# we have to use numeric uids/groups. see comment above
+
+%define gid_uucp 14
+%define gid_mail 12
+
%description
This package contains the basic directory layout for a Linux system,
including the proper permissions for the directories. This layout
%description
This package contains the basic directory layout for a Linux system,
including the proper permissions for the directories. This layout
+# XXX: it is 2009, what uucp?! but we use /var/lock/subsys, so change it just to root?
+%post -p <lua>
+posix.chown("/var/mail", 0, %{gid_mail})
+posix.chown("/var/lock", 0, %{gid_uucp})
+
%files
%defattr(644,root,root,755)
%dir /
%files
%defattr(644,root,root,755)
%dir /
%dir /home
%dir /lib
%dir /lib/modules
%dir /home
%dir /lib
%dir /lib/modules
-%attr(775,root,disk) %dir /media
-%attr(775,root,disk) /media/floppy
-%attr(775,root,disk) /media/cdrom
+%attr(775,root,root) %dir /media
+%attr(775,root,root) %verify(not group) /media/floppy
+%attr(775,root,root) %verify(not group) /media/cdrom
-%attr(555,root,proc) %verify(not group) /proc
+%attr(555,root,root) %verify(not group) /proc
%attr(700,root,root) /root
%dir /sbin
%attr(755,root,root) /srv
%attr(700,root,root) /root
%dir /sbin
%attr(755,root,root) /srv
%dir /var/lib
%dir /var/lib/misc
%dir /var/local
%dir /var/lib
%dir /var/lib/misc
%dir /var/local
-%attr(1771,root,uucp) %dir /var/lock
+%attr(1771,root,root) %dir /var/lock
%attr(751,root,root) /var/log
%attr(751,root,root) /var/log
-%attr(2775,root,mail) /var/mail
+%attr(2775,root,root) /var/mail
%dir /var/opt
%dir /var/run
%dir /var/spool
%dir /var/opt
%dir /var/run
%dir /var/spool