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