2010-12-23 13:41:13 +00:00
|
|
|
# Template file for 'virtualbox-ose-dkms'.
|
|
|
|
#
|
|
|
|
short_desc="${short_desc} - kernel module sources for dkms"
|
2011-01-19 19:51:38 +00:00
|
|
|
dkms_modules="virtualbox-ose ${_vbox_distver}"
|
2010-12-23 13:41:13 +00:00
|
|
|
noarch=yes
|
|
|
|
|
2012-07-09 14:55:58 +00:00
|
|
|
do_install() {
|
2011-05-03 16:25:05 +00: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
|
2012-07-09 14:55:58 +00:00
|
|
|
vmkdir usr/lib/udev/rules.d
|
|
|
|
vinstall ${FILESDIR}/${sourcepkg}-dkms.udev 644 \
|
|
|
|
usr/lib/udev/rules.d 60-virtualbox-ose-dkms.rules
|
2010-12-23 13:41:13 +00:00
|
|
|
}
|