]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - filesystem/filesystem.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/ms/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 = 001
8 release = 2
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 bin \
37 boot \
38 dev \
39 etc/pki \
40 etc/skel \
41 etc/sysconfig \
42 home \
43 lib/modules \
44 media \
45 mnt \
46 opt \
47 proc \
48 root \
49 run/lock \
50 sbin \
51 srv \
52 sys \
53 tmp \
54 usr/bin \
55 usr/include \
56 usr/lib \
57 usr/lib/locale \
58 usr/sbin \
59 usr/share/{aclocal,dict,doc,empty,info,mime-info,misc} \
60 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} \
61 usr/src \
62 usr/local/bin \
63 usr/local/etc \
64 usr/local/lib \
65 usr/local/sbin \
66 usr/local/share \
67 usr/local/share/man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x} \
68 usr/local/share/info \
69 usr/local/include \
70 var/empty \
71 var/lib \
72 var/local \
73 var/lock/subsys \
74 var/log \
75 var/nis \
76 var/preserve \
77 var/run \
78 var/spool/{mail,lpd} \
79 var/tmp \
80 var/db \
81 var/cache
82
83 ln -snf ../var/tmp usr/tmp
84 ln -snf spool/mail var/mail
85
86 # Setting correct permissions.
87 chmod 1777 %{BUILDROOT}/{,var/}tmp
88 chown root:mail %{BUILDROOT}/var/spool/mail
89 chmod 775 %{BUILDROOT}/var/spool/mail
90 end
91
92 # XXX not implemented at the moment
93 export QUALITY_AGENT_NO_DIRECTORY_CHECK = yes
94 export QUALITY_AGENT_NO_DIRECTORY_PRUNE = yes
95 end
96
97 packages
98 package %{name}
99 prerequires = setup
100 end
101
102 # Although this package is not noarch, it does not
103 # contain any binary data and thus has no debuginfo package.
104 end