/[gentoo-x86]/app-emulation/xen/xen-3.0.0_pre20051122.ebuild
Gentoo

Contents of /app-emulation/xen/xen-3.0.0_pre20051122.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Dec 6 15:12:41 2005 UTC (12 years, 11 months ago) by chrb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
New 3.0.0 release.
(Portage version: 2.0.51.22-r3)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-3.0.0_pre20051122.ebuild,v 1.1 2005/11/22 22:09:34 chrb Exp $
4
5 inherit mount-boot
6
7 DESCRIPTION="The Xen virtual machine monitor and Xend daemon"
8 HOMEPAGE="http://xen.sourceforge.net"
9 DATE="20051122"
10 SRC_URI="mirror://gentoo/xen-unstable-${DATE}.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~x86"
15 IUSE="doc debug screen"
16
17 DEPEND="sys-apps/iproute2
18 net-misc/bridge-utils
19 dev-lang/python
20 net-misc/curl
21 sys-libs/zlib
22 doc? (
23 dev-tex/latex2html
24 media-gfx/transfig
25 )
26 screen? (
27 app-misc/screen
28 app-admin/logrotate
29 )
30 sys-devel/dev86"
31
32 S="${WORKDIR}/xen-unstable-${DATE}"
33
34 src_compile() {
35 local myopt
36 if use debug; then
37 myopt="${myopt} debug=y"
38 fi
39
40 unset CFLAGS
41 make ${myopt} -C xen || die "compiling xen failed"
42 make ${myopt} -C tools || die "compiling tools failed"
43
44 if use doc; then
45 sh ./docs/check_pkgs || die "package check failed"
46 make ${myopt} -C docs || die "compiling docs failed"
47 fi
48
49 }
50
51 src_install() {
52 make DESTDIR=${D} -C xen install || die "installing xen failed"
53
54 make DESTDIR=${D} XEN_PYTHON_NATIVE_INSTALL=1 -C tools install \
55 || die "installing tools failed"
56
57 if use doc; then
58 make DESTDIR=${D} -C docs install \
59 || die "installing docs failed"
60 # Rename doc/xen to the Gentoo-style doc/xen-x.y
61 mv ${D}/usr/share/doc/{${PN},${PF}}
62 fi
63
64 # bind xend to localhost per default
65 sed -i -e "s/\((xend-address *\)'')/\1\'localhost\')/" \
66 ${D}/etc/xen/xend-config.sxp
67
68 newinitd ${FILESDIR}/xend-init xend
69 newconfd ${FILESDIR}/xend-conf xend
70 newconfd ${FILESDIR}/xendomains-conf xendomains
71 newinitd ${FILESDIR}/xendomains-init xendomains
72
73 # for upstream change tracking
74 dodoc ${S}/XEN-VERSION
75
76 if use screen; then
77 sed -i -e 's/SCREEN="no"/SCREEN="yes"/' ${D}/etc/init.d/xendomains
78 fi
79 }
80
81 pkg_postinst() {
82 einfo "Please visit the Xen and Gentoo wiki:"
83 einfo "http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo"
84 }

  ViewVC Help
Powered by ViewVC 1.1.20