Commit 2336e695 authored by AlmAck's avatar AlmAck

LTS Kernel 3.14 (look at the .order list in the core repository)

madwifi removed no longer maintained
parent b0d46b0e
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
_extramodules=extramodules-3.2-lts
_extramodules=extramodules-3.14-CHAKRA-LTS
_kver="$(cat /lib/modules/${_extramodules}/version)"
_kernelver=3.2.63
_kernelver=3.14.43
pkgname=bbswitch-lts
_pkgname=bbswitch
pkgver=0.8
pkgrel=3
pkgrel=4
pkgdesc="kernel module allowing to switch dedicated graphics card on Optimus laptops"
arch=('x86_64')
url=("http://github.com/Bumblebee-Project/bbswitch")
......
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
_extramodules=extramodules-3.2-lts
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
_kernelver=3.2.63
_extramodules=extramodules-3.14-CHAKRA-LTS
_kver="$(cat /lib/modules/${_extramodules}/version)"
_kernelver=3.14.43
url_ref="http://support.amd.com/en-us/download/desktop?os=Linux+x86"
DLAGENTS="http::/usr/bin/curl --referer ${url_ref} -o %o %u"
pkgname=catalyst-lts
pkgver=14.4
pkgrel=3
_amdver=14.10.1006.1001
pkgver=14.12
pkgrel=1
_amdver=14.501.1003
pkgdesc="AMD/ATI Catalyst drivers for linux. fglrx kernel module only"
arch=('x86_64')
url="http://www.amd.com"
screenshot="http://linuxtation3.files.wordpress.com/2007/03/pantallazo.jpg"
license=('custom')
depends=("linux-lts=${_kernelver}" 'linux-lts<3.4' 'catalyst-utils')
depends=("linux-lts=${_kernelver}" 'catalyst-utils')
makedepends=('gcc-libs' 'gcc>4.0.0' 'make' "linux-lts-headers=${_kernelver}")
conflicts=('catalyst-test' 'nvidia' 'xf86-video-ati' 'xf86-video-radeonhd')
install=catalyst.install
source=(http://www2.ati.com/drivers/linux/amd-catalyst-${pkgver/./-}-rev2-linux-x86-x86-64-may6.zip
url_ref="http://support.amd.com/en-us/download/desktop?os=Linux+x86"
DLAGENTS="http::/usr/bin/curl --referer ${url_ref} -o %o %u"
source=(
http://www2.ati.com/drivers/linux/amd-catalyst-omega-${pkgver}-linux-run-installers.zip
# http://archive.ubuntu.com/ubuntu/pool/restricted/f/fglrx-installer/fglrx-installer_14.201.orig.tar.gz
ati_make.sh
makefile_compat.patch
lano1106_fglrx_intel_iommu.patch
lano1106_kcl_agp_13_4.patch
lano1106_fglrx-13.8_proc.patch
ati-compat_alloc_user_space.patch
fglrx_supported)
md5sums=('6e9483e8d34aea68af22fbb70116275f'
'660396540b0ceaff71d6155c986734de'
'3e1b82bd69774ea808da69c983d6a43b'
ati-compat_alloc_user_space.patch
lano1106_fglrx_intel_iommu.patch
lano1106_kcl_agp_13_4.patch
makefile_compat.patch
kolasa_fglrx_312.patch
cold-fglrx-3.14-current_euid.patch)
md5sums=('ced4329274a02712406bda678ffbd743'
'fd98b7e486d7fd4cad8de7b95b5b031e'
'21013e49598edfffa7f37b62b2d6a930'
'5184b94a2a40216a67996999481dd9ee'
'c5156eddf81c8a1719b160d05a2e8d67'
'2ab4837233de42332753882445373d7b'
'21013e49598edfffa7f37b62b2d6a930'
'8bd182de340d6ed8b2dfcedfd3e5a389')
build() {
msg "Unpacking archive ..."
/bin/sh ./fglrx-${_amdver}/amd-driver-installer-${_amdver}-x86.x86_64.run --extract archive_files
'3e1b82bd69774ea808da69c983d6a43b'
'ef66b0b679f53259a5b4d15f2111ee0d'
'ba33b6ef10896d3e1b5e4cd96390b771')
build() {
## Unpack archive
# /bin/sh ./amd-catalyst-${pkgver}-linux-x86.x86_64.run --extract archive_files
/bin/sh ./fglrx-${_amdver}/amd-driver-installer-${_amdver}-x86.x86_64.run --extract archive_files
#mkdir common
#mv etc lib usr common
#mkdir archive_files
#mv arch common xpic xpic_64a archive_files
msg "Setting compilation variables ..."
# include ati_make.sh and use _ati_check function from it
......@@ -49,49 +59,47 @@ build() {
_ati_check
BUILDARCH=x86_64
_archdir=x86_64
_archdir=x86_64
cd "${srcdir}/archive_files/"
msg "Applying patch(es) ..."
# makefile patch to choose arch_compat_alloc_user_space or older compat_alloc_user_space
# works only in combination with ati_make.sh script
patch -Np1 -i ../makefile_compat.patch
patch -Np1 -i ../lano1106_fglrx_intel_iommu.patch
patch -Np1 -i ../lano1106_kcl_agp_13_4.patch
patch -Np1 -i ../lano1106_fglrx-13.8_proc.patch
# https://github.com/herecura/herecura/blob/master/keep-old-system-alive/catalyst-legacy-slk/ati-2.6.36-compat_alloc_user_space.patch
patch -Np1 -i ../ati-compat_alloc_user_space.patch
## makefile patch to choose arch_compat_alloc_user_space or older compat_alloc_user_space
## works only in combination with ati_make.sh script
patch -Np1 -i ${srcdir}/ati-compat_alloc_user_space.patch
patch -Np1 -i ${srcdir}/makefile_compat.patch
patch -Np1 -i ${srcdir}/lano1106_fglrx_intel_iommu.patch
patch -Np1 -i ${srcdir}/lano1106_kcl_agp_13_4.patch
patch -Np1 -i ${srcdir}/cold-fglrx-3.14-current_euid.patch
cd "${srcdir}/archive_files/common/lib/modules/fglrx/build_mod"
cp "${srcdir}/archive_files/arch/${_archdir}/lib/modules/fglrx/build_mod/libfglrx_ip.a" .
cp 2.6.x/Makefile .
patch -Np1 -i ${srcdir}/kolasa_fglrx_312.patch
cp "${srcdir}/archive_files/arch/${_archdir}/lib/modules/fglrx/build_mod/libfglrx_ip.a" .
cp 2.6.x/Makefile .
msg "Compiling fglrx module ..."
# Compile module using _ati_check variables
CFLAGS_MODULE="-DMODULE -DATI -DFGL -DPAGE_ATTR_FIX=$PAGE_ATTR_FIX -DCOMPAT_ALLOC_USER_SPACE=$COMPAT_ALLOC_USER_SPACE $def_smp $def_modversions"
make -C /usr/lib/modules/${_kernver}/build SUBDIRS="`pwd`" ARCH=${BUILDARCH} \
MODFLAGS="$CFLAGS_MODULE" \
CFLAGS_MODULE="$CFLAGS_MODULE" \
PAGE_ATTR_FIX=$PAGE_ATTR_FIX COMPAT_ALLOC_USER_SPACE=$COMPAT_ALLOC_USER_SPACE modules
make -C /usr/lib/modules/${_kver}//build SUBDIRS="`pwd`" ARCH=${BUILDARCH} \
MODFLAGS="-DMODULE -DATI -DFGL -DPAGE_ATTR_FIX=$PAGE_ATTR_FIX -DCOMPAT_ALLOC_USER_SPACE=$COMPAT_ALLOC_USER_SPACE $def_smp $def_modversions" \
PAGE_ATTR_FIX=$PAGE_ATTR_FIX COMPAT_ALLOC_USER_SPACE=$COMPAT_ALLOC_USER_SPACE modules
}
package() {
# here we are checking kernel's extramodules dir
for r in /usr/lib/modules/*; do
s=${r:17}
if [[ ${s:0:3} = "ext" ]]; then
if [[ `cat ${r}/version | grep -c ${_kernver}` != 0 ]]; then
_destidir=${s}
sed -i -e "s/EXTRAMODULES=.*/EXTRAMODULES=${s}/" $startdir/catalyst.install
fi
elif [[ ${s} = ${_kernver} ]] && [[ ! -e ${r}/extramodules ]]; then
_destidir=${_kernver}/video
sed -i -e "s/EXTRAMODULES=.*/EXTRAMODULES=null/" $startdir/catalyst.install
if [[ `cat ${r}/version | grep -c ${_kver}` != 0 ]]; then
_destidir=${s}
sed -i -e "s/EXTRAMODULES=.*/EXTRAMODULES=${s}/" $startdir/catalyst.install
fi
elif [[ ${s} = ${_kver} ]] && [[ ! -e ${r}/extramodules ]]; then
_destidir=${_kver}/video
sed -i -e "s/EXTRAMODULES=.*/EXTRAMODULES=null/" $startdir/catalyst.install
fi
done
......@@ -100,9 +108,10 @@ package() {
install -m755 -d "${pkgdir}/usr/lib/modules/${_destidir}/"
install -m644 fglrx.ko "${pkgdir}/usr/lib/modules/${_destidir}/"
find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/" $startdir/catalyst.install
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kver}/" $startdir/catalyst.install
# License
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 "${srcdir}/archive_files/LICENSE.TXT" "${pkgdir}/usr/share/licenses/${pkgname}/"
# install -m644 "${srcdir}/archive_files/LICENSE.TXT" "${pkgdir}/usr/share/licenses/${pkgname}/"
install -m644 ${srcdir}/archive_files/common/usr/share/doc/fglrx/LICENSE.TXT ${pkgdir}/usr/share/licenses/${pkgname}
}
#!/bin/bash
### Vi0L0: it is ati's code from their make.sh file, modified a bit to fit our arch linux system, used inside PKGBUILD
# Copyright 1999-2005 ATI Technologies Inc., Markham, Ontario, CANADA.
# All Rights Reserved.
#
# Your use and or redistribution of this software in source and \ or
# binary form, with or without modification, is subject to: (i) your
# ongoing acceptance of and compliance with the terms and conditions of
# Copyright 1999-2005 ATI Technologies Inc., Markham, Ontario, CANADA.
# All Rights Reserved.
#
# Your use and or redistribution of this software in source and \ or
# binary form, with or without modification, is subject to: (i) your
# ongoing acceptance of and compliance with the terms and conditions of
# the ATI Technologies Inc. software End User License Agreement; and (ii)
# your inclusion of this notice in any version of this software that you
# use or redistribute. A copy of the ATI Technologies Inc. software End
# User License Agreement is included with this software and is also
# available by contacting ATI Technologies Inc. at http://www.ati.com
# your inclusion of this notice in any version of this software that you
# use or redistribute. A copy of the ATI Technologies Inc. software End
# User License Agreement is included with this software and is also
# available by contacting ATI Technologies Inc. at http://www.ati.com
function _ati_check()
{
{
# ==============================================================
# resolve if we are running a SMP enabled kernel
......@@ -49,16 +49,16 @@ fi
# Before 2.6.33 autoconf.h is under linux/.
# For 2.6.33 and later autoconf.h is under generated/.
if [ -f /lib/modules/${_kernver}/build/include/generated/autoconf.h ]; then
autoconf_h=/lib/modules/${_kernver}/build/include/generated/autoconf.h
if [ -f /usr/lib/modules/${_kernver}/build/include/generated/autoconf.h ]; then
autoconf_h=/usr/lib/modules/${_kernver}/build/include/generated/autoconf.h
else
autoconf_h=/lib/modules/${_kernver}/build/include/linux/autoconf.h
autoconf_h=/usr/lib/modules/${_kernver}/build/include/linux/autoconf.h
fi
src_file=$autoconf_h
if [ ! -e $src_file ]; then
echo "Warning:"
echo "kernel includes at /lib/modules/${_kernver}/build/include not found or incomplete"
echo "kernel includes at /usr/lib/modules/${_kernver}/build/include not found or incomplete"
echo "file: $src_file"
echo ""
else
......@@ -78,7 +78,7 @@ if [ ! "$SMP" = 0 ]; then
def_smp=-D__SMP__
fi
# ==============================================================
# resolve whether we need to set PAGE_ATTR_FIX
# resolve whether we need to set PAGE_ATTR_FIX
PAGE_ATTR_FIX=0
src_file=/proc/kallsyms
......@@ -99,7 +99,7 @@ src_file=$autoconf_h
if [ ! -e $src_file ];
then
echo "Warning:"
echo "kernel includes at /lib/modules/${_kernver}/build/include not found or incomplete"
echo "kernel includes at /usr/lib/modules/${_kernver}/build/include not found or incomplete"
echo "file: $src_file"
echo ""
else
......@@ -128,13 +128,13 @@ fi
COMPAT_ALLOC_USER_SPACE=compat_alloc_user_space
src_file=/lib/modules/${_kernver}/build/arch/x86/include/asm/compat.h
src_file=/usr/lib/modules/${_kernver}/build/arch/x86/include/asm/compat.h
if [ ! -e $src_file ];
then
echo "Warning:"
echo "kernel includes at /lib/modules/${_kernver}/build/include not found or incomplete"
echo "file: $src_file"
echo ""
echo "Warning:"
echo "kernel includes at /usr/lib/modules/${_kernver}/build/include not found or incomplete"
echo "file: $src_file"
echo ""
else
if [ `cat $src_file | grep -c arch_compat_alloc_user_space` -gt 0 ]
then
......
--- 14.1/common/lib/modules/fglrx/build_mod/firegl_public.c 2014-02-23 19:26:52.215995002 +0100
+++ 14.1/common/lib/modules/fglrx/build_mod/firegl_public.c 2014-02-23 19:27:59.320999596 +0100
@@ -1761,7 +1761,11 @@
#else
#ifdef current_euid
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
+ return __kuid_val(current_euid());
+#else
return current_euid();
+#endif
#else
return current->euid;
#endif
--- ./firegl_public.c.orig 2014-05-25 11:15:02.198520000 +0900
+++ ./firegl_public.c 2014-05-25 11:15:46.289501864 +0900
@@ -1784,7 +1784,8 @@
#else
#ifdef current_euid
- return current_euid();
+// return current_euid();
+ return __kuid_val(current_euid());
#else
return current->euid;
#endif
From edf23ae8816486f1978f712a0a280320ff493769 Mon Sep 17 00:00:00 2001
From: Krzysztof Kolasa <kkolasa@winsoft.pl>
Date: Tue, 1 Oct 2013 20:30:28 +0200
Subject: [PATCH] Add string GPL0 for kernel 3.12.0-rc3
---
firegl_public.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/firegl_public.c b/firegl_public.c
index a47cf7d..d2bc214 100644
--- a/firegl_public.c
+++ b/firegl_public.c
@@ -259,7 +259,11 @@
#endif
#ifdef MODULE_LICENSE
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0)
MODULE_LICENSE("Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY");
+#else
+MODULE_LICENSE("GPL\0Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY");
+#endif
#endif
#ifdef MODULE_DEVICE_TABLE
MODULE_DEVICE_TABLE(pci, fglrx_pci_table);
--
1.8.4
--- 13.8/common/lib/modules/fglrx/build_mod/firegl_public.c 2013-09-26 00:59:28.292596334 -0400
+++ 13.8/common/lib/modules/fglrx/build_mod/firegl_public.c 2013-09-26 01:02:35.036252455 -0400
@@ -821,7 +821,7 @@ static struct proc_dir_entry *firegl_pro
KCL_DEBUG1(FN_FIREGL_PROC, "minor %d, proc_list 0x%08lx\n", minor, (unsigned long)proc_list);
if (!minor)
{
- root = KCL_create_proc_dir(NULL, "ati", S_IRUGO|S_IXUGO);
+ root = KCL_create_proc_dir(NULL, "ati", 0);
}
if (!root)
@@ -835,7 +835,7 @@ static struct proc_dir_entry *firegl_pro
// Global major debice number entry and Global debug entry
while (globallist->rp || globallist->fops)
{
- ent = KCL_create_proc_entry(root, globallist->name, S_IFREG|S_IRUGO, globallist->fops, globallist->rp, globallist->wp, dev);
+ ent = KCL_create_proc_entry(root, globallist->name, 0, globallist->fops, globallist->rp, globallist->wp, dev);
if (!ent)
{
KCL_remove_proc_dir_entry(NULL, "ati");
@@ -847,7 +847,7 @@ static struct proc_dir_entry *firegl_pro
}
sprintf(name, "%d", minor);
- *dev_root = KCL_create_proc_dir(root, name, S_IRUGO|S_IXUGO);
+ *dev_root = KCL_create_proc_dir(root, name, 0);
if (!*dev_root) {
KCL_remove_proc_dir_entry(root, "major");
KCL_remove_proc_dir_entry(NULL, "ati");
@@ -857,7 +857,7 @@ static struct proc_dir_entry *firegl_pro
while (list->rp || list->fops)
{
- ent = KCL_create_proc_entry(*dev_root, list->name, S_IFREG|S_IRUGO, list->fops, list->rp, list->wp,
+ ent = KCL_create_proc_entry(*dev_root, list->name, 0, list->fops, list->rp, list->wp,
((dev->pubdev.signature == FGL_DEVICE_SIGNATURE)? firegl_find_device(minor) : (dev)));
if (!ent)
{
@@ -6358,9 +6358,9 @@ void * KCL_create_proc_dir(void *root_di
dir = create_proc_entry(name, S_IFDIR | access, (struct proc_dir_entry *)root_dir);
#else
if (root_dir == NULL)
- dir = proc_mkdir_mode(name, S_IFDIR | access, NULL);
+ dir = proc_mkdir_mode(name, access, NULL);
else
- dir = proc_mkdir_mode(name, S_IFDIR | access, (struct proc_dir_entry *)root_dir);
+ dir = proc_mkdir_mode(name, access, (struct proc_dir_entry *)root_dir);
#endif
return dir;
# maintainer almack@chakraos.org
# Find the kernel name inside the chroot
_extramodules=extramodules-3.2-lts
_kver="$(cat /usr/lib/modules/${_extramodules}/version)"
_kernelver=3.2.63
pkgname=madwifi-lts
pkgver=0.9.4.4182
_ver=r4182-20140204
pkgrel=3
pkgdesc="Madwifi drivers for Atheros wireless chipsets"
arch=('x86_64')
license=('GPL')
url="http://madwifi-project.org"
depends=('madwifi-utils' "linux-lts=${_kernelver}")
makedepends=("linux-lts-headers=${_kernelver}" 'sharutils')
install=madwifi-ng.install
# subversion source: svn checkout http:/madwifi-project.org/svn/madwifi/trunk madwifi
source=(http://snapshots.madwifi-project.org/madwifi-0.9.4-current.tar.gz)
#http://downloads.sourceforge.net/madwifi/madwifi-${pkgver}.tar.gz)
md5sums=('8c373ac12f551b197586a5bc398bc7a6')
groups=("linux-lts-modules")
build()
{
cd madwifi-*-${_ver}
# kernel 3.2 abi change
sed -i -e "s/.ndo_set_multicast_list/.ndo_set_rx_mode/" ath/if_ath.c
sed -i -e "s/ieee80211_set_multicast_list/ieee80211_set_rx_mode/" net80211/ieee80211.c
sed -i -e "s/ndo_set_multicast_list/ndo_set_rx_mode/" net80211/ieee80211.c
sed -i 's/-Werror//' Makefile.inc
sed -i 's/\[4-9\]\\\./[0-9]-/' Makefile
make KMODPATH="/usr/lib/modules/$_extramodules" KERNELPATH=/usr/lib/modules/${_kver}/build KERNELRELEASE=${_kver} modules
}
package()
{
cd madwifi-*-${_ver}
make KMODPATH="/usr/lib/modules/$_extramodules" KERNELPATH=/usr/lib/modules/${_kver}/build KERNELRELEASE=${_kver} modules \
DESTDIR="${pkgdir}" KERNELRELEASE=${_kver} install-modules
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" ${startdir}/*.install
find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
}
post_install()
{
post_upgrade
}
post_upgrade()
{
EXTRAMODULES='extramodules-3.2-lts'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_remove()
{
post_upgrade
}
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# Find the kernel name inside the chroot
_kernver=`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
pkgname=madwifi-utils
pkgver=0.9.4.4181
_ver=r4181-20130909
pkgrel=1
pkgdesc="Userspace tools of madwifi drivers for Atheros wireless chipsets."
arch=('x86_64')
license=('GPL')
url="http://madwifi-project.org"
depends=('wireless_tools')
makedepends=('sharutils') #'linux-headers'
provides=("madwifi-ng-utils")
conflicts=("madwifi-ng-utils")
replaces=("madwifi-ng-utils")
# subversion source: svn checkout http://madwifi-project.org/svn/madwifi/trunk madwifi
source=(http://snapshots.madwifi-project.org/madwifi-trunk-current.tar.gz)
#http://downloads.sourceforge.net/sourceforge/madwifi/madwifi-$pkgver.tar.gz
md5sums=('6505f0a18a3115915daf4dba9ddba4fc')
build()
{
cd madwifi-trunk-$_ver
export KERNELPATH=/lib/modules/${_kernver}/build
make tools
}
package()
{
cd madwifi-trunk-$_ver
make DESTDIR=${pkgdir} \
BINDIR=/usr/bin \
MANDIR=/usr/share/man \
install-tools
}
#
# Chakra Packages for Chakra, part of chakra-project.org
_extramodules=extramodules-3.10-CHAKRA
_kver="$(cat /lib/modules/${_extramodules}/version)"
pkgname=madwifi
pkgver=0.9.4.4182
pkgrel=3
pkgdesc="Madwifi drivers for Atheros wireless chipsets"
arch=('x86_64')
license=('GPL')
url="http://madwifi-project.org"
depends=('madwifi-utils' 'linux>=3.10' 'linux<3.11')
makedepends=('linux-headers' 'sharutils' 'subversion')
install=madwifi-ng.install
# subversion source: svn checkout http:/madwifi-project.org/svn/madwifi/trunk madwifi
source=(http://snapshots.madwifi-project.org/madwifi-trunk-current.tar.gz)
#http://chakra.sourceforge.net/sources/madwifi/madwifi-${pkgver}.tar.gz)
#http://downloads.sourceforge.net/madwifi/madwifi-${pkgver}.tar.gz)
md5sums=('8cc9cb67ec2fd7c4a71b6725a764c171')
groups=("linux-modules")
build()
{
cd madwifi-$pkgver
# kernel 3.2 abi change
sed -i -e "s/.ndo_set_multicast_list/.ndo_set_rx_mode/" ath/if_ath.c
sed -i -e "s/ieee80211_set_multicast_list/ieee80211_set_rx_mode/" net80211/ieee80211.c
sed -i -e "s/ndo_set_multicast_list/ndo_set_rx_mode/" net80211/ieee80211.c
sed -i 's/-Werror//' Makefile.inc
sed -i 's/\[4-9\]\\\./[0-9]-/' Makefile
make KERNELPATH=/lib/modules/${_kver}/build KERNELRELEASE=${_kver} modules
}
package()
{
cd madwifi-$pkgver
make KERNELPATH=/lib/modules/${_kver}/build KERNELRELEASE=${_kver} modules \
DESTDIR="${pkgdir}" KERNELRELEASE=${_kver} install-modules
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" ${startdir}/*.install
mkdir -p "${pkgdir}/lib/modules/$_extramodules"
mv "${pkgdir}"/lib/modules/${_kver}/net/* "${pkgdir}/lib/modules/$_extramodules"
rm -r "${pkgdir}"/lib/modules/${_kver}
find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
}
md5sums=('dd49555653aa0e5ff356c89d9bb6afd7')
post_install()
{
post_upgrade
}
post_upgrade()
{
EXTRAMODULES='extramodules-3.9-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_remove()
{
post_upgrade
}
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# Find the kernel name inside the chroot
_extramodules=extramodules-3.2-lts
_kver="$(cat /usr/lib/modules/${_extramodules}/version)"
_kernelver=3.2.63
_extramodules=extramodules-3.14-CHAKRA-LTS
_kver="$(cat /lib/modules/${_extramodules}/version)"
_kernelver=3.14.43
pkgname=nvidia-304xx-lts
pkgver=304.123
pkgrel=2
pkgver=304.125
pkgrel=1
pkgdesc="NVIDIA drivers for linux."
arch=('x86_64')
url="http://www.nvidia.com/"
depends=("linux-lts=${_kernelver}" "nvidia-304xx-utils=${pkgver}")
depends=("linux-lts=${_kernelver}" "nvidia-304xx-libgl" "nvidia-304xx-utils=${pkgver}")
makedepends=("linux-lts-headers=${_kernelver}")
conflicts=('nvidia-96xx-lts' 'nvidia-173xx-lts' 'nvidia-lts')
conflicts=('nvidia-340xx-lts' 'nvidia-lts')
license=('custom')
install=nvidia.install
_pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
md5sums=('9d461e9e00e473f458aee96cd6d85101')
_pkg="NVIDIA-Linux-${arch}-${pkgver}-no-compat32"
source=("ftp://download.nvidia.com/XFree86/Linux-${arch}/${pkgver}/${_pkg}.run")
md5sums=('291d41ccdbcc08f752a38f9e0a7eeea0')
build() {
prepare() {
cd "${srcdir}"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install"
sh "${_pkg}.run" --extract-only
cd "${_pkg}"
}
build() {
cd "${_pkg}/kernel"
make SYSSRC=/usr/lib/modules/"${_kver}/build" module
}
......
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# Find the kernel name inside the chroot
_extramodules=extramodules-3.2-lts
_kver="$(cat /usr/lib/modules/${_extramodules}/version)"
_kernelver=3.2.63
_extramodules=extramodules-3.14-CHAKRA-LTS
_kver="$(cat /lib/modules/${_extramodules}/version)"
_kernelver=3.14.43
pkgname=nvidia-340xx-lts
pkgver=340.58
pkgver=340.76
pkgrel=1
pkgdesc="NVIDIA drivers for linux."
arch=('x86_64')
url="http://www.nvidia.com/"
depends=("linux-lts=${_kernelver}" "nvidia-340xx-utils=${pkgver}")
makedepends=("linux-lts-headers=${_kernelver}")
conflicts=('nvidia-96xx-lts' 'nvidia-173xx-lts' 'nvidia-lts')
conflicts=('nvidia-304xx-lts' 'nvidia-lts')
license=('custom')
install=nvidia.install
_pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
md5sums=('26e75f80df3f49ac2fe35c65b9de709e')
_pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
source=("ftp://download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run")
md5sums=('440df290e213280d6e20d4d4be6f8b4c')
build() {
cd "${srcdir}"
prepare() {
sh "${_pkg}.run" --extract-only
cd "${_pkg}"
}