From b7c6c9c7844914d1d0617a24b9e3a84d691d1f64 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Jul 2012 00:02:03 +0000 Subject: Sat Jul 7 00:02:03 UTC 2012 --- libre/virtualbox-modules/PKGBUILD | 18 +++++++++--------- libre/virtualbox-modules/virtualbox-modules.install | 6 +++--- .../virtualbox-parabola-modules.install | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) (limited to 'libre/virtualbox-modules') diff --git a/libre/virtualbox-modules/PKGBUILD b/libre/virtualbox-modules/PKGBUILD index 2e747105a..50e9b0721 100644 --- a/libre/virtualbox-modules/PKGBUILD +++ b/libre/virtualbox-modules/PKGBUILD @@ -1,12 +1,12 @@ # $Id$ #Maintainer: Ionut Biru -#Maintainer (Parabola): Jorge López +#Maintainer (Parabola): Jorge López #Contributor (Parabola): André Silva pkgbase=virtualbox-modules pkgname=('virtualbox-modules' 'virtualbox-parabola-modules') pkgver=4.1.18 -pkgrel=1 +pkgrel=2 arch=('i686' 'x86_64') url='http://virtualbox.org' license=('GPL') @@ -19,9 +19,9 @@ md5sums=('38db0a87cba659b484af868b0c2bd3ac' 'ed1341881437455d9735875ddf455fbe') _extramodules=extramodules-3.4-LIBRE -_kernver="$(cat /lib/modules/${_extramodules}/version || true)" +_kernver="$(cat /usr/lib/modules/${_extramodules}/version || true)" -export KERN_DIR=/lib/modules/${_kernver}/build +export KERN_DIR=/usr/lib/modules/${_kernver}/build export KERN_INCL=/usr/src/linux-${_kernver}/include/ build() { @@ -87,18 +87,18 @@ package_virtualbox-modules(){ cd "$srcdir/VirtualBox-${pkgver}/out/linux.$BUILD_PLATFORM_ARCH/release/bin/src" install -D -m644 vboxdrv.ko \ - "$pkgdir/lib/modules/${_extramodules}/vboxdrv.ko" + "$pkgdir/usr/lib/modules/${_extramodules}/vboxdrv.ko" install -D -m644 vboxnetadp.ko \ - "$pkgdir/lib/modules/${_extramodules}/vboxnetadp.ko" + "$pkgdir/usr/lib/modules/${_extramodules}/vboxnetadp.ko" install -D -m644 vboxnetflt.ko \ - "$pkgdir/lib/modules/${_extramodules}/vboxnetflt.ko" + "$pkgdir/usr/lib/modules/${_extramodules}/vboxnetflt.ko" install -D -m644 vboxpci.ko \ - "$pkgdir/lib/modules/${_extramodules}/vboxpci.ko" + "$pkgdir/usr/lib/modules/${_extramodules}/vboxpci.ko" - find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \; + find "${pkgdir}" -name '*.ko' -exec gzip -9 {} + sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "$startdir/virtualbox-modules.install" } diff --git a/libre/virtualbox-modules/virtualbox-modules.install b/libre/virtualbox-modules/virtualbox-modules.install index 14242eaf4..b178686e2 100644 --- a/libre/virtualbox-modules/virtualbox-modules.install +++ b/libre/virtualbox-modules/virtualbox-modules.install @@ -4,16 +4,16 @@ post_install() { ===> # modprobe vboxdrv EOF EXTRAMODULES='extramodules-3.4-LIBRE' - depmod $(cat /lib/modules/$EXTRAMODULES/version) + depmod $(cat /usr/lib/modules/$EXTRAMODULES/version) } post_upgrade() { EXTRAMODULES='extramodules-3.4-LIBRE' - depmod $(cat /lib/modules/$EXTRAMODULES/version) + depmod $(cat /usr/lib/modules/$EXTRAMODULES/version) echo 'In order to use the new version, reload all virtualbox modules manually.' } post_remove() { EXTRAMODULES='extramodules-3.4-LIBRE' - depmod $(cat /lib/modules/$EXTRAMODULES/version) + depmod $(cat /usr/lib/modules/$EXTRAMODULES/version) } diff --git a/libre/virtualbox-modules/virtualbox-parabola-modules.install b/libre/virtualbox-modules/virtualbox-parabola-modules.install index 0e101aedf..31575fb9d 100644 --- a/libre/virtualbox-modules/virtualbox-parabola-modules.install +++ b/libre/virtualbox-modules/virtualbox-parabola-modules.install @@ -3,15 +3,15 @@ cat << EOF ===> You may want to load vboxguest, vboxsf and vboxvideo EOF EXTRAMODULES='extramodules-3.4-LIBRE' - depmod $(cat /lib/modules/$EXTRAMODULES/version) + depmod $(cat /usr/lib/modules/$EXTRAMODULES/version) } post_upgrade() { EXTRAMODULES='extramodules-3.4-LIBRE' - depmod $(cat /lib/modules/$EXTRAMODULES/version) + depmod $(cat /usr/lib/modules/$EXTRAMODULES/version) } post_remove() { EXTRAMODULES='extramodules-3.4-LIBRE' - depmod $(cat /lib/modules/$EXTRAMODULES/version) + depmod $(cat /usr/lib/modules/$EXTRAMODULES/version) } -- cgit v1.2.3-54-g00ecf