]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - xen/xen.nm
Merge remote-tracking branch 'stevee/unicode-ucd'
[people/amarx/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 = 6
9 sup_arches = i686 x86_64
10
11 maintainer = Ben Schweikert <ben.schweikert@ipfire.org>
12 groups = Applications/Virtualization
13 url = http://www.xen.org/
14 license = GPLv2+
15 summary = The Xen tools.
16
17 description
18 The Xen hypervisor, the powerful open source industry standard
19 for virtualization, offers a powerful, efficient, and secure
20 feature set for virtualization.
21 It is possible to use a i686 host, but it is not supported.
22 end
23
24 source_dl = http://bits.xensource.com/oss-xen/release/%{version}/
25 sources = %{thisapp}.tar.gz xen-utils-0.2.tar.bz2
26
27 build
28 requires
29 chrpath
30 dev86
31 gettext
32 iasl
33 libuuid-devel
34 ncurses-devel
35 openssl-devel
36 pciutils-devel
37 perl
38 python-devel
39 SDL-devel
40 texinfo
41 xorg-x11-proto-devel
42 wget
43 zlib-devel
44 end
45
46 prepare_cmds
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/
53 rm -f Config.mk~
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
59 end
60
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
67
68 # Only install xen and tools
69 make_install_targets = \
70 DESTDIR=%{BUILDROOT} \
71 prefix=/usr \
72 install-xen \
73 install-tools
74
75 install_cmds
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
83 chrpath --delete %{BUILDROOT}/usr/lib/xen/bin/qemu-dm
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
98 end
99 end
100
101 quality-agent
102 whitelist_execstack
103 /boot/*
104 end
105 end
106
107 packages
108 package %{name}
109
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
117
118 files += %{libdir}/fs
119 end
120
121 package %{name}-hypervisor
122 summary = The Xen hypervisor.
123 description
124 This package contains the Xen hypervisor.
125 end
126
127 files
128 /boot/*
129 end
130 end
131
132 package %{name}-runtime
133 summary = Runtime programms and daemons for Xen environments.
134 description
135 This package contains the runtime programs
136 and daemons which form the core Xen userspace environment.
137 end
138
139 files
140 /usr/bin/*
141 /usr/sbin/*
142 end
143 end
144
145 package %{name}-devel
146 template DEVEL
147
148 description
149 This package contains what's needed to
150 develop applications which manage Xen virtual machines.
151 end
152 end
153
154 package %{name}-debuginfo
155 template DEBUGINFO
156 end
157 end
158
159