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