Date: Sat, 24 Jul 2004 13:25:22 +0800 (CST) From: Yen-Ming Lee <leeym@utopia.leeym.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/69516: fix port: misc/matrix-kmod Message-ID: <20040724052522.153E73EA946@utopia.leeym.com> Resent-Message-ID: <200407240530.i6O5UNrc026898@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 69516 >Category: ports >Synopsis: fix port: misc/matrix-kmod >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jul 24 05:30:23 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Yen-Ming Lee >Release: FreeBSD 5.2.1-RELEASE-p9 i386 >Organization: >Environment: System: FreeBSD utopia.leeym.com 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #143: Tue Jul 6 05:16:06 CST 2004 root@utopia.leeym.com:/usr/obj/usr/src/sys/UTOPIA i386 >Description: update DESTDIR / PREFIX / pkg-plist and unbreak this port. >How-To-Repeat: >Fix: --- matrix-kmod.diff begins here --- diff -ruN --exclude CVS /usr/ports/misc/matrix-kmod/Makefile matrix-kmod/Makefile --- /usr/ports/misc/matrix-kmod/Makefile Mon May 19 02:01:40 2003 +++ matrix-kmod/Makefile Sat Jul 24 13:16:47 2004 @@ -11,10 +11,10 @@ MASTER_SITES= http://www.belousov.com/download/ PKGNAMESUFFIX= -kmod -MAINTAINER= strijar@urai.ru +MAINTAINER= strijar@urai.ru COMMENT= Screensaver for console (matrix_saver.ko) "Matrix" like -MAKE_ENV= DESTDIR="${PREFIX}/lib/matrix" +KMODDIR= ${PREFIX}/modules .include <bsd.port.pre.mk> @@ -22,11 +22,9 @@ BROKEN= "Need FreeBSD 4.0 or above" .endif -.if ${OSVERSION} >= 500113 -BROKEN= "Installation fails" -.endif - -pre-install: - ${MKDIR} ${PREFIX}/lib/matrix/modules +do-install: + @${MKDIR} ${KMODDIR} + ${INSTALL_SCRIPT} ${FILESDIR}/matrix_saver.sh ${PREFIX}/etc/rc.d + ${INSTALL_SCRIPT} ${WRKSRC}/*.ko ${KMODDIR} .include <bsd.port.post.mk> diff -ruN --exclude CVS /usr/ports/misc/matrix-kmod/files/matrix_saver.sh matrix-kmod/files/matrix_saver.sh --- /usr/ports/misc/matrix-kmod/files/matrix_saver.sh Thu Jan 1 08:00:00 1970 +++ matrix-kmod/files/matrix_saver.sh Sat Jul 24 13:12:25 2004 @@ -0,0 +1,22 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + if [ -x ${PREFIX}/modules/matrix_saver.ko ]; then + echo -n ' matrix_saver' + kldload ${PREFIX}/modules/matrix_saver.ko + fi + ;; +stop) + kldunload -v -n matrix_saver && echo -n ' matrix_saver' + ;; +*) + echo "Usage: $0 {start|stop}" >&2 + exit 1 + ;; +esac diff -ruN --exclude CVS /usr/ports/misc/matrix-kmod/pkg-plist matrix-kmod/pkg-plist --- /usr/ports/misc/matrix-kmod/pkg-plist Sun Mar 11 03:09:48 2001 +++ matrix-kmod/pkg-plist Sat Jul 24 13:14:34 2004 @@ -1,3 +1,3 @@ -lib/matrix/modules/matrix_saver.ko -@dirrm lib/matrix/modules -@dirrm lib/matrix +etc/rc.d/matrix_saver.sh +modules/matrix_saver.ko +@unexec rmdir -p %D/modules 2>/dev/null || true --- matrix-kmod.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040724052522.153E73EA946>