Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 297633
Collapse All | Expand All

(-)virtualbox-guest-additions-3.1.0.ebuild.orig (-9 / +30 lines)
Lines 99-108 Link Here
99
		cd "${S}"/out/linux.${ARCH}/release/bin/additions
99
		cd "${S}"/out/linux.${ARCH}/release/bin/additions
100
100
101
		insinto /sbin
101
		insinto /sbin
102
		newins mountvboxsf mount.vboxsf
102
		newins mount.vboxsf mount.vboxsf
103
		fperms 4755 /sbin/mount.vboxsf
103
		fperms 4755 /sbin/mount.vboxsf
104
104
105
		newinitd "${FILESDIR}"/${PN}-3.initd ${PN}
105
		newinitd "${FILESDIR}"/vboxguest-service.init vboxguest-service
106
106
107
		insinto /usr/sbin/
107
		insinto /usr/sbin/
108
		newins VBoxService vboxguest-service
108
		newins VBoxService vboxguest-service
Lines 121-136 Link Here
121
			newins VBoxRandR.sh VBoxRandR
121
			newins VBoxRandR.sh VBoxRandR
122
			fperms 0755 /usr/bin/VBoxRandR
122
			fperms 0755 /usr/bin/VBoxRandR
123
123
124
			newins 98vboxguest-xclient VBoxClient-all
124
			newins 98vboxadd-xclient VBoxClient-all
125
			fperms 0755 /usr/bin/VBoxClient-all
125
			fperms 0755 /usr/bin/VBoxClient-all
126
		fi
126
		fi
127
127
128
		# udev rule for vboxdrv
128
		# udev rule for vboxdrv
129
		dodir /etc/udev/rules.d
129
		dodir /etc/udev/rules.d
130
		echo 'KERNEL=="vboxguest", NAME="vboxguest", OWNER="vboxguest", MODE="0660"' \
130
		echo 'KERNEL=="vboxguest", NAME="vboxguest", OWNER="vboxguest", MODE="0660", RUN+="vboxguest-service.sh"' \
131
		>> "${D}/etc/udev/rules.d/60-virtualbox-guest-additions.rules"
131
		>> "${D}/etc/udev/rules.d/60-virtualbox-guest-additions.rules"
132
		echo 'KERNEL=="vboxuser", NAME="vboxuser", OWNER="vboxguest", MODE="0660"' \
132
		echo 'KERNEL=="vboxuser", NAME="vboxuser", OWNER="vboxguest", MODE="0666"' \
133
		>> "${D}/etc/udev/rules.d/60-virtualbox-guest-additions.rules"
133
		>> "${D}/etc/udev/rules.d/60-virtualbox-guest-additions.rules"
134
135
		# hotplug script for udev
136
		insinto /$(get_libdir)/udev
137
		doins "${FILESDIR}"/vboxguest-service.sh
138
		fperms 0755 /$(get_libdir)/udev/vboxguest-service.sh
139
140
		# VBoxClient autostart file
141
		insinto /etc/xdg/autostart
142
		doins "${FILESDIR}"/vboxclient.desktop
143
144
		# sample xorg.conf
145
		insinto /usr/share/doc/${PF}
146
		doins "${FILESDIR}"/xorg.conf
134
}
147
}
135
148
136
pkg_postinst() {
149
pkg_postinst() {
Lines 139-148 Link Here
139
			elog "use flag X is off, enable it to install the"
152
			elog "use flag X is off, enable it to install the"
140
			elog "X Window System input and video drivers"
153
			elog "X Window System input and video drivers"
141
		fi
154
		fi
142
		elog "Please add:"
155
		elog "To use the VirtualBox X drivers, use the following"
143
		elog "/etc/init.d/${PN}"
156
		elog "file as your /etc/X11/xorg.conf:"
144
		elog "to the default runlevel in order to load all"
157
		elog "    /usr/share/doc/${PF}/xorg.conf"
145
		elog "needed modules and services."
158
		elog ""
159
		elog "Also make sure you use the Mesa library for OpenGL:"
160
		elog "    eselect opengl set xorg-x11"
161
		elog ""
162
		elog "No additional configuration is required then."
163
		elog "The vboxguest-service init script will be autostarted"
164
		elog "by udev when running in VirtualBox, and an autostart"
165
		elog ".desktop file has been installed to start VBoxClient"
166
		elog "in desktop sessions."
146
		elog ""
167
		elog ""
147
		elog "Warning:"
168
		elog "Warning:"
148
		elog "this ebuild is only needed if you are running gentoo"
169
		elog "this ebuild is only needed if you are running gentoo"

Return to bug 297633