1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
31 PKG_MAINTAINER = Ben Schweikert <ben.schweikert@ipfire.org>
32 PKG_GROUPS = Applications/Virtualization
33 PKG_URL = http://www.xen.org/
35 PKG_SUMMARY = The Xen tools.
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.
43 PKG_BUILD_DEPS+= gettext-devel kernel-headers libuuid-devel ncurses-devel \
44 openssl-devel python python-devel sdl-devel xorg-x11-proto-devel \
47 PKG_TARBALL = $(THISAPP).tar.gz
49 PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs $(PKG_NAME)-hypervisor \
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.
60 define PKG_FILES-$(PKG_NAME)-hypervisor
64 define PKG_FILES-$(PKG_NAME)-runtime
68 # libs: Use files from template and add /usr/lib/fs.
69 PKG_FILES-$(PKG_NAME)-libs += /usr/lib/fs
71 define QUALITY_AGENT_WHITELIST_EXECSTACK
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
82 cd $(DIR_APP) && make tools xen $(PARALLELISMFLAGS)
86 cd $(DIR_APP) && make install-tools install-xen DESTDIR=$(BUILDROOT)
87 rm -R $(BUILDROOT)/etc/init.d