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