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