1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add dcons-20030525, is Dumb CONSole device driver.

Order by:-)	simokawa
Submitted by:	simokawa
This commit is contained in:
Norikatsu Shigemura 2003-06-08 08:02:10 +00:00
parent df10201fa5
commit b903fee294
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82507
9 changed files with 126 additions and 0 deletions

View File

@ -144,6 +144,7 @@
SUBDIR += cxref SUBDIR += cxref
SUBDIR += darcs SUBDIR += darcs
SUBDIR += darts SUBDIR += darts
SUBDIR += dcons
SUBDIR += ddd SUBDIR += ddd
SUBDIR += decompyle SUBDIR += decompyle
SUBDIR += devhelp SUBDIR += devhelp

50
devel/dcons/Makefile Normal file
View File

@ -0,0 +1,50 @@
# New ports collection makefile for: dcons
# Date created: 2003/05/25
# Whom: nork@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= dcons
PORTVERSION= 20030525
CATEGORIES= devel sysutils
MASTER_SITES= http://people.FreeBSD.org/~simokawa/firewire/
MAINTAINER= simokawa@FreeBSD.org
COMMENT= Dumb CONSole device driver
NO_WRKSUBDIR= yes
MANCOMPRESSED= yes
MAN4= dcons.4
MAN8= fwchat.8
PKGMESSAGE= ${WRKSRC}/pkg-message
KMODDIR= ${PREFIX}/lib/dcons
MAKE_ENV= KMODDIR=${KMODDIR} \
BINDIR=${PREFIX}/bin \
MANDIR=${MANPREFIX}/man/man
PLIST_SUB= KMODDIR=${KMODDIR}
post-extract:
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
@${CP} ${FILESDIR}/share::man::man4::Makefile \
${WRKSRC}/share/man/man4/Makefile
post-build:
@${SED} "s,%%DOCSDIR%%,${DOCSDIR}," \
${.CURDIR}/pkg-message > ${PKGMESSAGE}
pre-install:
@${MKDIR} ${PREFIX}/lib/dcons
@${INSTALL_SCRIPT} ${FILESDIR}/dcons.sh ${PREFIX}/etc/rc.d/
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README.dcons ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/usr.sbin/fwchat/gdb-usage ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/usr.sbin/fwchat/sample-script ${DOCSDIR}/
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

1
devel/dcons/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (dcons-20030525.tar.gz) = f1dee68374ff9532c67755aed6f1f1ca

View File

@ -0,0 +1,5 @@
# $FreeBSD$
SUBDIR= sys/modules/dcons usr.sbin/fwchat share/man/man4
.include <bsd.subdir.mk>

View File

@ -0,0 +1,35 @@
#!/bin/sh
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/${0##*/}\$"); then
echo "$0: Cannot determine the PREFIX" >&2
exit 64
fi
if [ -r /etc/defaults/rc.conf ]; then
. /etc/defaults/rc.conf
source_rc_confs
elif [ -r /etc/rc.conf ]; then
. /etc/rc.conf
fi
case "$1" in
start)
case ${dcons_enable:-NO} in
[Yy][Ee][Ss])
/sbin/kldload ${PREFIX}/lib/dcons/dcons.ko && echo -n ' dcons'
;;
esac
;;
stop)
case ${dcons_enable:-NO} in
[Yy][Ee][Ss])
/sbin/kldunload dcons & echo -n ' dcons'
;;
esac
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0

View File

@ -0,0 +1,3 @@
MAN= dcons.4
.include <bsd.prog.mk>

6
devel/dcons/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
For a replacement of the serial console, this framework exploits
physical access faculty of the IEEE1394 OHCI chip(fwochi(4)).
Please note dcons(4) is device(FireWire)-independent by itself
(And almost platform independent).
WWW: http://people.freebsd.org/~simokawa/firewire/dcons-cbug-20030517/

15
devel/dcons/pkg-message Normal file
View File

@ -0,0 +1,15 @@
Though dcons(4) is loaded as a modules by default in this port,
I recommend you to link it to kernel statically for several
reasons especially when used with gdb.
On -current, thanks to multiple console device support(conscontrol(8)),
we can use both syscons(4) and dcons(4) as console and DDB port at the
same time.
On -stable, because only one console device is allowed, we have to
hijack the console port from syscons(4) to use dcons(4) as the
console. (Define FORCE_CONSOLE to 1 in dcons.c for this.) Even it
is not used as console, it can still be used as GDB(not DDB) port.
See %%DOCSDIR%%/README.dcons and manpage of dcons(4)
and fwchat(8) for details.

10
devel/dcons/pkg-plist Normal file
View File

@ -0,0 +1,10 @@
bin/fwchat
@unexec /bin/rm -f %D/lib/dcons/linker.hints
lib/dcons/dcons.ko
@exec type kldxref > /dev/null 2>&1 && kldxref %D/lib/dcons
etc/rc.d/dcons.sh
%%DOCSDIR%%/gdb-usage
%%DOCSDIR%%/README.dcons
%%DOCSDIR%%/sample-script
@dirrm lib/dcons
@dirrm %%DOCSDIR%%