aboutsummaryrefslogtreecommitdiffstats
path: root/devel/dcons/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/dcons/Makefile')
-rw-r--r--devel/dcons/Makefile37
1 files changed, 31 insertions, 6 deletions
diff --git a/devel/dcons/Makefile b/devel/dcons/Makefile
index 259c06f1d4d3..5afe45fbcd03 100644
--- a/devel/dcons/Makefile
+++ b/devel/dcons/Makefile
@@ -6,26 +6,43 @@
#
PORTNAME= dcons
-PORTVERSION= 20030525
+PORTVERSION= 20030629
CATEGORIES= devel sysutils
MASTER_SITES= http://people.FreeBSD.org/~simokawa/firewire/
-MAINTAINER= simokawa@FreeBSD.org
+MAINTAINER= nork@FreeBSD.org
COMMENT= Dumb CONSole device driver
NO_WRKSUBDIR= yes
MANCOMPRESSED= yes
-MAN4= dcons.4
+MAN4= dcons.4 dcons_crom.4
MAN8= fwchat.8
PKGMESSAGE= ${WRKSRC}/pkg-message
+.include <bsd.port.pre.mk>
KMODDIR= ${PREFIX}/lib/dcons
MAKE_ENV= KMODDIR=${KMODDIR} \
- BINDIR=${PREFIX}/bin \
+ BINDIR=${PREFIX}/sbin \
MANDIR=${MANPREFIX}/man/man
-PLIST_SUB= KMODDIR=${KMODDIR}
+MKNOD?= /sbin/mknod
+MAKEDEV= /dev/MAKEDEV
+DCONS_DEV= /dev/dcons
+DCONS_MAJOR= 184
+DCONS_MINOR= 0
+DCONS_MODE= 0622
+DCONSCTL_DEV= /dev/dconsctl
+DCONSCTL_MAJOR= 184
+DCONSCTL_MINOR= 2
+DCONSCTL_MODE= 0600
+PLIST_SUB= KMODDIR=${KMODDIR} MKNOD=${MKNOD} MAKEDEV=${MAKEDEV} \
+ DCONS_DEV=${DCONS_DEV} \
+ DCONS_MAJOR=${DCONS_MAJOR} DCONS_MINOR=${DCONS_MINOR} \
+ DCONS_MODE=${DCONS_MODE} \
+ DCONSCTL_DEV=${DCONSCTL_DEV} \
+ DCONSCTL_MAJOR=${DCONSCTL_MAJOR} DCONSCTL_MINOR=${DCONSCTL_MINOR} \
+ DCONSCTL_MODE=${DCONSCTL_MODE}
post-extract:
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
@@ -43,8 +60,16 @@ pre-install:
@${INSTALL_DATA} ${WRKSRC}/README.dcons ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/usr.sbin/fwchat/gdb-usage ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/usr.sbin/fwchat/sample-script ${DOCSDIR}/
+ if [ -x ${MAKEDEV} ]; then \
+ ${RM} -f ${DCONS_DEV}; \
+ ${MKNOD} ${DCONS_DEV} c ${DCONS_MAJOR} ${DCONS_MINOR}; \
+ ${CHMOD} ${DCONS_MODE} ${DCONS_DEV}; \
+ ${RM} -f ${DCONSCTL_DEV}; \
+ ${MKNOD} ${DCONSCTL_DEV} c ${DCONSCTL_MAJOR} ${DCONSCTL_MINOR}; \
+ ${CHMOD} ${DCONSCTL_MODE} ${DCONSCTL_DEV}; \
+ fi
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>