]>
Commit | Line | Data |
---|---|---|
803dc34f | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
803dc34f MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = filesystem |
f43b253b | 7 | version = 002 |
a8a8fc66 | 8 | release = 5 |
803dc34f | 9 | |
802ea3af MT |
10 | maintainer = Michael Tremer <michael.tremer@ipfire.org> |
11 | groups = Base Build System/Base | |
12 | url = | |
13 | license = Public Domain | |
14 | summary = The basic directory layout for a Linux system. | |
803dc34f | 15 | |
802ea3af | 16 | description |
803dc34f MT |
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 | |
20 | the directories. | |
802ea3af MT |
21 | end |
22 | ||
23 | # No tarball. | |
24 | sources = | |
803dc34f | 25 | |
802ea3af MT |
26 | build |
27 | DIR_APP = %{DIR_SRC} | |
803dc34f | 28 | |
802ea3af MT |
29 | build |
30 | : # Nothing to do | |
31 | end | |
803dc34f | 32 | |
802ea3af MT |
33 | install |
34 | cd %{BUILDROOT} | |
35 | mkdir -pv \ | |
802ea3af MT |
36 | boot \ |
37 | dev \ | |
38 | etc/pki \ | |
39 | etc/skel \ | |
40 | etc/sysconfig \ | |
41 | home \ | |
802ea3af MT |
42 | media \ |
43 | mnt \ | |
44 | opt \ | |
45 | proc \ | |
46 | root \ | |
802ea3af MT |
47 | srv \ |
48 | sys \ | |
802ea3af MT |
49 | usr/bin \ |
50 | usr/include \ | |
51 | usr/lib \ | |
b50ea81b | 52 | usr/%{lib} \ |
802ea3af | 53 | usr/lib/locale \ |
f43b253b | 54 | usr/lib/modules \ |
802ea3af MT |
55 | usr/sbin \ |
56 | usr/share/{aclocal,dict,doc,empty,info,mime-info,misc} \ | |
57 | 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} \ | |
58 | usr/src \ | |
802ea3af MT |
59 | var/empty \ |
60 | var/lib \ | |
802ea3af | 61 | var/log \ |
a8a8fc66 SS |
62 | var/mail \ |
63 | var/spool \ | |
802ea3af MT |
64 | var/tmp \ |
65 | var/db \ | |
66 | var/cache | |
803dc34f | 67 | |
f43b253b MT |
68 | ln -snf usr/bin bin |
69 | ln -snf usr/sbin sbin | |
70 | ln -snf usr/lib lib | |
71 | [ "%{lib}" = "lib" ] || ln -snf usr/%{lib} %{lib} | |
72 | ||
802ea3af | 73 | # Setting correct permissions. |
a8a8fc66 SS |
74 | chmod -v 755 %{BUILDROOT}/var/tmp |
75 | chown -v root:mail %{BUILDROOT}/var/mail | |
76 | chmod -v 755 %{BUILDROOT}/var/mail | |
77 | chmod -v 700 %{BUILDROOT}/root | |
802ea3af | 78 | end |
802ea3af | 79 | end |
803dc34f | 80 | |
802ea3af MT |
81 | packages |
82 | package %{name} | |
83 | prerequires = setup | |
84 | end | |
1f9bc2f0 MT |
85 | |
86 | # Although this package is not noarch, it does not | |
87 | # contain any binary data and thus has no debuginfo package. | |
802ea3af | 88 | end |