]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - xen/xen.nm
openvswitch: Add service file for systemd.
[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 = 5
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-devel
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 # 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
129 end
130
131 package %{name}-hypervisor
132 summary = The Xen hypervisor.
133 description
134 This package contains the Xen hypervisor.
135 end
136
137 files
138 /boot/*
139 end
140 end
141
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
148
149 files
150 /usr/bin/*
151 /usr/sbin/*
152 end
153 end
154
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
163
164 package %{name}-debuginfo
165 template DEBUGINFO
166 end
167 end
168
169