mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-23 18:14:54 +08:00
acpi_call & vhba-module lts updates/rebuild for new lts
This commit is contained in:
parent
e49b445e45
commit
edf7795e21
@ -1,16 +1,15 @@
|
||||
#
|
||||
# Core Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||
# maintainer abveritas@chakra-project.org
|
||||
|
||||
# Find the kernel name inside the chroot
|
||||
_extramodules=extramodules-`pacman -Q linux-lts | cut -c11-13 | sed 's/linux-lts //g'`-CHAKRA-LTS
|
||||
_extramodules=extramodules-`pacman -Q linux-lts | cut -c11-13 | sed 's/linux-lts //g'`-lts
|
||||
_kver="$(cat /lib/modules/${_extramodules}/version)"
|
||||
|
||||
pkgname=acpi_call-lts
|
||||
pkgver=20120115
|
||||
pkgrel=2
|
||||
pkgver=20120613
|
||||
pkgrel=1
|
||||
pkgdesc="A kernel module that enables you to call parameterless ACPI methods by writing the method name to /proc/acpi/call, e.g. to turn off discrete graphics card in a dual graphics environment (like NVIDIA Optimus)."
|
||||
arch=('i686' 'x86_64')
|
||||
url=("http://github.com/mkottman/acpi_call")
|
||||
@ -18,8 +17,8 @@ license=('GPL')
|
||||
depends=('linux-lts>=3.0' 'linux-lts<3.1' 'linux-lts-headers')
|
||||
makedepends=('git')
|
||||
install=acpi_call.install
|
||||
source=(http://chakra.sourceforge.net/sources/acpi_call/acpi_call-${pkgver}.tar.xz)
|
||||
md5sums=('129841dd806887492609214462792413')
|
||||
source=("http://chakra-linux.org/sources/acpi_call/acpi_call-${pkgver}.tar.xz")
|
||||
md5sums=('fcee74cba78ff644b43d60e046864b9e')
|
||||
|
||||
|
||||
# create tarball: source PKGBUILD && mksource
|
||||
@ -36,24 +35,24 @@ build() {
|
||||
cd ${srcdir}
|
||||
|
||||
## Build
|
||||
rm -rf ${srcdir}/acpi_call-build
|
||||
cp -r ${srcdir}/acpi_call ${srcdir}/acpi_call-build
|
||||
cd ${srcdir}/acpi_call-build
|
||||
#rm -rf ${srcdir}/acpi_call-build
|
||||
#cp -r ${srcdir}/acpi_call ${srcdir}/acpi_call-build
|
||||
cd ${srcdir}/acpi_call-${pkgver}
|
||||
|
||||
sed \
|
||||
-e 's/$(shell uname -r)/3.0-CHAKRA-LTS/g' \
|
||||
-e 's/$(shell uname -r)/3.0.35-1-lts/g' \
|
||||
-i Makefile
|
||||
make
|
||||
}
|
||||
package() {
|
||||
cd ${srcdir}/acpi_call-build
|
||||
install -d ${pkgdir}/usr/share/acpi_call || return 1
|
||||
install -d ${pkgdir}/usr/bin || return 1
|
||||
install -d ${pkgdir}/usr/share/acpi_call/doc || return 1
|
||||
install -Dm755 ${srcdir}/acpi_call-build/test_off.sh \
|
||||
${pkgdir}/usr/share/acpi_call/test_off-lts.sh || return 1
|
||||
cd ${srcdir}/acpi_call-${pkgver}
|
||||
install -d ${pkgdir}/usr/share/acpi_call
|
||||
install -d ${pkgdir}/usr/bin
|
||||
install -d ${pkgdir}/usr/share/acpi_call/doc
|
||||
install -Dm755 ${srcdir}/acpi_call-${pkgver}/test_off.sh \
|
||||
${pkgdir}/usr/share/acpi_call/test_off-lts.sh
|
||||
ln -s /usr/share/acpi_call/test_off-lts.sh \
|
||||
${pkgdir}/usr/bin/test_off-lts.sh || return 1
|
||||
${pkgdir}/usr/bin/test_off-lts.sh
|
||||
install -Dm644 README \
|
||||
${pkgdir}/usr/share/acpi_call/README-lts
|
||||
|
||||
|
1
vhba-module-lts/60-vhba.rules
Normal file
1
vhba-module-lts/60-vhba.rules
Normal file
@ -0,0 +1 @@
|
||||
KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu"
|
@ -1,16 +1,15 @@
|
||||
#
|
||||
# Chakra Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||
# maintainer : abveritas@chakra-project.org
|
||||
|
||||
# Find the kernel name inside the chroot
|
||||
_extramodules=extramodules-`pacman -Q linux-lts | cut -c11-13 | sed 's/linux-lts //g'`-CHAKRA-LTS
|
||||
_extramodules=extramodules-`pacman -Q linux-lts | cut -c11-13 | sed 's/linux-lts //g'`-lts
|
||||
_kver="$(cat /lib/modules/${_extramodules}/version)"
|
||||
|
||||
pkgname=vhba-module-lts
|
||||
pkgver=20110915
|
||||
pkgrel=2
|
||||
pkgver=20120422
|
||||
pkgrel=1
|
||||
pkgdesc="Kernel module that emulates SCSI devices"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://cdemu.sourceforge.net/"
|
||||
@ -18,8 +17,10 @@ license=('GPL2')
|
||||
depends=('linux-lts>=3.0' 'linux-lts<3.1')
|
||||
makedepends=('linux-lts-headers')
|
||||
install=vhba-module.install
|
||||
source=(http://sourceforge.net/projects/cdemu/files/vhba-module/vhba-module-$pkgver.tar.bz2)
|
||||
md5sums=('8bb99b427ca67bad448f4dd211bdd1a2')
|
||||
source=(http://sourceforge.net/projects/cdemu/files/vhba-module/vhba-module-$pkgver.tar.bz2
|
||||
60-vhba.rules)
|
||||
md5sums=('d97372da1d270d1605742b2995fb6678'
|
||||
'549bd2d9696bd1884c8eed7193c00e21')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/vhba-module-$pkgver"
|
||||
@ -30,4 +31,7 @@ package() {
|
||||
cd "$srcdir/vhba-module-$pkgver"
|
||||
install -D vhba.ko "$pkgdir/lib/modules/${_extramodules}/vhba.ko"
|
||||
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/vhba-module.install"
|
||||
|
||||
install -Dm644 "$srcdir/60-vhba.rules" \
|
||||
"$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
post_install() {
|
||||
echo ">> Place 'vhba' in MODULES= in /etc/rc.conf to enable vhba on system boot."
|
||||
echo ">> This module needs to be recompiled for every kernel version upgrade."
|
||||
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS'
|
||||
EXTRAMODULES='extramodules-3.0-lts'
|
||||
depmod $(cat /lib/modules/$EXTRAMODULES/version)
|
||||
}
|
||||
|
||||
@ -10,7 +10,7 @@ post_upgrade() {
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS'
|
||||
EXTRAMODULES='extramodules-3.0-lts'
|
||||
depmod $(cat /lib/modules/$EXTRAMODULES/version)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user