wok-4.x rev 1836
Add nvidia,nvidia-glx,nvidia-settings
author | Bill Nagel <b1+slitaz@nagel.org> |
---|---|
date | Wed Dec 10 23:57:23 2008 -0800 (2008-12-10) |
parents | c12b18c9fc29 |
children | 88bf5a2b55c3 |
files | nvidia-glx/receipt nvidia-settings/receipt nvidia/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nvidia-glx/receipt Wed Dec 10 23:57:23 2008 -0800 1.3 @@ -0,0 +1,31 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="nvidia-glx" 1.7 +VERSION="177.82" 1.8 +CATEGORY="non-free" 1.9 +SHORT_DESC="NVIDIA X.org libraries and utilities" 1.10 +MAINTAINER="b1+slitaz@nagel.org" 1.11 +DEPENDS="nvidia xorg xorg-server" 1.12 +WANTED="nvidia" 1.13 +WEB_SITE="http://www.nvidia.com" 1.14 + 1.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.16 +genpkg_rules() 1.17 +{ 1.18 + mkdir -p $fs/usr/{bin,lib/tls} 1.19 + mkdir -p $fs/usr/lib/X11/modules/{extensions,drivers} 1.20 + 1.21 + install -m755 $src/usr/lib/lib{GL,GLcore,nvidia-cfg,nvidia-tls}.so.$VERSION $fs/usr/lib 1.22 + install -m755 $src/usr/{lib/tls,X11R6/lib}/lib*.so.$VERSION $fs/usr/lib/tls 1.23 + install -m755 $src/usr/X11R6/lib/modules/drivers/nvidia_drv.so $fs/usr/lib/X11/modules/drivers 1.24 + install -m755 $src/usr/X11R6/lib/modules/extensions/libglx.so.$VERSION $fs/usr/lib/X11/modules/extensions 1.25 + 1.26 + install -m755 $src/usr/bin/nvidia-xconfig $fs/usr/bin/ 1.27 + 1.28 + find $fs/ -name \*.so.$VERSION | while read lib; do 1.29 + libname=$(basename "$lib") 1.30 + (cd $(dirname "$lib") && 1.31 + ln -s $libname ${libname%.$VERSION} && 1.32 + ln -s $libname ${libname%.$VERSION}.1) 1.33 + done 1.34 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/nvidia-settings/receipt Wed Dec 10 23:57:23 2008 -0800 2.3 @@ -0,0 +1,21 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="nvidia-settings" 2.7 +VERSION="177.82" 2.8 +CATEGORY="non-free" 2.9 +SHORT_DESC="NVIDIA X.org GUI configuration tool." 2.10 +MAINTAINER="b1+slitaz@nagel.org" 2.11 +DEPENDS="nvidia-glx gtk+" 2.12 +WANTED="nvidia" 2.13 +WEB_SITE="http://www.nvidia.com" 2.14 + 2.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.16 +genpkg_rules() 2.17 +{ 2.18 + mkdir -p $fs/usr/{bin,share/pixmaps,share/applications} 2.19 + install -m755 $src/usr/bin/nvidia-settings $fs/usr/bin/ 2.20 + install -m644 $src/usr/share/pixmaps/nvidia-settings.png $fs/usr/share/pixmaps/ 2.21 + install -m644 $src/usr/share/applications/nvidia-settings.desktop $fs/usr/share/applications/ 2.22 + sed -i 's:__UTILS_PATH__:/usr/bin:' $fs/usr/share/applications/nvidia-settings.desktop 2.23 + sed -i 's:__PIXMAP_PATH__:/usr/share/pixmaps:' $fs/usr/share/applications/nvidia-settings.desktop 2.24 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/nvidia/receipt Wed Dec 10 23:57:23 2008 -0800 3.3 @@ -0,0 +1,59 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="nvidia" 3.7 +VERSION="177.82" 3.8 +KERNEL_VERSION="2.6.25.5-slitaz" 3.9 +CATEGORY="non-free" 3.10 +SHORT_DESC="NVIDIA X.org kernel driver." 3.11 +MAINTAINER="b1+slitaz@nagel.org" 3.12 +DEPENDS="xorg xorg-server linux-agp" 3.13 +TARBALL="NVIDIA-Linux-x86-$VERSION-pkg0.run" 3.14 +WEB_SITE="http://www.nvidia.com" 3.15 +_WGET_URL="http://us.download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL" 3.16 + 3.17 +# Rules to configure and make the package. 3.18 +compile_rules() 3.19 +{ 3.20 + if [ ! -d $WOK/linux/taz ]; then 3.21 + tazwok cook linux 3.22 + fi 3.23 + if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ]; then 3.24 + cd $SOURCES_REPOSITORY 3.25 + download $_WGET_URL 3.26 + if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ]; then 3.27 + echo -e "\nDownload failed, exiting. Please check WGET_URL variable.\n" 3.28 + exit 1 3.29 + fi 3.30 + else 3.31 + echo -n "Source tarball exit... " 3.32 + status 3.33 + fi 3.34 + if [ ! -d $src ]; then 3.35 + cd $WOK/$PACKAGE 3.36 + sh "$SOURCES_REPOSITORY/$TARBALL" --extract-only 3.37 + mv "NVIDIA-Linux-x86-$VERSION-pkg0" "$PACKAGE-$VERSION" 3.38 + fi 3.39 + cd $src/usr/src/nv 3.40 + [ ! -f Makefile ] && ln -s Makefile.kbuild Makefile 3.41 + make SYSSRC=$(ls -d $WOK/linux/linux-*/) module 3.42 +} 3.43 + 3.44 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.45 +genpkg_rules() 3.46 +{ 3.47 + mkdir -p $fs/lib/modules/$KERNEL_VERSION/kernel/drivers/video 3.48 + install -m644 $src/usr/src/nv/nvidia.ko $fs/lib/modules/$KERNEL_VERSION/kernel/drivers/video/ 3.49 + mkdir -p $fs/usr/share/doc/nvidia 3.50 + cp $src/LICENSE $fs/usr/share/doc/nvidia 3.51 +} 3.52 + 3.53 +# Post install/remove commands for Tazpkg. 3.54 +post_install() 3.55 +{ 3.56 + depmod -a -b "$1/" $KERNEL_VERSION 3.57 +} 3.58 + 3.59 +post_remove() 3.60 +{ 3.61 + depmod -a $KERNEL_VERSION 3.62 +}