1 |
polynomial-c 11/06/28 20:50:40 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: virtualbox-guest-additions-4.0.10.ebuild |
5 |
Removed: virtualbox-guest-additions-4.0.6-r1.ebuild |
6 |
Log: |
7 |
Version bump. Removed old |
8 |
|
9 |
(Portage version: 2.2.0_alpha41/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.69 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.69&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog?rev=1.69&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog?r1=1.68&r2=1.69 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog,v |
21 |
retrieving revision 1.68 |
22 |
retrieving revision 1.69 |
23 |
diff -u -r1.68 -r1.69 |
24 |
--- ChangeLog 18 May 2011 21:37:27 -0000 1.68 |
25 |
+++ ChangeLog 28 Jun 2011 20:50:39 -0000 1.69 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for app-emulation/virtualbox-guest-additions |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog,v 1.68 2011/05/18 21:37:27 polynomial-c Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog,v 1.69 2011/06/28 20:50:39 polynomial-c Exp $ |
31 |
+ |
32 |
+*virtualbox-guest-additions-4.0.10 (28 Jun 2011) |
33 |
+ |
34 |
+ 28 Jun 2011; Lars Wendler <polynomial-c@g.o> |
35 |
+ -virtualbox-guest-additions-4.0.6-r1.ebuild, |
36 |
+ +virtualbox-guest-additions-4.0.10.ebuild: |
37 |
+ Version bump. Removed old. |
38 |
|
39 |
*virtualbox-guest-additions-4.0.8 (18 May 2011) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-4.0.10.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-4.0.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.0.10.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: virtualbox-guest-additions-4.0.10.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 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.0.10.ebuild,v 1.1 2011/06/28 20:50:39 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-drivers/xf86-input-virtualbox-${PV} |
71 |
x11-apps/xrandr |
72 |
x11-apps/xrefresh |
73 |
x11-libs/libXmu |
74 |
x11-libs/libX11 |
75 |
x11-libs/libXt |
76 |
x11-libs/libXext |
77 |
x11-libs/libXau |
78 |
x11-libs/libXdmcp |
79 |
x11-libs/libSM |
80 |
x11-libs/libICE )" |
81 |
DEPEND="${RDEPEND} |
82 |
>=dev-util/kbuild-0.1.5-r1 |
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}_OSE" |
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-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_compile() { |
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 |
source ./env.sh |
145 |
|
146 |
for each in /src/VBox/{Runtime,Additions/common} \ |
147 |
/src/VBox/Additions/linux/{sharedfolders,daemon} ; do |
148 |
cd "${S}"${each} |
149 |
MAKE="kmk" emake TOOL_YASM_AS=yasm \ |
150 |
KBUILD_PATH="${S}/kBuild" \ |
151 |
|| die "kmk VBoxControl failed" |
152 |
done |
153 |
|
154 |
if use X; then |
155 |
cd "${S}"/src/VBox/Additions/x11/VBoxClient |
156 |
MAKE="kmk" emake TOOL_YASM_AS=yasm \ |
157 |
KBUILD_PATH="${S}/kBuild" \ |
158 |
|| die "kmk VBoxClient failed" |
159 |
fi |
160 |
|
161 |
# Now creating the kernel modules. We must do this _after_ |
162 |
# we compiled the user-space tools as we need two of the |
163 |
# automatically generated header files. (>=3.2.0) |
164 |
linux-mod_src_compile |
165 |
} |
166 |
|
167 |
src_install() { |
168 |
linux-mod_src_install |
169 |
|
170 |
cd "${S}"/out/linux.${ARCH}/release/bin/additions |
171 |
|
172 |
insinto /sbin |
173 |
newins mount.vboxsf mount.vboxsf |
174 |
fperms 4755 /sbin/mount.vboxsf |
175 |
|
176 |
newinitd "${FILESDIR}"/${PN}-7.initd ${PN} |
177 |
|
178 |
insinto /usr/sbin/ |
179 |
newins VBoxService vboxguest-service |
180 |
fperms 0755 /usr/sbin/vboxguest-service |
181 |
|
182 |
insinto /usr/bin |
183 |
doins VBoxControl |
184 |
fperms 0755 /usr/bin/VBoxControl |
185 |
|
186 |
# VBoxClient user service and xrandr wrapper |
187 |
if use X; then |
188 |
doins VBoxClient |
189 |
fperms 0755 /usr/bin/VBoxClient |
190 |
|
191 |
cd "${S}"/src/VBox/Additions/x11/Installer |
192 |
newins 98vboxadd-xclient VBoxClient-all |
193 |
fperms 0755 /usr/bin/VBoxClient-all |
194 |
fi |
195 |
|
196 |
# udev rule for vboxdrv |
197 |
dodir /lib/udev/rules.d |
198 |
echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \ |
199 |
>> "${D}/lib/udev/rules.d/60-virtualbox-guest-additions.rules" \ |
200 |
|| die |
201 |
echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \ |
202 |
>> "${D}/lib/udev/rules.d/60-virtualbox-guest-additions.rules" \ |
203 |
|| die |
204 |
|
205 |
# VBoxClient autostart file |
206 |
insinto /etc/xdg/autostart |
207 |
doins "${FILESDIR}"/vboxclient.desktop |
208 |
|
209 |
# sample xorg.conf |
210 |
insinto /usr/share/doc/${PF} |
211 |
doins "${FILESDIR}"/xorg.conf.vbox |
212 |
} |
213 |
|
214 |
pkg_postinst() { |
215 |
linux-mod_pkg_postinst |
216 |
if ! useq X ; then |
217 |
elog "use flag X is off, enable it to install the" |
218 |
elog "X Window System input and video drivers" |
219 |
fi |
220 |
elog "" |
221 |
elog "Please add users to the \"vboxguest\" group so they can" |
222 |
elog "benefit from seamless mode, auto-resize and clipboard." |
223 |
elog "" |
224 |
elog "Please add:" |
225 |
elog "/etc/init.d/${PN}" |
226 |
elog "to the default runlevel in order to start" |
227 |
elog "needed services." |
228 |
elog "To use the VirtualBox X drivers, use the following" |
229 |
elog "file as your /etc/X11/xorg.conf:" |
230 |
elog " /usr/share/doc/${PF}/xorg.conf.xorg" |
231 |
elog "" |
232 |
elog "Also make sure you use the Mesa library for OpenGL:" |
233 |
elog " eselect opengl set xorg-x11" |
234 |
elog "" |
235 |
elog "An autostart .desktop file has been installed to start" |
236 |
elog "VBoxClient in desktop sessions." |
237 |
elog "" |
238 |
elog "You can mount shared folders with:" |
239 |
elog " mount -t vboxsf <shared_folder_name> <mount_point>" |
240 |
elog "" |
241 |
elog "Warning:" |
242 |
elog "this ebuild is only needed if you are running gentoo" |
243 |
elog "inside a VirtualBox Virtual Machine, you don't need" |
244 |
elog "it to run VirtualBox itself." |
245 |
elog "" |
246 |
} |