mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- update DESTDIR / PREFIX / pkg-plist and unbreak this port
PR: ports/69516 Submitted by: Yen-Ming Lee <leeym@utopia.leeym.com> Approved by: maintainer timeout (18 days)
This commit is contained in:
parent
179f12f12d
commit
c51c21d026
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115979
@ -7,14 +7,15 @@
|
||||
|
||||
PORTNAME= matrix
|
||||
PORTVERSION= 1.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= misc
|
||||
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 +23,9 @@ MAKE_ENV= DESTDIR="${PREFIX}/lib/matrix"
|
||||
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>
|
||||
|
22
misc/matrix-kmod/files/matrix_saver.sh
Normal file
22
misc/matrix-kmod/files/matrix_saver.sh
Normal file
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user