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