]>
Commit | Line | Data |
---|---|---|
cd1a2927 | 1 | ############################################################################### |
cd1a2927 | 2 | # # |
70df8302 MT |
3 | # IPFire.org - A linux based firewall # |
4 | # Copyright (C) 2007 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
cd1a2927 | 7 | # it under the terms of the GNU General Public License as published by # |
70df8302 | 8 | # the Free Software Foundation, either version 3 of the License, or # |
cd1a2927 MT |
9 | # (at your option) any later version. # |
10 | # # | |
70df8302 | 11 | # This program is distributed in the hope that it will be useful, # |
cd1a2927 MT |
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 # | |
70df8302 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # |
cd1a2927 | 18 | # # |
cd1a2927 MT |
19 | ############################################################################### |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
246556fe | 27 | PKG_NAME = stage3 |
8985a698 | 28 | PKG_VER = LFS |
15679d9f | 29 | |
8985a698 | 30 | THISAPP = $(PKG_NAME)-$(PKG_VER) |
246556fe | 31 | |
6679675b | 32 | OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP) |
cd1a2927 MT |
33 | |
34 | ############################################################################### | |
35 | # Top-level Rules | |
36 | ############################################################################### | |
37 | ||
6679675b | 38 | install : $(OBJECT) |
cd1a2927 | 39 | |
cd1a2927 MT |
40 | download : |
41 | ||
cd1a2927 MT |
42 | ############################################################################### |
43 | # Installation Details | |
44 | ############################################################################### | |
45 | ||
6679675b | 46 | $(OBJECT) : |
cd1a2927 MT |
47 | @$(PREBUILD) |
48 | ||
49 | # Create all directories | |
fd0c0a9f | 50 | for i in auth ca certs crls network/devices; do \ |
b1f969d7 | 51 | mkdir -p $(CONFIG_ROOT)/$$i; \ |
cd1a2927 MT |
52 | done |
53 | ||
54 | # Touch empty files | |
b1f969d7 MT |
55 | for i in auth/users certs/index.txt; do \ |
56 | touch $(CONFIG_ROOT)/$$i; \ | |
cd1a2927 | 57 | done |
b1f969d7 | 58 | |
cd1a2927 | 59 | # Oneliner configfiles |
cd1a2927 | 60 | echo "01" > $(CONFIG_ROOT)/certs/serial |
fd0c0a9f MT |
61 | |
62 | ln -sfv $(CONFIG_ROOT)/network/devices/ /etc/sysconfig/network-devices | |
63 | ||
cd1a2927 MT |
64 | # Configroot permissions |
65 | chown -R nobody:nobody $(CONFIG_ROOT) | |
66 | chown root:root $(CONFIG_ROOT) | |
cd1a2927 MT |
67 | |
68 | @$(POSTBUILD) |