source: trunk/baselayout/Makefile.kmk@ 2562

Last change on this file since 2562 was 2550, checked in by bird, 20 years ago

baselayout hacking.

File size: 2.7 KB
Line 
1# $Id: $
2## @file
3#
4# LIBC Unix Compartment Baselayout
5#
6# Copyright (c) 2005 knut st. osmundsen <bird@anduin.net>
7#
8#
9# This file is part of InnoTek LIBC.
10#
11# InnoTek LIBC is free software; you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License as published
13# by the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# InnoTek LIBC is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU Lesser General Public License for more details.
20#
21# You should have received a copy of the GNU Lesser General Public License
22# along with InnoTek LIBC; if not, write to the Free Software
23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24#
25#
26
27DEPTH = ..
28include $(PATH_KBUILD)/header.kmk
29
30PROGRAMS = \
31 pwd_mkdb
32INSTALLS = baselayout
33
34#
35# Utility for creating the password database
36#
37pwd_mkdb_TEMPLATE = usr.sbin
38pwd_mkdb_SOURCES = \
39 src/pwd_mkdb/pwd_mkdb.c
40
41#
42# The baselayout
43#
44baselayout_DIRS = \
45 bin \
46 dev \
47 etc \
48 etc/conf.d \
49 etc/cron.daily \
50 etc/cron.hourly \
51 etc/cron.monthly \
52 etc/cron.weekly \
53 etc/env.d \
54 etc/opt \
55 home \
56 lib \
57 opt \
58 root \
59 sbin \
60 tmp \
61 usr \
62 usr/bin \
63 usr/include \
64 usr/include/asm \
65 usr/include/linux \
66 usr/lib \
67 usr/local \
68 usr/local/bin \
69 usr/local/games \
70 usr/local/include \
71 usr/local/lib \
72 usr/local/sbin \
73 usr/local/share \
74 usr/local/share/doc \
75 usr/local/share/man \
76 usr/local/src \
77 usr/portage \
78 usr/sbin \
79 usr/share/doc \
80 usr/share/info \
81 usr/share/man \
82 usr/share/misc \
83 usr/src \
84 var \
85 var/db/pkg \
86 var/lib/misc \
87 var/lock \
88 var/lock/subsys \
89 var/log/news \
90 var/run \
91 var/spool \
92 var/state \
93 var/tmp \
94
95# For some dirs, we specify mode, uid and/or gid.
96root_MODE = 0700
97tmp_MODE = 1777
98var/tmp_MODE = 1777
99var/lock_MODE = 0775
100var/lock_UID = root
101var/lock_GID = uucp
102
103# A few files too.
104baselayout_SOURCES = \
105 etc/services=>etc/services \
106 etc/protocols=>etc/protocols \
107 etc/master.passwd=>etc/master.passwd \
108
109# A few symlink (symlink=>target)
110baselayout_SYMLINKS = \
111 usr/tmp=>../var/tmp \
112 usr/doc=>share/doc \
113 usr/info=>share/info \
114 usr/man=>share/man \
115 usr/local/doc=>share/doc \
116 usr/local/man=>share/man
117
118# fix this!!!
119baselayout_GOALS = \
120 $(PATH_INS)/etc/pwd.db
121
122
123include $(PATH_KBUILD)/footer.kmk
124
125
126#
127# Rule for creating the password database.
128#
129$(PATH_INS)/etc/pwd.db: $(PATH_INS)/etc/master.passwd
130 $(RM) -f $(PATH_INS)/etc/pwd.db.tmp
131 $(TARGET_pwd_mkdb) -p -d $(dir $@) $^
132
Note: See TracBrowser for help on using the repository browser.