]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = xen |
ee007926 | 7 | version = 4.1.2 |
75d56118 | 8 | release = 4 |
802ea3af MT |
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 | ||
4872f95d | 22 | source_dl = http://bits.xensource.com/oss-xen/release/%{version}/ |
75d56118 | 23 | sources = %{thisapp}.tar.gz xen-utils-0.2.tar.bz2 |
802ea3af MT |
24 | |
25 | build | |
26 | requires | |
ee007926 BS |
27 | chrpath |
28 | dev86 | |
802ea3af | 29 | gettext-devel |
ee007926 | 30 | iasl |
802ea3af MT |
31 | libuuid-devel |
32 | ncurses-devel | |
33 | openssl-devel | |
75d56118 MT |
34 | pciutils-devel |
35 | perl | |
802ea3af | 36 | python-devel |
ee007926 | 37 | SDL-devel |
4935b485 | 38 | texinfo |
802ea3af | 39 | xorg-x11-proto-devel |
4935b485 | 40 | wget |
802ea3af MT |
41 | zlib-devel |
42 | end | |
43 | ||
44 | prepare_cmds | |
75d56118 MT |
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/ | |
802ea3af | 51 | rm -f Config.mk~ |
75d56118 MT |
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 | |
802ea3af MT |
57 | end |
58 | ||
75d56118 MT |
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 | |
802ea3af | 65 | |
75d56118 MT |
66 | # Only install xen and tools |
67 | make_install_targets = \ | |
68 | DESTDIR=%{BUILDROOT} \ | |
69 | prefix=/usr \ | |
70 | install-xen \ | |
71 | install-tools | |
802ea3af MT |
72 | |
73 | install_cmds | |
75d56118 MT |
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 | |
ee007926 | 81 | chrpath --delete %{BUILDROOT}/usr/lib/xen/bin/qemu-dm |
75d56118 MT |
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 | |
802ea3af MT |
96 | end |
97 | end | |
98 | ||
99 | quality-agent | |
100 | whitelist_execstack | |
101 | /boot/* | |
102 | end | |
103 | end | |
104 | ||
105 | packages | |
106 | package %{name} | |
4935b485 | 107 | |
802ea3af MT |
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 | |
4935b485 | 115 | |
75d56118 MT |
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 | |
802ea3af | 127 | end |
4935b485 | 128 | |
802ea3af MT |
129 | package %{name}-hypervisor |
130 | summary = The Xen hypervisor. | |
131 | description | |
132 | This package contains the Xen hypervisor. | |
133 | end | |
4935b485 | 134 | |
802ea3af MT |
135 | files |
136 | /boot/* | |
137 | end | |
138 | end | |
4935b485 | 139 | |
802ea3af MT |
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 | |
4935b485 | 146 | |
802ea3af MT |
147 | files |
148 | /usr/bin/* | |
75d56118 | 149 | /usr/sbin/* |
802ea3af MT |
150 | end |
151 | end | |
4935b485 | 152 | |
802ea3af MT |
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 | |
1f9bc2f0 MT |
161 | |
162 | package %{name}-debuginfo | |
163 | template DEBUGINFO | |
164 | end | |
802ea3af | 165 | end |
75d56118 MT |
166 | |
167 |