Magellan Linux

Annotation of /trunk/todo/xen-hypervisor/xen-hypervisor-3.2.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2666 - (hide annotations) (download)
Thu Jul 9 20:45:24 2009 UTC (14 years, 11 months ago) by niro
File size: 1382 byte(s)
-moved to 'todo'
1 niro 2 # $Header: /magellan-cvs/smage/xen-hypervisor/xen-hypervisor-3.2.0-r1.smage2,v 1.2 2008/05/24 12:50:12 niro Exp $
2    
3     PNAME="xen-hypervisor"
4     PVER="3.2.0"
5     PBUILD="r1"
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     postinstall()
61     {
62     echo
63     echo "See '/boot/grub/grub.conf.example-xen' how to setup your bootloader for xen."
64     echo
65     }
66    
67     preremove()
68     {
69     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
70     then
71     mount /boot &> /dev/null
72     fi
73     }

Properties

Name Value
svn:keywords Id