]>
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 |
789f14eb | 8 | release = 6 |
208ef342 | 9 | sup_arches = i686 x86_64 |
802ea3af MT |
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. | |
208ef342 | 21 | It is possible to use a i686 host, but it is not supported. |
802ea3af MT |
22 | end |
23 | ||
4872f95d | 24 | source_dl = http://bits.xensource.com/oss-xen/release/%{version}/ |
75d56118 | 25 | sources = %{thisapp}.tar.gz xen-utils-0.2.tar.bz2 |
802ea3af MT |
26 | |
27 | build | |
28 | requires | |
ee007926 BS |
29 | chrpath |
30 | dev86 | |
789f14eb | 31 | gettext |
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. | |
1429c856 MT |
64 | make dist-xen %{PARALLELISMFLAGS} |
65 | make dist-tools %{PARALLELISMFLAGS} | |
75d56118 | 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 |
99 | end | |
100 | ||
101 | quality-agent | |
102 | whitelist_execstack | |
103 | /boot/* | |
104 | end | |
105 | end | |
106 | ||
107 | packages | |
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 | 118 | files += %{libdir}/fs |
802ea3af | 119 | end |
4935b485 | 120 | |
802ea3af MT |
121 | package %{name}-hypervisor |
122 | summary = The Xen hypervisor. | |
123 | description | |
124 | This package contains the Xen hypervisor. | |
125 | end | |
4935b485 | 126 | |
802ea3af MT |
127 | files |
128 | /boot/* | |
129 | end | |
130 | end | |
4935b485 | 131 | |
802ea3af MT |
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 | |
4935b485 | 138 | |
802ea3af MT |
139 | files |
140 | /usr/bin/* | |
75d56118 | 141 | /usr/sbin/* |
802ea3af MT |
142 | end |
143 | end | |
4935b485 | 144 | |
802ea3af MT |
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 | |
1f9bc2f0 MT |
153 | |
154 | package %{name}-debuginfo | |
155 | template DEBUGINFO | |
156 | end | |
802ea3af | 157 | end |
75d56118 MT |
158 | |
159 |