Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/virtualbox-guest-additions: ChangeLog virtualbox-guest-additions-4.1.4.ebuild virtualbox-guest-additions-4.1.0.ebuild
Date: Tue, 04 Oct 2011 18:02:12
Message-Id: 20111004180203.4B2C32004B@flycatcher.gentoo.org
1 polynomial-c 11/10/04 18:02:03
2
3 Modified: ChangeLog
4 Added: virtualbox-guest-additions-4.1.4.ebuild
5 Removed: virtualbox-guest-additions-4.1.0.ebuild
6 Log:
7 Version bump (bug #385577). Removed old
8
9 (Portage version: 2.2.0_alpha60/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.80 app-emulation/virtualbox-guest-additions/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog?rev=1.80&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog?rev=1.80&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog?r1=1.79&r2=1.80
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog,v
21 retrieving revision 1.79
22 retrieving revision 1.80
23 diff -u -r1.79 -r1.80
24 --- ChangeLog 1 Sep 2011 08:19:29 -0000 1.79
25 +++ ChangeLog 4 Oct 2011 18:02:03 -0000 1.80
26 @@ -1,6 +1,14 @@
27 # ChangeLog for app-emulation/virtualbox-guest-additions
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog,v 1.79 2011/09/01 08:19:29 polynomial-c Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog,v 1.80 2011/10/04 18:02:03 polynomial-c Exp $
31 +
32 +*virtualbox-guest-additions-4.1.4 (04 Oct 2011)
33 +
34 + 04 Oct 2011; Lars Wendler <polynomial-c@g.o>
35 + -virtualbox-guest-additions-4.1.0.ebuild,
36 + +virtualbox-guest-additions-4.1.4.ebuild:
37 + Version bump. Thanks to Christian Inci who reported this in bug #385577.
38 + Removed old.
39
40 01 Sep 2011; Lars Wendler <polynomial-c@g.o>
41 virtualbox-guest-additions-4.1.0.ebuild:
42
43
44
45 1.1 app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-4.1.4.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-4.1.4.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-4.1.4.ebuild?rev=1.1&content-type=text/plain
49
50 Index: virtualbox-guest-additions-4.1.4.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-4.1.4.ebuild,v 1.1 2011/10/04 18:02:03 polynomial-c Exp $
55
56 EAPI=2
57
58 inherit eutils linux-mod
59
60 MY_P=VirtualBox-${PV}
61 DESCRIPTION="VirtualBox kernel modules and user-space tools for Linux guests"
62 HOMEPAGE="http://www.virtualbox.org/"
63 SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68 IUSE="X"
69
70 RDEPEND="X? ( ~x11-drivers/xf86-video-virtualbox-${PV}
71 ~x11-drivers/xf86-input-virtualbox-${PV}
72 x11-apps/xrandr
73 x11-apps/xrefresh
74 x11-libs/libXmu
75 x11-libs/libX11
76 x11-libs/libXt
77 x11-libs/libXext
78 x11-libs/libXau
79 x11-libs/libXdmcp
80 x11-libs/libSM
81 x11-libs/libICE )"
82 DEPEND="${RDEPEND}
83 >=dev-util/kbuild-0.1.999
84 >=dev-lang/yasm-0.6.2
85 sys-devel/bin86
86 sys-devel/dev86
87 sys-libs/pam
88 sys-power/iasl
89 X? ( x11-proto/renderproto )
90 !X? ( x11-proto/xproto )"
91
92 BUILD_TARGETS="all"
93 BUILD_TARGET_ARCH="${ARCH}"
94 MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
95 vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
96
97 S="${WORKDIR}/${MY_P}_OSE"
98
99 pkg_setup() {
100 linux-mod_pkg_setup
101 BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
102 enewgroup vboxguest
103 enewuser vboxguest -1 /bin/sh /var/run/vboxguest vboxguest
104 }
105
106 src_unpack() {
107 unpack ${A}
108
109 # Create and unpack a tarball with the sources of the Linux guest
110 # kernel modules, to include all the needed files
111 "${S}"/src/VBox/Additions/linux/export_modules "${WORKDIR}/vbox-kmod.tar.gz"
112 unpack ./vbox-kmod.tar.gz
113
114 # Remove shipped binaries (kBuild,yasm), see bug #232775
115 cd "${S}"
116 rm -rf kBuild/bin tools
117 }
118
119 src_prepare() {
120 # PaX fixes (see bug #298988)
121 pushd "${WORKDIR}" &>/dev/null || die
122 epatch "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
123 popd &>/dev/null || die
124
125 # Disable things unused or splitted into separate ebuilds
126 cp "${FILESDIR}/${PN}-3-localconfig" LocalConfig.kmk
127
128 # stupid new header references...
129 for vboxheader in {product,revision}-generated.h ; do
130 for mdir in vbox{guest,sf} ; do
131 ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
132 "${WORKDIR}/${mdir}/${vboxheader}"
133 done
134 done
135 }
136
137 src_compile() {
138 # build the user-space tools, warnings are harmless
139 ./configure --nofatal \
140 --disable-xpcom \
141 --disable-sdl-ttf \
142 --disable-pulse \
143 --disable-alsa \
144 --build-headless || die "configure failed"
145 source ./env.sh
146
147 for each in /src/VBox/{Runtime,Additions/common} \
148 /src/VBox/Additions/linux/{sharedfolders,daemon} ; do
149 cd "${S}"${each}
150 MAKE="kmk" emake TOOL_YASM_AS=yasm \
151 KBUILD_PATH="${S}/kBuild" \
152 || die "kmk VBoxControl failed"
153 done
154
155 if use X; then
156 cd "${S}"/src/VBox/Additions/x11/VBoxClient
157 MAKE="kmk" emake TOOL_YASM_AS=yasm \
158 KBUILD_PATH="${S}/kBuild" \
159 || die "kmk VBoxClient failed"
160 fi
161
162 # Now creating the kernel modules. We must do this _after_
163 # we compiled the user-space tools as we need two of the
164 # automatically generated header files. (>=3.2.0)
165 linux-mod_src_compile
166 }
167
168 src_install() {
169 linux-mod_src_install
170
171 cd "${S}"/out/linux.${ARCH}/release/bin/additions
172
173 insinto /sbin
174 newins mount.vboxsf mount.vboxsf
175 fperms 4755 /sbin/mount.vboxsf
176
177 newinitd "${FILESDIR}"/${PN}-7.initd ${PN}
178
179 insinto /usr/sbin/
180 newins VBoxService vboxguest-service
181 fperms 0755 /usr/sbin/vboxguest-service
182
183 insinto /usr/bin
184 doins VBoxControl
185 fperms 0755 /usr/bin/VBoxControl
186
187 # VBoxClient user service and xrandr wrapper
188 if use X; then
189 doins VBoxClient
190 fperms 0755 /usr/bin/VBoxClient
191
192 cd "${S}"/src/VBox/Additions/x11/Installer
193 newins 98vboxadd-xclient VBoxClient-all
194 fperms 0755 /usr/bin/VBoxClient-all
195 fi
196
197 # udev rule for vboxdrv
198 dodir /lib/udev/rules.d
199 echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
200 >> "${D}/lib/udev/rules.d/60-virtualbox-guest-additions.rules" \
201 || die
202 echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
203 >> "${D}/lib/udev/rules.d/60-virtualbox-guest-additions.rules" \
204 || die
205
206 # VBoxClient autostart file
207 insinto /etc/xdg/autostart
208 doins "${FILESDIR}"/vboxclient.desktop
209
210 # sample xorg.conf
211 insinto /usr/share/doc/${PF}
212 doins "${FILESDIR}"/xorg.conf.vbox
213 }
214
215 pkg_postinst() {
216 linux-mod_pkg_postinst
217 if ! use X ; then
218 elog "use flag X is off, enable it to install the"
219 elog "X Window System input and video drivers"
220 fi
221 elog ""
222 elog "Please add users to the \"vboxguest\" group so they can"
223 elog "benefit from seamless mode, auto-resize and clipboard."
224 elog ""
225 elog "Please add:"
226 elog "/etc/init.d/${PN}"
227 elog "to the default runlevel in order to start"
228 elog "needed services."
229 elog "To use the VirtualBox X drivers, use the following"
230 elog "file as your /etc/X11/xorg.conf:"
231 elog " /usr/share/doc/${PF}/xorg.conf.xorg"
232 elog ""
233 elog "Also make sure you use the Mesa library for OpenGL:"
234 elog " eselect opengl set xorg-x11"
235 elog ""
236 elog "An autostart .desktop file has been installed to start"
237 elog "VBoxClient in desktop sessions."
238 elog ""
239 elog "You can mount shared folders with:"
240 elog " mount -t vboxsf <shared_folder_name> <mount_point>"
241 elog ""
242 elog "Warning:"
243 elog "this ebuild is only needed if you are running gentoo"
244 elog "inside a VirtualBox Virtual Machine, you don't need"
245 elog "it to run VirtualBox itself."
246 elog ""
247 }