2010-12-23 14:41:13 +01:00
|
|
|
# Template file for 'virtualbox-ose-dkms'.
|
|
|
|
#
|
|
|
|
short_desc="${short_desc} - kernel module sources for dkms"
|
|
|
|
long_desc="${long_desc}
|
|
|
|
|
|
|
|
This package provides the source code for the virtualbox kernel module 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 this
|
|
|
|
module."
|
|
|
|
|
2011-11-17 06:50:55 +01:00
|
|
|
revision=1
|
|
|
|
|
2011-01-19 20:51:38 +01:00
|
|
|
dkms_modules="virtualbox-ose ${_vbox_distver}"
|
2010-12-23 14:41:13 +01:00
|
|
|
noarch=yes
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
2011-05-03 18:25:05 +02:00
|
|
|
source ./env.sh
|
|
|
|
|
|
|
|
cd ${wrksrc}/out/linux.$BUILD_PLATFORM_ARCH/release/bin/src
|
|
|
|
local _osedir=${DESTDIR}/usr/src/${sourcepkg}-${version}
|
|
|
|
|
|
|
|
install -d ${_osedir}
|
|
|
|
cp -a . ${_osedir}
|
|
|
|
rm -f ${_osedir}/do_dkms
|
|
|
|
install -m644 ${FILESDIR}/${sourcepkg}-dkms.dkms ${_osedir}/dkms.conf
|
|
|
|
mkdir -p ${DESTDIR}/lib/udev/rules.d
|
|
|
|
install -m644 ${FILESDIR}/${sourcepkg}-dkms.udev \
|
|
|
|
${DESTDIR}/lib/udev/rules.d/60-virtualbox-ose-dkms.rules
|
2010-12-23 14:41:13 +01:00
|
|
|
}
|