You are not logged in.

#1 2009-04-10 08:43:20

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Nvidia-beta-rt, should I upload this PKGBUILD?

Hi all,

I've never contributed to AUR before, only used it. Recently I installed the RT kernel and realized the only available nvidia drivers are 17x series, nothing from the *stable* and *beta* series (as defined by nvidia).

Anyway, I went to read up a bit on ABS and makepkg, since I needed to change the RT kernel PKGBUILD to get nvidia-beta to install properly. I'm still not satisfied with that, but I DO have a modified nvidia-beta PKGBUILD for installing nvidia-beta on the rt-kernel, leaving your nvidia install for your generic kernel intact and working.

The question is, should I submit this? Its not really much of a change from the current nvidia-beta-xxx scripts. I don't really mind keeping it up-to-date, as I see updates coming in on the primary nvidia-beta. Or should I just post the PKGBUILD here instead of putting it on AUR itself?

Advise, please.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#2 2009-04-10 19:45:56

ugkbunb
Member
Registered: 2009-02-26
Posts: 227

Re: Nvidia-beta-rt, should I upload this PKGBUILD?

which ever you do please make available. I would be interested in seeing what you did.

Offline

#3 2009-04-11 01:53:52

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: Nvidia-beta-rt, should I upload this PKGBUILD?

ugkbunb wrote:

which ever you do please make available. I would be interested in seeing what you did.

Well, here's the PKGBUILD I'm using now. Basically all that's needed is to change pkgname to something that's NOT nvidia-beta. Also I changed the depend from kernel26 to kernel26rt. This needs to be run from within your rt kernel, if not you'll have to replace `uname -r` in _kernver with the specific kernel name (2.6.29-rt for me). Also change that in the nvidia.install file below.

Am still waiting for someone to tell me whether this is appropriate to upload to AUR or not.

# Maintainer : Dan Vratil <progdan@progdansoft.com>

pkgname=nvidia-rt-beta 
pkgver=185.19
_kernver=`uname -r`
pkgrel=1
pkgdesc="NVIDIA beta drivers for kernel26rt." 
arch=('i686' 'x86_64') 
[ "$CARCH" = "i686" ] && ARCH=x86 && NV=0 
[ "$CARCH" = "x86_64" ] && ARCH=x86_64 && NV=0 
provides=(nvidia=${pkgver})
url="http://www.nvidia.com/" 
depends=(kernel26rt nvidia-utils-beta=${pkgver}) 
conflicts=('nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy') 
license=('custom') 
install=('nvidia.install')
source=(ftp://download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg${NV}.run) 

md5sums=('5a4ee703801311f1c721f9ed1e98c021')
[ "$CARCH" = "x86_64" ] && md5sums=('ef5b8eff89f740d1cc7e483fb4c93b3b')





build()
{
  # Extract
  echo ${_kernver}
  cd $startdir/src/
  sh NVIDIA-Linux-$ARCH-${pkgver}-pkg${NV}.run --extract-only
  cd NVIDIA-Linux-$ARCH-${pkgver}-pkg${NV}
  
  # Any extra patches are applied in here...

  cd usr/src/nv/
  ln -s Makefile.kbuild Makefile
  make SYSSRC=/lib/modules/${_kernver}/build module
  
  # install kernel module
  mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
  install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/

  sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
}
# arg 1:  the new package version
post_install() {
  KERNEL_VERSION=`uname -r`
  depmod -v $KERNEL_VERSION  > /dev/null 2>&1
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  post_install $1
  rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and$
}

# arg 1:  the old package version
post_remove() {
  KERNEL_VERSION=`uname -r`
  depmod -v $KERNEL_VERSION      > /dev/null 2>&1
}

Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB