]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/build-essentials/build-essentials.nm
67b5e89aeb15956849d78cf5de029a48640b513b
[people/ms/ipfire-3.x.git] / pkgs / build-essentials / build-essentials.nm
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 = build-essentials
28 PKG_VER = $(DISTRO_VERSION)
29 PKG_REL = 17
30 PKG_EPOCH = 1
31 PKG_ARCH = noarch
32
33 PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
34 PKG_GROUPS = Development/Tools
35 PKG_URL = http://www.ipfire.org
36 PKG_LICENSE = GPL
37 PKG_SUMMARY = Elementary scripts for the build system.
38
39 PKG_BUILD_DEPS =
40 PKG_DEPS += bash bzip2 coreutils diffutils file findutils gawk \
41 grep gzip make patch pkgconfig sed setup system-release tar which xz
42
43 define PKG_DESCRIPTION
44 This package contains elementary scripts for the pakfire build system.
45 endef
46
47 STAGE_PREPARE = # Nothing to do here
48 STAGE_BUILD = # Nothing to do here
49
50 define STAGE_INSTALL
51 # Install the quality-agent and buildsystem header files.
52 -mkdir -pv $(BUILDROOT)/usr/{,s}bin
53 -mkdir -pv $(BUILDROOT)/usr/lib/buildsystem{,-tools}
54 -mkdir -pv $(BUILDROOT)/usr/lib/quality-agent
55
56 cp -vf $(DIR_SOURCE)/buildsystem/* $(BUILDROOT)/usr/lib/buildsystem
57 cp -vf $(DIR_SOURCE)/buildsystem-tools/* $(BUILDROOT)/usr/lib/buildsystem-tools
58
59 cp -vf $(DIR_SOURCE)/quality-agent/quality-agent $(BUILDROOT)/usr/sbin/
60 cp -vrf $(DIR_SOURCE)/quality-agent/quality-agent.d/* \
61 $(BUILDROOT)/usr/lib/quality-agent/
62
63 -mkdir -pv $(BUILDROOT)/etc/profile.d
64 cp -vf $(DIR_SOURCE)/buildsystem.sh $(BUILDROOT)/etc/profile.d/
65
66 # Create symlink to chroot-shell
67 ln -svf ../lib/buildsystem-tools/chroot-shell \
68 $(BUILDROOT)/usr/bin/chroot-shell
69 endef