Contents of /trunk/todo/xen-hypervisor/xen-hypervisor-3.2.1-r2.smage2
Parent Directory | Revision Log
Revision 2666 -
(show annotations)
(download)
Thu Jul 9 20:45:24 2009 UTC (15 years, 2 months ago) by niro
File size: 1363 byte(s)
Thu Jul 9 20:45:24 2009 UTC (15 years, 2 months ago) by niro
File size: 1363 byte(s)
-moved to 'todo'
1 | # $Header: /magellan-cvs/smage/xen-hypervisor/xen-hypervisor-3.2.1-r2.smage2,v 1.3 2008/05/24 10:56:44 niro Exp $ |
2 | |
3 | PNAME="xen-hypervisor" |
4 | PVER="3.2.1" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="app-emulation" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Xen is an open-source virtual machine hypervisor." |
11 | HOMEPAGE="http://www.xen.org/" |
12 | |
13 | DEPEND=">= sys-apps/grub-0.97" |
14 | |
15 | SRCFILE="${PNAME/-hypervisor/}-${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME/-hypervisor/}-${PVER}" |
17 | |
18 | sminclude mbuild mtools |
19 | |
20 | SRC_URI=( |
21 | http://bits.xensource.com/oss-xen/release/${PVER}/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | src_compile() |
26 | { |
27 | cd ${SRCDIR} |
28 | mmake -C xen || die |
29 | } |
30 | |
31 | src_install() |
32 | { |
33 | cd ${SRCDIR} |
34 | mmake -C xen DESTDIR=${BINDIR} install || die |
35 | minstalldocs xen/COPYING || die |
36 | |
37 | # install a example grub conf |
38 | cat > ${SRCDIR}/grub.conf.example-xen << EOF |
39 | default 0 |
40 | timeout 30 |
41 | |
42 | title Magellan-Linux - Xen domain0 |
43 | root (hd0,0) |
44 | kernel (hd0,0)/boot/xen.gz dom0_mem=256M |
45 | module /boot/vmlinuz-xen root=/dev/hda3 |
46 | module /initrd-xen |
47 | EOF |
48 | minstalldir /boot/grub || die |
49 | minstallfile grub.conf.example-xen /boot/grub || die |
50 | } |
51 | |
52 | preinstall() |
53 | { |
54 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
55 | then |
56 | mount /boot &> /dev/null |
57 | fi |
58 | } |
59 | |
60 | preremove() |
61 | { |
62 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
63 | then |
64 | mount /boot &> /dev/null |
65 | fi |
66 | |
67 | echo |
68 | echo "See '/boot/grub/grub.conf.example-xen' how to setup you bootloader for xen." |
69 | echo |
70 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |