]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - xen/xen.nm
Xen:
[people/amarx/ipfire-3.x.git] / xen / xen.nm
CommitLineData
2ee4ca99 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
2ee4ca99
MT
4###############################################################################
5
802ea3af 6name = xen
ee007926 7version = 4.1.2
208ef342
BS
8release = 5
9sup_arches = i686 x86_64
802ea3af
MT
10
11maintainer = Ben Schweikert <ben.schweikert@ipfire.org>
12groups = Applications/Virtualization
13url = http://www.xen.org/
14license = GPLv2+
15summary = The Xen tools.
16
17description
18 The Xen hypervisor, the powerful open source industry standard
19 for virtualization, offers a powerful, efficient, and secure
20 feature set for virtualization.
208ef342 21 It is possible to use a i686 host, but it is not supported.
802ea3af
MT
22end
23
4872f95d 24source_dl = http://bits.xensource.com/oss-xen/release/%{version}/
75d56118 25sources = %{thisapp}.tar.gz xen-utils-0.2.tar.bz2
802ea3af
MT
26
27build
28 requires
ee007926
BS
29 chrpath
30 dev86
802ea3af 31 gettext-devel
ee007926 32 iasl
802ea3af
MT
33 libuuid-devel
34 ncurses-devel
35 openssl-devel
75d56118
MT
36 pciutils-devel
37 perl
802ea3af 38 python-devel
ee007926 39 SDL-devel
4935b485 40 texinfo
802ea3af 41 xorg-x11-proto-devel
4935b485 42 wget
802ea3af
MT
43 zlib-devel
44 end
45
46 prepare_cmds
75d56118
MT
47 mv ../xen-utils/ipxe.tar.gz tools/firmware/etherboot/
48 mv ../xen-utils/newlib-1.16.0.tar.gz stubdom/
49 mv ../xen-utils/grub-0.97.tar.gz stubdom/
50 mv ../xen-utils/lwip-1.3.0.tar.gz stubdom/
51 mv ../xen-utils/pciutils-2.2.9.tar.bz2 stubdom/
52 mv ../xen-utils/zlib-1.2.3.tar.gz stubdom/
802ea3af 53 rm -f Config.mk~
75d56118
MT
54
55 if [ "${DISTRO_ARCH}" = "x86_64" ]; then
56 # Dirty ugly workaround for stub-32.h error (is missing).
57 ln -s /usr/include/gnu/stubs-64.h /usr/include/gnu/stubs-32.h
58 fi
802ea3af
MT
59 end
60
75d56118
MT
61 build
62 # Have to build it this way, else parts of the xen stubdom \
63 # would get build too.
64 make dist-xen %{PARALELLISMFLAGS}
65 make dist-tools %{PARALELLISMFLAGS}
66 end
802ea3af 67
75d56118
MT
68 # Only install xen and tools
69 make_install_targets = \
70 DESTDIR=%{BUILDROOT} \
71 prefix=/usr \
72 install-xen \
73 install-tools
802ea3af
MT
74
75 install_cmds
75d56118
MT
76 # Remove unneeded files:
77 # hypervisor symlinks
78 rm -Rf %{BUILDROOT}/boot/xen-syms*
79 rm -Rf %{BUILDROOT}/boot/xen-4.1.gz
80 rm -Rf %{BUILDROOT}/boot/xen-4.gz
81 # init.d file
82 rm -Rf %{BUILDROOT}/etc/init.d
ee007926 83 chrpath --delete %{BUILDROOT}/usr/lib/xen/bin/qemu-dm
75d56118
MT
84 # silly doc dir fun
85 rm -Rf %{BUILDROOT}/usr/share/doc/xen
86 rm -Rf %{BUILDROOT}/usr/share/doc/qemu
87 # Pointless helper
88 rm -Rf %{BUILDROOT}/usr/sbin/xen-python-path
89 # qemu stuff (unused or available from upstream)
90 rm -Rf %{BUILDROOT}/usr/share/xen/man
91
92 # create dirs in /var
93 mkdir -p %{BUILDROOT}/var/lib/xen/xend-db/domain
94 mkdir -p %{BUILDROOT}/var/lib/xen/xend-db/vnet
95 mkdir -p %{BUILDROOT}/var/lib/xen/xend-db/migrate
96 mkdir -p %{BUILDROOT}/var/lib/xen/images
97 mkdir -p %{BUILDROOT}/var/log/xen/console
802ea3af
MT
98 end
99end
100
101quality-agent
102 whitelist_execstack
103 /boot/*
104 end
105end
106
107packages
108 package %{name}
4935b485 109
802ea3af
MT
110 package %{name}-libs
111 template LIBS
112
113 description
114 This package contains the libraries needed to
115 run applications which manage Xen virtual machines
116 end
4935b485 117
75d56118
MT
118 # Very hacky workaround for an improper name of libfsimage.
119 if "%{DISTRO_ARCH}" == "x86_64"
120 provides
121 libfsimage.so.1.0(libfsimage.so.1.0)(64bit)
122 end
123 else
124 provides
125 libfsimage.so.1.0(libfsimage.so.1.0)
126 end
127 end
128 files += %{libdir}/fs
802ea3af 129 end
4935b485 130
802ea3af
MT
131 package %{name}-hypervisor
132 summary = The Xen hypervisor.
133 description
134 This package contains the Xen hypervisor.
135 end
4935b485 136
802ea3af
MT
137 files
138 /boot/*
139 end
140 end
4935b485 141
802ea3af
MT
142 package %{name}-runtime
143 summary = Runtime programms and daemons for Xen environments.
144 description
145 This package contains the runtime programs
146 and daemons which form the core Xen userspace environment.
147 end
4935b485 148
802ea3af
MT
149 files
150 /usr/bin/*
75d56118 151 /usr/sbin/*
802ea3af
MT
152 end
153 end
4935b485 154
802ea3af
MT
155 package %{name}-devel
156 template DEVEL
157
158 description
159 This package contains what's needed to
160 develop applications which manage Xen virtual machines.
161 end
162 end
1f9bc2f0
MT
163
164 package %{name}-debuginfo
165 template DEBUGINFO
166 end
802ea3af 167end
75d56118
MT
168
169