2010-12-23 13:41:13 +00:00
|
|
|
# Template file for 'virtualbox-ose-guest-dkms'.
|
|
|
|
#
|
|
|
|
short_desc="${short_desc} - guest addition module source for dkms"
|
|
|
|
long_desc="${long_desc}
|
|
|
|
|
|
|
|
This package provides the source code for the virtualbox guest addition kernel
|
|
|
|
modules to be build with dkms. The virtualbox-ose package is also required in
|
|
|
|
order to make use of these modules. Kernel sources or headers are required to
|
|
|
|
compile these modules."
|
|
|
|
|
2011-11-17 05:50:55 +00:00
|
|
|
revision=1
|
|
|
|
|
2011-01-19 19:51:38 +00:00
|
|
|
dkms_modules="virtualbox-ose-guest ${_vbox_distver}"
|
2010-12-23 13:41:13 +00:00
|
|
|
noarch=yes
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
2011-05-03 16:25:05 +00:00
|
|
|
cd ${wrksrc}
|
|
|
|
source ./env.sh
|
|
|
|
|
|
|
|
cd ${wrksrc}/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions/src
|
|
|
|
local _guestdir=${DESTDIR}/usr/src/${sourcepkg}-guest-${version}
|
|
|
|
|
|
|
|
install -d ${_guestdir}
|
|
|
|
cp -a . ${_guestdir}
|
|
|
|
rm -f ${_guestdir}/do_dkms
|
|
|
|
install -m644 ${FILESDIR}/${sourcepkg}-guest-dkms.dkms \
|
|
|
|
${_guestdir}/dkms.conf
|
|
|
|
install -d ${DESTDIR}/lib/udev/rules.d
|
|
|
|
install -m644 ${FILESDIR}/${sourcepkg}-guest-dkms.udev \
|
|
|
|
${DESTDIR}/lib/udev/rules.d/60-virtualbox-ose-guest-dkms.rules
|
2010-12-23 13:41:13 +00:00
|
|
|
}
|