]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
filesystem: Make filesystem structure FHS compliant
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 20 Mar 2023 17:47:48 +0000 (18:47 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Mar 2023 18:34:02 +0000 (18:34 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
filesystem/filesystem.nm

index f94eedbac3729b5688fa852d1e167f9eb7e4a6c6..f270b8616bf0601b6e53765d644520673b6a7199 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = filesystem
 version    = 002
-release    = 4
+release    = 5
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = Base Build System/Base
@@ -44,10 +44,8 @@ build
                        opt \
                        proc \
                        root \
-                       run/lock \
                        srv \
                        sys \
-                       tmp \
                        usr/bin \
                        usr/include \
                        usr/lib \
@@ -60,11 +58,9 @@ build
                        usr/src \
                        var/empty \
                        var/lib \
-                       var/local \
                        var/log \
-                       var/nis \
-                       var/preserve \
-                       var/spool/{mail,lpd} \
+                       var/mail \
+                       var/spool \
                        var/tmp \
                        var/db \
                        var/cache
@@ -74,20 +70,12 @@ build
                ln -snf usr/lib lib
                [ "%{lib}" = "lib" ] || ln -snf usr/%{lib} %{lib}
 
-               ln -snf ../var/tmp usr/tmp
-               ln -snf spool/mail var/mail
-               ln -snf ../run var/run
-               ln -snf ../run/lock var/lock
-
                # Setting correct permissions.
-               chmod 1777 %{BUILDROOT}/{,var/}tmp
-               chown root:mail %{BUILDROOT}/var/spool/mail
-               chmod 775 %{BUILDROOT}/var/spool/mail
+               chmod -v 755 %{BUILDROOT}/var/tmp
+               chown -v root:mail %{BUILDROOT}/var/mail
+               chmod -v 755 %{BUILDROOT}/var/mail
+               chmod -v 700 %{BUILDROOT}/root
        end
-
-       # XXX not implemented at the moment
-       export QUALITY_AGENT_NO_DIRECTORY_CHECK = yes
-       export QUALITY_AGENT_NO_DIRECTORY_PRUNE = yes
 end
 
 packages