]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - pkgs/initscripts/initscripts.nm
dracut: util-linux-ng -> util-linux.
[people/stevee/ipfire-3.x.git] / pkgs / initscripts / initscripts.nm
CommitLineData
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
25include $(PKGROOT)/Include
26
27PKG_NAME = initscripts
b35b810e 28PKG_VER = $(DISTRO_VERSION)
36322716 29PKG_REL = 1
ccbe9281
MT
30
31PKG_MAINTAINER =
b42a752b 32PKG_GROUPS = Base System/Boot
ccbe9281
MT
33PKG_URL =
34PKG_LICENSE = GPLv3+
35PKG_SUMMARY = The set of scripts that initalize the system.
36
087700b1
MT
37PKG_DEPS += bash coreutils e2fsprogs grep iproute2 module-init-tools \
38 procps sed system-release udev util-linux-ng
ccbe9281
MT
39
40define PKG_DESCRIPTION
41 The initscripts package contains the basic system scripts used to boot \
42 your system and shut the system down cleanly.
43endef
44
45DIR_APP = $(DIR_SOURCE)
46
47define STAGE_PREPARE_CMDS
48 cd $(DIR_APP)/src && make clean
49endef
50
51define STAGE_BUILD
52 cd $(DIR_APP)/src && make $(PARALLELISMFLAGS)
53endef
54
55define 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
68endef