void-packages/srcpkgs/virtualbox-ose/virtualbox-ose-guest-dkms.template

22 lines
659 B
Text
Raw Normal View History

# Template file for 'virtualbox-ose-guest-dkms'.
#
short_desc="${short_desc} - guest addition module source for dkms"
2011-01-19 19:51:38 +00:00
dkms_modules="virtualbox-ose-guest ${_vbox_distver}"
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/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
2012-07-09 14:55:58 +00:00
vmkdir usr/lib/udev/rules.d
vinstall ${FILESDIR}/${sourcepkg}-guest-dkms.udev 644 \
usr/lib/udev/rules.d 60-virtualbox-ose-guest-dkms.rules
}