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