Magellan Linux

Contents of /trunk/todo/xen-tools/xen-tools-3.2.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2667 - (show annotations) (download)
Thu Jul 9 20:45:29 2009 UTC (15 years, 4 months ago) by niro
File size: 2069 byte(s)
-moved to 'todo'
1 # $Header: /magellan-cvs/smage/xen-tools/xen-tools-3.2.0-r1.smage2,v 1.1 2008/05/24 12:45:12 niro Exp $
2
3 PNAME="xen-tools"
4 PVER="3.2.0"
5 PBUILD="r1"
6
7 PCATEGORIE="app-emulation"
8 STATE="unstable"
9
10 DESCRIPTION="xen-tools - xen userspace tools and xend daemon."
11 HOMEPAGE="http://www.xen.org/"
12
13 DEPEND=">= dev-lang/python-2.5
14 >= sys-libs/zlib-1.2
15 >= media-libs/libsdl-1.2.13
16 >= sys-apps/iproute2-2.6.23
17 >= net-misc/bridge-utils-1.4
18 >= app-misc/screen-4
19 >= app-admin/logrotate-3
20 >= sys-fs/udev-119"
21
22 SDEPEND=">= dev-lang/perl-5.10
23 >= x11-proto/xproto-7
24 >= net-libs/libvncserver-0.9.1
25 >= dev-lang/dev86-0.16.17"
26
27 SRCFILE="${PNAME/-tools/}-${PVER}.tar.gz"
28 SRCDIR="${BUILDDIR}/${PNAME/-tools/}-${PVER}"
29
30 sminclude mbuild mtools
31
32 SRC_URI=(
33 http://bits.xensource.com/oss-xen/release/${PVER}/${SRCFILE}
34 mirror://${PNAME}/${SRCFILE}
35 mirror://${PNAME}/xend.rc
36 mirror://${PNAME}/xendomains.confd
37 mirror://${PNAME}/xendomains.rc
38 mirror://${PNAME}/xen-consoles.logrotate
39 )
40
41 src_compile()
42 {
43 cd ${SRCDIR}/tools/ioemu
44 mconfigure --disable-system --disable-user || die
45
46 cd ${SRCDIR}
47 mmake -C tools || die
48 }
49
50 src_install()
51 {
52 cd ${SRCDIR}
53 mmake -C tools DESTDIR=${BINDIR} XEN_PYTHON_NATIVE_INSTALL=1 install || die
54
55 # remove RedHat-specific stuff
56 rm -rf ${BINDIR}/etc/sysconfig || die
57 rm -rf ${BINDIR}/etc/init.d || die
58 rm -rf ${BINDIR}/etc/rc.d || die
59
60 # install man-pages
61 minstallman docs/man/* || die
62
63 # install our init stuff
64 minstallrc xend.rc xend || die
65 minstallrc xendomains.rc xendomains || die
66 minstallconf xendomains.confd xendomains || die
67 minstalllog xen-consoles.logrotate xen-consoles || die
68
69 # needed directories to run xen
70 mkeepdir /etc/xen/auto || die
71 mkeepdir /var/lib/xenstored || die
72 mkeepdir /var/lib/xen || die
73 mkeepdir /var/log/xen || die
74 mkeepdir /var/log/xen-consoles
75 mkeepdir /var/run/xenstored || die
76 mkeepdir /var/xen/dump || die
77 }
78
79 postinstall()
80 {
81 mstartservice xend
82 mstartservice xendomains xm
83 }
84
85 postremove()
86 {
87 [[ ! -f /usr/sbin/xm ]] && mstartservice xendomains xm
88 [[ ! -f /usr/sbin/xend ]] && mstartservice xend
89 }

Properties

Name Value
svn:keywords Id