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