Date: Sat, 9 Aug 2003 12:14:54 +0700 (NOVST) From: Alexey Dokuchaev <danfe@regency.nsu.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/55410: Some tweaks for x11/nvidia-driver port Message-ID: <200308090514.h795EskY055548@regency.nsu.ru> Resent-Message-ID: <200308090520.h795KDi3079938@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 55410 >Category: ports >Synopsis: Some tweaks for x11/nvidia-driver port >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Aug 08 22:20:13 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Alexey Dokuchaev >Release: FreeBSD 4.8-STABLE i386 >Organization: CNIT NSU >Environment: System: FreeBSD regency.nsu.ru 4.8-STABLE FreeBSD 4.8-STABLE #0: Fri Aug 8 20:27:14 NOVST 2003 root@regency.nsu.ru:/usr/obj/usr/src/sys/REGENCY i386 >Description: Just a small maintainer update. Attached patch does the following: - eliminates hardcoded version numbers (introduces NVVERSION varibable); - adds INSTALLS_SHLIB per `portlint(1) -A'; - ensures the port upgradeble (removes /dev/nvidia* nodes before mknod(8)ing them). NO PORTREVISION bump necessary. >How-To-Repeat: N/A >Fix: %%% Index: Makefile =================================================================== RCS file: /home/ncvs/ports/x11/nvidia-driver/Makefile,v retrieving revision 1.9 diff -u -r1.9 Makefile --- Makefile 4 Jul 2003 14:35:19 -0000 1.9 +++ Makefile Sat Aug 9 12:08:05 2003 @@ -6,13 +6,13 @@ # PORTNAME= nvidia-driver -PORTVERSION= 1.0.4365 +PORTVERSION= 1.0.${NVVERSION} PORTREVISION?= 0 CATEGORIES= x11 -MASTER_SITES= http://download.nvidia.com/freebsd/1.0-4365/ \ - ftp://download.nvidia.com/freebsd/1.0-4365/ \ - http://download1.nvidia.com/freebsd/1.0-4365/ \ - ftp://download1.nvidia.com/freebsd/1.0-4365/ +MASTER_SITES= http://download.nvidia.com/freebsd/1.0-${NVVERSION}/ \ + ftp://download.nvidia.com/freebsd/1.0-${NVVERSION}/ \ + http://download1.nvidia.com/freebsd/1.0-${NVVERSION}/ \ + ftp://download1.nvidia.com/freebsd/1.0-${NVVERSION}/ DISTNAME= NVIDIA-FreeBSD-x86-${PORTVERSION:S/0./0-/} MAINTAINER= danfe@regency.nsu.ru @@ -20,6 +20,9 @@ USE_X_PREFIX= yes NO_PACKAGE= should be recompiled for a particular FreeBSD kernel +INSTALLS_SHLIB= yes + +NVVERSION= 4365 .include <bsd.port.pre.mk> @@ -29,7 +32,7 @@ XLIBVERSION!= /usr/sbin/pkg_info -O x11/XFree86-4-libraries 2>/dev/null | ${GREP} libraries- || true PLIST_SUB= XSERVVERSION=${XSERVVERSION} XLIBVERSION=${XLIBVERSION} \ - LINUXBASE=${LINUXBASE} NVVERSION=4365 + LINUXBASE=${LINUXBASE} NVVERSION=${NVVERSION} .if !defined(WITHOUT_LINUX) USE_LINUX= yes @@ -81,9 +84,11 @@ post-install: .if ${OSVERSION} < 500000 .for dev in 0 1 2 3 + @rm -f /dev/nvidia${dev} @mknod /dev/nvidia${dev} c 180 ${dev} @${CHMOD} 0666 /dev/nvidia${dev} .endfor + @rm -f /dev/nvidiactl @mknod /dev/nvidiactl c 180 255 @${CHMOD} 0666 /dev/nvidiactl .endif >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308090514.h795EskY055548>