1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 maintainer = Michael Tremer <michael.tremer@ipfire.org>
11 groups = Base Build System/Base
13 license = Public Domain
14 summary = The basic directory layout for a Linux system.
17 The filesystem package is one of the basic packages that is installed
18 on a Linux system. Filesystem contains the basic directory layout
19 for a Linux operating system, including the correct permissions for
27 # Pakfire supports python scriptlets since
30 pakfire-builder >= 0.9.22
64 usr/share/{aclocal,dict,doc,empty,info,mime-info,misc} \
65 usr/share/man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p} \
72 usr/local/share/man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x} \
73 usr/local/share/info \
81 var/spool/{mail,lpd} \
89 [ "%{lib}" = "lib" ] || ln -snf usr/%{lib} %{lib}
91 ln -snf ../var/tmp usr/tmp
92 ln -snf spool/mail var/mail
93 ln -snf ../run var/run
94 ln -snf ../run/lock var/lock
96 # Setting correct permissions.
97 chmod 1777 %{BUILDROOT}/{,var/}tmp
98 chown root:mail %{BUILDROOT}/var/spool/mail
99 chmod 775 %{BUILDROOT}/var/spool/mail
102 # XXX not implemented at the moment
103 export QUALITY_AGENT_NO_DIRECTORY_CHECK = yes
104 export QUALITY_AGENT_NO_DIRECTORY_PRUNE = yes
111 # We do not know, if the filesystem package is the first
112 # in the transaction, so we create the symlinks prior to running
114 script pretransin python
115 if not os.path.exists("/usr"):
118 for dir in ("/lib", "/%{lib}", "/sbin", "/bin"):
119 usr_dir = "/usr%s" % dir
121 if not os.path.exists(usr_dir):
127 os.symlink(usr_dir[1:], dir)
131 # Although this package is not noarch, it does not
132 # contain any binary data and thus has no debuginfo package.