]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - pkgs/initscripts/initscripts.nm
avahi: Update to 0.6.30.
[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
4c29606d
MT
28PKG_EPOCH = 1
29PKG_VER = 2.99
24d597e5 30PKG_REL = 5
ccbe9281
MT
31
32PKG_MAINTAINER =
b42a752b 33PKG_GROUPS = Base System/Boot
ccbe9281
MT
34PKG_URL =
35PKG_LICENSE = GPLv3+
36PKG_SUMMARY = The set of scripts that initalize the system.
37
fdd45d97 38PKG_BUILD_DEPS+= glib2-devel popt-devel
087700b1 39PKG_DEPS += bash coreutils e2fsprogs grep iproute2 module-init-tools \
27dc0ff7 40 procps sed system-release udev util-linux
ccbe9281
MT
41
42define PKG_DESCRIPTION
43 The initscripts package contains the basic system scripts used to boot \
44 your system and shut the system down cleanly.
45endef
46
47DIR_APP = $(DIR_SOURCE)
48
49define STAGE_PREPARE_CMDS
50 cd $(DIR_APP)/src && make clean
51endef
52
53define STAGE_BUILD
54 cd $(DIR_APP)/src && make $(PARALLELISMFLAGS)
55endef
56
fdd45d97
MT
57define STAGE_TEST
58 cd $(DIR_APP)/src && make test
59endef
60
ccbe9281
MT
61define 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 78endef