]> git.ipfire.org Git - ipfire-3.x.git/blob - filesystem/filesystem.nm
json-c: Update to version 0.17-20230812
[ipfire-3.x.git] / filesystem / filesystem.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = filesystem
7 version = 002
8 release = 5
9
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.
15
16 description
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.
21 end
22
23 # No tarball.
24 sources =
25
26 build
27 DIR_APP = %{DIR_SRC}
28
29 build
30 : # Nothing to do
31 end
32
33 install
34 cd %{BUILDROOT}
35 mkdir -pv \
36 boot \
37 dev \
38 etc/pki \
39 etc/skel \
40 etc/sysconfig \
41 home \
42 media \
43 mnt \
44 opt \
45 proc \
46 root \
47 srv \
48 sys \
49 usr/bin \
50 usr/include \
51 usr/lib \
52 usr/%{lib} \
53 usr/lib/locale \
54 usr/lib/modules \
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 \
59 var/empty \
60 var/lib \
61 var/log \
62 var/mail \
63 var/spool \
64 var/tmp \
65 var/db \
66 var/cache
67
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
73 # Setting correct permissions.
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
78 end
79 end
80
81 packages
82 package %{name}
83 prerequires = setup
84 end
85
86 # Although this package is not noarch, it does not
87 # contain any binary data and thus has no debuginfo package.
88 end