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