]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/xen/xen.nm
PKG_GROUP -> PKG_GROUPS on all packages.
[people/ms/ipfire-3.x.git] / pkgs / xen / xen.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 = xen
28 PKG_VER = 4.0.1
29 PKG_REL = 1
30
31 PKG_MAINTAINER = Ben Schweikert <ben.schweikert@ipfire.org>
32 PKG_GROUPS = Applications/Virtualization
33 PKG_URL = http://www.xen.org/
34 PKG_LICENSE = GPLv2+
35 PKG_SUMMARY = The Xen tools.
36
37 define PKG_DESCRIPTION
38 The Xen hypervisor, the powerful open source industry standard \
39 for virtualization, offers a powerful, efficient, and secure \
40 feature set for virtualization.
41 endef
42
43 PKG_BUILD_DEPS+= gettext-devel kernel-headers libuuid-devel ncurses-devel \
44 openssl-devel python python-devel sdl-devel xorg-x11-proto-devel \
45 zlib-devel
46
47 PKG_TARBALL = $(THISAPP).tar.gz
48
49 PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs $(PKG_NAME)-hypervisor \
50 $(PKG_NAME)-runtime
51
52 PKG_SUMMARY-$(PKG_NAME)-hypervisor = This package contains the Xen hypervisor
53 PKG_SUMMARY-$(PKG_NAME)-devel = This package contains what's needed to \
54 develop applications which manage Xen virtual machines.
55 PKG_SUMMARY-$(PKG_NAME)-libs = This package contains the libraries needed to \
56 run applications which manage Xen virtual machines
57 PKG_SUMMARY-$(PKG_NAME)-runtime = This package contains the runtime programs \
58 and daemons which form the core Xen userspace environment.
59
60 define PKG_FILES-$(PKG_NAME)-hypervisor
61 /boot/*
62 endef
63
64 define PKG_FILES-$(PKG_NAME)-runtime
65 /usr/bin/*
66 endef
67
68 # libs: Use files from template and add /usr/lib/fs.
69 PKG_FILES-$(PKG_NAME)-libs += /usr/lib/fs
70
71 define QUALITY_AGENT_WHITELIST_EXECSTACK
72 /boot/*
73 endef
74
75 define STAGE_BUILD
76 # Following two lines are disabling HVM. HVM does not work because \
77 # of soem PIE errors we get when we try to build the firmware part \
78 # needed for different architektures.
79 cd $(DIR_APP) && sed -i -e '/^CONFIG_IOEMU := y$$/d' config/*.mk
80 cd $(DIR_APP) && sed -i -e '/SUBDIRS-$$(CONFIG_X86) += firmware/d' tools/Makefile
81
82 cd $(DIR_APP) && make tools xen $(PARALLELISMFLAGS)
83 endef
84
85 define STAGE_INSTALL
86 cd $(DIR_APP) && make install-tools install-xen DESTDIR=$(BUILDROOT)
87 rm -R $(BUILDROOT)/etc/init.d
88 endef