]>
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 | |
4c29606d MT |
28 | PKG_EPOCH = 1 |
29 | PKG_VER = 2.99 | |
24d597e5 | 30 | PKG_REL = 5 |
ccbe9281 MT |
31 | |
32 | PKG_MAINTAINER = | |
b42a752b | 33 | PKG_GROUPS = Base System/Boot |
ccbe9281 MT |
34 | PKG_URL = |
35 | PKG_LICENSE = GPLv3+ | |
36 | PKG_SUMMARY = The set of scripts that initalize the system. | |
37 | ||
fdd45d97 | 38 | PKG_BUILD_DEPS+= glib2-devel popt-devel |
087700b1 | 39 | PKG_DEPS += bash coreutils e2fsprogs grep iproute2 module-init-tools \ |
27dc0ff7 | 40 | procps sed system-release udev util-linux |
ccbe9281 MT |
41 | |
42 | define PKG_DESCRIPTION | |
43 | The initscripts package contains the basic system scripts used to boot \ | |
44 | your system and shut the system down cleanly. | |
45 | endef | |
46 | ||
47 | DIR_APP = $(DIR_SOURCE) | |
48 | ||
49 | define STAGE_PREPARE_CMDS | |
50 | cd $(DIR_APP)/src && make clean | |
51 | endef | |
52 | ||
53 | define STAGE_BUILD | |
54 | cd $(DIR_APP)/src && make $(PARALLELISMFLAGS) | |
55 | endef | |
56 | ||
fdd45d97 MT |
57 | define STAGE_TEST |
58 | cd $(DIR_APP)/src && make test | |
59 | endef | |
60 | ||
ccbe9281 MT |
61 | define STAGE_INSTALL |
62 | cd $(DIR_APP)/src && make install clean DESTDIR=$(BUILDROOT) | |
63 | ||
64 | -mkdir -pv $(BUILDROOT)/etc/{init,sysconfig} | |
65 | ||
66 | cp -vf $(DIR_SOURCE)/functions $(BUILDROOT)/etc/init/ | |
67 | ||
68 | for i in $(DIR_SOURCE)/sysconfig/*; do \ | |
69 | install -v -m 644 $$i $(BUILDROOT)/etc/sysconfig/; \ | |
70 | done | |
71 | chmod -v 755 $(BUILDROOT)/etc/sysconfig/rc.local | |
72 | ||
73 | cp -vf $(DIR_SOURCE)/sysctl.conf $(BUILDROOT)/etc | |
4c29606d MT |
74 | |
75 | # Install udev rules | |
76 | -mkdir -pv $(BUILDROOT)/lib/udev/rules.d/ | |
77 | cp -vf $(DIR_SOURCE)/udev/* $(BUILDROOT)/lib/udev/rules.d/ | |
ccbe9281 | 78 | endef |