]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pkgs/filesystem/filesystem.nm
avahi: Update to 0.6.30.
[people/ms/ipfire-3.x.git] / pkgs / filesystem / filesystem.nm
CommitLineData
803dc34f
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include $(PKGROOT)/Include
26
27PKG_NAME = filesystem
28PKG_VER = 001
3ef6720f 29PKG_REL = 2
803dc34f
MT
30
31PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
32PKG_GROUPS = Base System/Base
33PKG_URL =
34PKG_LICENSE = Public Domain
35PKG_SUMMARY = The basic directory layout for a Linux system.
36
3ef6720f 37PKG_BUILD_DEPS = # No compiler needed.
803dc34f
MT
38PKG_PREREQUIRES += setup
39
40define PKG_DESCRIPTION
41 The filesystem package is one of the basic packages that is installed
42 on a Linux system. Filesystem contains the basic directory layout
43 for a Linux operating system, including the correct permissions for
44 the directories.
45endef
46
47DIR_APP = $(DIR_SRC)
48
49QUALITY_AGENT_NO_DIRECTORY_CHECK = yes
50QUALITY_AGENT_NO_DIRECTORY_PRUNE = yes
51
52STAGE_BUILD = # Nothing to do
53
54define STAGE_INSTALL
55 cd $(BUILDROOT) && mkdir -pv \
56 bin \
57 boot \
58 dev \
59 etc/pki \
60 etc/skel \
61 etc/sysconfig \
62 home \
63 lib/modules \
64 media \
65 mnt \
66 opt \
67 proc \
68 root \
69 run/lock \
70 sbin \
71 srv \
72 sys \
73 tmp \
74 usr/bin \
75 usr/include \
76 usr/lib \
77 usr/lib/locale \
78 usr/sbin \
79 usr/share/{aclocal,dict,doc,empty,info,mime-info,misc} \
80 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} \
81 usr/src \
82 usr/local/bin \
83 usr/local/etc \
84 usr/local/lib \
85 usr/local/sbin \
86 usr/local/share \
87 usr/local/share/man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x} \
88 usr/local/share/info \
89 usr/local/include \
90 var/empty \
91 var/lib \
92 var/local \
93 var/lock/subsys \
94 var/log \
95 var/nis \
96 var/preserve \
97 var/run \
98 var/spool/{mail,lpd} \
99 var/tmp \
100 var/db \
101 var/cache
102
103 cd $(BUILDROOT) && ln -snf ../var/tmp usr/tmp
104 cd $(BUILDROOT) && ln -snf spool/mail var/mail
105
106 # Setting correct permissions.
107 chmod 1777 $(BUILDROOT)/{,var/}tmp
108 chown root:mail $(BUILDROOT)/var/spool/mail
109 chmod 775 $(BUILDROOT)/var/spool/mail
110endef