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