diff options
author | nork <nork@FreeBSD.org> | 2003-06-08 08:02:10 +0000 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-06-08 08:02:10 +0000 |
commit | 7d5e8057c44f1c7f94823765d82b51624e78bec0 (patch) | |
tree | 9e8d84a2176437bef7ed1270d0511f90840e9457 /devel | |
parent | 036dcd424f37a6a98f710eb7d59390c464ffc9cd (diff) | |
download | FreeBSD-ports-7d5e8057c44f1c7f94823765d82b51624e78bec0.zip FreeBSD-ports-7d5e8057c44f1c7f94823765d82b51624e78bec0.tar.gz |
Add dcons-20030525, is Dumb CONSole device driver.
Order by:-) simokawa
Submitted by: simokawa
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/dcons/Makefile | 50 | ||||
-rw-r--r-- | devel/dcons/distinfo | 1 | ||||
-rw-r--r-- | devel/dcons/files/Makefile | 5 | ||||
-rw-r--r-- | devel/dcons/files/dcons.sh | 35 | ||||
-rw-r--r-- | devel/dcons/files/share::man::man4::Makefile | 3 | ||||
-rw-r--r-- | devel/dcons/pkg-descr | 6 | ||||
-rw-r--r-- | devel/dcons/pkg-message | 15 | ||||
-rw-r--r-- | devel/dcons/pkg-plist | 10 |
9 files changed, 126 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 80ec92a..5155317 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -144,6 +144,7 @@ SUBDIR += cxref SUBDIR += darcs SUBDIR += darts + SUBDIR += dcons SUBDIR += ddd SUBDIR += decompyle SUBDIR += devhelp diff --git a/devel/dcons/Makefile b/devel/dcons/Makefile new file mode 100644 index 0000000..259c06f --- /dev/null +++ b/devel/dcons/Makefile @@ -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> diff --git a/devel/dcons/distinfo b/devel/dcons/distinfo new file mode 100644 index 0000000..ecb507c --- /dev/null +++ b/devel/dcons/distinfo @@ -0,0 +1 @@ +MD5 (dcons-20030525.tar.gz) = f1dee68374ff9532c67755aed6f1f1ca diff --git a/devel/dcons/files/Makefile b/devel/dcons/files/Makefile new file mode 100644 index 0000000..435278e --- /dev/null +++ b/devel/dcons/files/Makefile @@ -0,0 +1,5 @@ +# $FreeBSD$ + +SUBDIR= sys/modules/dcons usr.sbin/fwchat share/man/man4 + +.include <bsd.subdir.mk> diff --git a/devel/dcons/files/dcons.sh b/devel/dcons/files/dcons.sh new file mode 100644 index 0000000..d4800ac --- /dev/null +++ b/devel/dcons/files/dcons.sh @@ -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 diff --git a/devel/dcons/files/share::man::man4::Makefile b/devel/dcons/files/share::man::man4::Makefile new file mode 100644 index 0000000..b906348 --- /dev/null +++ b/devel/dcons/files/share::man::man4::Makefile @@ -0,0 +1,3 @@ +MAN= dcons.4 + +.include <bsd.prog.mk> diff --git a/devel/dcons/pkg-descr b/devel/dcons/pkg-descr new file mode 100644 index 0000000..af871a0 --- /dev/null +++ b/devel/dcons/pkg-descr @@ -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/ diff --git a/devel/dcons/pkg-message b/devel/dcons/pkg-message new file mode 100644 index 0000000..416a4d9 --- /dev/null +++ b/devel/dcons/pkg-message @@ -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. diff --git a/devel/dcons/pkg-plist b/devel/dcons/pkg-plist new file mode 100644 index 0000000..34fff7e --- /dev/null +++ b/devel/dcons/pkg-plist @@ -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%% |