]>
Commit | Line | Data |
---|---|---|
ccbe9281 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 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = initscripts | |
b35b810e | 28 | PKG_VER = $(DISTRO_VERSION) |
36322716 | 29 | PKG_REL = 1 |
ccbe9281 MT |
30 | |
31 | PKG_MAINTAINER = | |
b42a752b | 32 | PKG_GROUPS = Base System/Boot |
ccbe9281 MT |
33 | PKG_URL = |
34 | PKG_LICENSE = GPLv3+ | |
35 | PKG_SUMMARY = The set of scripts that initalize the system. | |
36 | ||
087700b1 MT |
37 | PKG_DEPS += bash coreutils e2fsprogs grep iproute2 module-init-tools \ |
38 | procps sed system-release udev util-linux-ng | |
ccbe9281 MT |
39 | |
40 | define PKG_DESCRIPTION | |
41 | The initscripts package contains the basic system scripts used to boot \ | |
42 | your system and shut the system down cleanly. | |
43 | endef | |
44 | ||
45 | DIR_APP = $(DIR_SOURCE) | |
46 | ||
47 | define STAGE_PREPARE_CMDS | |
48 | cd $(DIR_APP)/src && make clean | |
49 | endef | |
50 | ||
51 | define STAGE_BUILD | |
52 | cd $(DIR_APP)/src && make $(PARALLELISMFLAGS) | |
53 | endef | |
54 | ||
55 | define STAGE_INSTALL | |
56 | cd $(DIR_APP)/src && make install clean DESTDIR=$(BUILDROOT) | |
57 | ||
58 | -mkdir -pv $(BUILDROOT)/etc/{init,sysconfig} | |
59 | ||
60 | cp -vf $(DIR_SOURCE)/functions $(BUILDROOT)/etc/init/ | |
61 | ||
62 | for i in $(DIR_SOURCE)/sysconfig/*; do \ | |
63 | install -v -m 644 $$i $(BUILDROOT)/etc/sysconfig/; \ | |
64 | done | |
65 | chmod -v 755 $(BUILDROOT)/etc/sysconfig/rc.local | |
66 | ||
67 | cp -vf $(DIR_SOURCE)/sysctl.conf $(BUILDROOT)/etc | |
68 | endef |