]>
Commit | Line | Data |
---|---|---|
2ee4ca99 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 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = xen | |
131fc838 | 28 | PKG_VER = 4.0.1 |
8f551334 | 29 | PKG_REL = 1 |
2ee4ca99 MT |
30 | |
31 | PKG_MAINTAINER = Ben Schweikert <ben.schweikert@ipfire.org> | |
bb7d617c | 32 | PKG_GROUPS = Applications/Virtualization |
2ee4ca99 MT |
33 | PKG_URL = http://www.xen.org/ |
34 | PKG_LICENSE = GPLv2+ | |
131fc838 | 35 | PKG_SUMMARY = The Xen tools. |
2ee4ca99 MT |
36 | |
37 | define PKG_DESCRIPTION | |
131fc838 MT |
38 | The Xen hypervisor, the powerful open source industry standard \ |
39 | for virtualization, offers a powerful, efficient, and secure \ | |
40 | feature set for virtualization. | |
2ee4ca99 MT |
41 | endef |
42 | ||
8f551334 MT |
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 | |
131fc838 | 46 | |
2ee4ca99 MT |
47 | PKG_TARBALL = $(THISAPP).tar.gz |
48 | ||
131fc838 MT |
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 | |
2ee4ca99 MT |
61 | /boot/* |
62 | endef | |
63 | ||
131fc838 MT |
64 | define PKG_FILES-$(PKG_NAME)-runtime |
65 | /usr/bin/* | |
66 | endef | |
67 | ||
a751616f MT |
68 | # libs: Use files from template and add /usr/lib/fs. |
69 | PKG_FILES-$(PKG_NAME)-libs += /usr/lib/fs | |
131fc838 MT |
70 | |
71 | define QUALITY_AGENT_WHITELIST_EXECSTACK | |
72 | /boot/* | |
73 | endef | |
2ee4ca99 MT |
74 | |
75 | define STAGE_BUILD | |
131fc838 MT |
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) | |
2ee4ca99 MT |
83 | endef |
84 | ||
85 | define STAGE_INSTALL | |
131fc838 MT |
86 | cd $(DIR_APP) && make install-tools install-xen DESTDIR=$(BUILDROOT) |
87 | rm -R $(BUILDROOT)/etc/init.d | |
2ee4ca99 | 88 | endef |