mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +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
|
# Core Packages for Chakra, part of chakra-project.org
|
||||||
#
|
#
|
||||||
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
# maintainer abveritas@chakra-project.org
|
||||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
||||||
|
|
||||||
# Find the kernel name inside the chroot
|
# 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)"
|
_kver="$(cat /lib/modules/${_extramodules}/version)"
|
||||||
|
|
||||||
pkgname=acpi_call-lts
|
pkgname=acpi_call-lts
|
||||||
pkgver=20120115
|
pkgver=20120613
|
||||||
pkgrel=2
|
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)."
|
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')
|
arch=('i686' 'x86_64')
|
||||||
url=("http://github.com/mkottman/acpi_call")
|
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')
|
depends=('linux-lts>=3.0' 'linux-lts<3.1' 'linux-lts-headers')
|
||||||
makedepends=('git')
|
makedepends=('git')
|
||||||
install=acpi_call.install
|
install=acpi_call.install
|
||||||
source=(http://chakra.sourceforge.net/sources/acpi_call/acpi_call-${pkgver}.tar.xz)
|
source=("http://chakra-linux.org/sources/acpi_call/acpi_call-${pkgver}.tar.xz")
|
||||||
md5sums=('129841dd806887492609214462792413')
|
md5sums=('fcee74cba78ff644b43d60e046864b9e')
|
||||||
|
|
||||||
|
|
||||||
# create tarball: source PKGBUILD && mksource
|
# create tarball: source PKGBUILD && mksource
|
||||||
@ -36,24 +35,24 @@ build() {
|
|||||||
cd ${srcdir}
|
cd ${srcdir}
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
rm -rf ${srcdir}/acpi_call-build
|
#rm -rf ${srcdir}/acpi_call-build
|
||||||
cp -r ${srcdir}/acpi_call ${srcdir}/acpi_call-build
|
#cp -r ${srcdir}/acpi_call ${srcdir}/acpi_call-build
|
||||||
cd ${srcdir}/acpi_call-build
|
cd ${srcdir}/acpi_call-${pkgver}
|
||||||
|
|
||||||
sed \
|
sed \
|
||||||
-e 's/$(shell uname -r)/3.0-CHAKRA-LTS/g' \
|
-e 's/$(shell uname -r)/3.0.35-1-lts/g' \
|
||||||
-i Makefile
|
-i Makefile
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
package() {
|
package() {
|
||||||
cd ${srcdir}/acpi_call-build
|
cd ${srcdir}/acpi_call-${pkgver}
|
||||||
install -d ${pkgdir}/usr/share/acpi_call || return 1
|
install -d ${pkgdir}/usr/share/acpi_call
|
||||||
install -d ${pkgdir}/usr/bin || return 1
|
install -d ${pkgdir}/usr/bin
|
||||||
install -d ${pkgdir}/usr/share/acpi_call/doc || return 1
|
install -d ${pkgdir}/usr/share/acpi_call/doc
|
||||||
install -Dm755 ${srcdir}/acpi_call-build/test_off.sh \
|
install -Dm755 ${srcdir}/acpi_call-${pkgver}/test_off.sh \
|
||||||
${pkgdir}/usr/share/acpi_call/test_off-lts.sh || return 1
|
${pkgdir}/usr/share/acpi_call/test_off-lts.sh
|
||||||
ln -s /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 \
|
install -Dm644 README \
|
||||||
${pkgdir}/usr/share/acpi_call/README-lts
|
${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
|
# Chakra Packages for Chakra, part of chakra-project.org
|
||||||
#
|
#
|
||||||
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
# maintainer : abveritas@chakra-project.org
|
||||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
||||||
|
|
||||||
# Find the kernel name inside the chroot
|
# 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)"
|
_kver="$(cat /lib/modules/${_extramodules}/version)"
|
||||||
|
|
||||||
pkgname=vhba-module-lts
|
pkgname=vhba-module-lts
|
||||||
pkgver=20110915
|
pkgver=20120422
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc="Kernel module that emulates SCSI devices"
|
pkgdesc="Kernel module that emulates SCSI devices"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://cdemu.sourceforge.net/"
|
url="http://cdemu.sourceforge.net/"
|
||||||
@ -18,8 +17,10 @@ license=('GPL2')
|
|||||||
depends=('linux-lts>=3.0' 'linux-lts<3.1')
|
depends=('linux-lts>=3.0' 'linux-lts<3.1')
|
||||||
makedepends=('linux-lts-headers')
|
makedepends=('linux-lts-headers')
|
||||||
install=vhba-module.install
|
install=vhba-module.install
|
||||||
source=(http://sourceforge.net/projects/cdemu/files/vhba-module/vhba-module-$pkgver.tar.bz2)
|
source=(http://sourceforge.net/projects/cdemu/files/vhba-module/vhba-module-$pkgver.tar.bz2
|
||||||
md5sums=('8bb99b427ca67bad448f4dd211bdd1a2')
|
60-vhba.rules)
|
||||||
|
md5sums=('d97372da1d270d1605742b2995fb6678'
|
||||||
|
'549bd2d9696bd1884c8eed7193c00e21')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/vhba-module-$pkgver"
|
cd "$srcdir/vhba-module-$pkgver"
|
||||||
@ -30,4 +31,7 @@ package() {
|
|||||||
cd "$srcdir/vhba-module-$pkgver"
|
cd "$srcdir/vhba-module-$pkgver"
|
||||||
install -D vhba.ko "$pkgdir/lib/modules/${_extramodules}/vhba.ko"
|
install -D vhba.ko "$pkgdir/lib/modules/${_extramodules}/vhba.ko"
|
||||||
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/vhba-module.install"
|
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() {
|
post_install() {
|
||||||
echo ">> Place 'vhba' in MODULES= in /etc/rc.conf to enable vhba on system boot."
|
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."
|
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)
|
depmod $(cat /lib/modules/$EXTRAMODULES/version)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ post_upgrade() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post_remove() {
|
post_remove() {
|
||||||
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS'
|
EXTRAMODULES='extramodules-3.0-lts'
|
||||||
depmod $(cat /lib/modules/$EXTRAMODULES/version)
|
depmod $(cat /lib/modules/$EXTRAMODULES/version)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user