pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/debugcon_printf
Module Name: pkgsrc
Committed By: kamil
Date: Sat Jun 8 23:52:09 UTC 2019
Added Files:
pkgsrc/devel/debugcon_printf: DESCR Makefile PLIST distinfo
pkgsrc/devel/debugcon_printf/files: debugcon_printf-modload.in
debugcon_printf-modunload
Log Message:
devel/debugcon_printf: import debugcon_printf-20190609
NetBSD specific loadable kernel module that implements a standalone
printing mechanism to Bochs/Qemu-style debug console (port 0xe9).
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/debugcon_printf/DESCR \
pkgsrc/devel/debugcon_printf/Makefile pkgsrc/devel/debugcon_printf/PLIST \
pkgsrc/devel/debugcon_printf/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/devel/debugcon_printf/files/debugcon_printf-modload.in \
pkgsrc/devel/debugcon_printf/files/debugcon_printf-modunload
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/debugcon_printf/DESCR
diff -u /dev/null pkgsrc/devel/debugcon_printf/DESCR:1.1
--- /dev/null Sat Jun 8 23:52:09 2019
+++ pkgsrc/devel/debugcon_printf/DESCR Sat Jun 8 23:52:09 2019
@@ -0,0 +1,2 @@
+NetBSD specific loadable kernel module that implements a standalone
+printing mechanism to Bochs/Qemu-style debug console (port 0xe9).
Index: pkgsrc/devel/debugcon_printf/Makefile
diff -u /dev/null pkgsrc/devel/debugcon_printf/Makefile:1.1
--- /dev/null Sat Jun 8 23:52:09 2019
+++ pkgsrc/devel/debugcon_printf/Makefile Sat Jun 8 23:52:09 2019
@@ -0,0 +1,57 @@
+# $NetBSD: Makefile,v 1.1 2019/06/08 23:52:09 kamil Exp $
+
+DISTNAME= debugcon_printf-20190609
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=krytarowski/}
+GITHUB_TAG= ${PKGVERSION_NOREV}
+
+MAINTAINER= kamil%NetBSD.org@localhost
+HOMEPAGE= https://github.com/krytarowski/debugcon_printf
+COMMENT= Bochs/Qemu debugcon printf() loadable kernel module for NetBSD
+LICENSE= modified-bsd
+
+ONLY_FOR_PLATFORM= NetBSD-*-x86_64
+OSVERSION_SPECIFIC= YES
+
+.include "../../mk/bsd.prefs.mk"
+
+BUILDLINK_PASSTHRU_DIRS+= ${BSDSRCDIR}/sys
+
+MAKE_FLAGS+= S=${BSDSRCDIR}/sys
+
+BUILD_DEFS+= BSDSRCDIR
+
+.if !exists(${BSDSRCDIR}/sys)
+PKG_FAIL_REASON+= "BSDSRCDIR/sys specifies non-existing directory ${BSDSRCDIR}/sys"
+.endif
+
+.include "../../mk/compiler.mk"
+
+KMOD= ${PKGBASE}.kmod
+KMODULEDIR= stand/${MACHINE}/${OS_VERSION}/modules/${PKGBASE}
+
+INSTALLATION_DIRS+= sbin # auxiliary scripts
+INSTALLATION_DIRS+= ${KMODULEDIR}
+
+INSTALL_UNSTRIPPED= yes # Kernel linker needs unstripped module
+
+PLIST_SUBST+= MACHINE=${MACHINE}
+
+pre-configure:
+ ${CP} ${FILESDIR}/debugcon_printf-modunload ${WRKSRC}
+ ${SED} \
+ -e 's|@PREFIX@|${PREFIX}|g' \
+ -e 's|@MACHINE@|${MACHINE}|g' \
+ -e 's|@OS_VERSION@|${OS_VERSION}|g' \
+ ${FILESDIR}/${PKGBASE}-modload.in > ${WRKSRC}/${PKGBASE}-modload
+
+do-install:
+ ${RUN} cd ${WRKSRC} && \
+ ${INSTALL_PROGRAM} ${KMOD} ${DESTDIR}${PREFIX}/${KMODULEDIR}
+.for file in debugcon_printf-modload debugcon_printf-modunload
+ ${RUN} cd ${WRKSRC} && \
+ ${INSTALL_SCRIPT} ${file} ${DESTDIR}${PREFIX}/sbin
+.endfor
+
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/debugcon_printf/PLIST
diff -u /dev/null pkgsrc/devel/debugcon_printf/PLIST:1.1
--- /dev/null Sat Jun 8 23:52:09 2019
+++ pkgsrc/devel/debugcon_printf/PLIST Sat Jun 8 23:52:09 2019
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2019/06/08 23:52:09 kamil Exp $
+sbin/debugcon_printf-modload
+sbin/debugcon_printf-modunload
+stand/${MACHINE}/${OS_VERSION}/modules/debugcon_printf/debugcon_printf.kmod
Index: pkgsrc/devel/debugcon_printf/distinfo
diff -u /dev/null pkgsrc/devel/debugcon_printf/distinfo:1.1
--- /dev/null Sat Jun 8 23:52:09 2019
+++ pkgsrc/devel/debugcon_printf/distinfo Sat Jun 8 23:52:09 2019
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/06/08 23:52:09 kamil Exp $
+
+SHA1 (debugcon_printf-20190609-20190609.tar.gz) = 4e62812e532679f432f5b6b1b89837d4f6770f7b
+RMD160 (debugcon_printf-20190609-20190609.tar.gz) = 98364ede0073d77e6d58d0edd230bc54764e588d
+SHA512 (debugcon_printf-20190609-20190609.tar.gz) = 35943a4e46f45e4a6fa8d39a8ce1f4095d3eaecbd6c6943624c20aad1e4e75c9d50ec69dba5caf27db7185da0fb9876e2bdfef08651eef4f92473af1e30a41f0
+Size (debugcon_printf-20190609-20190609.tar.gz) = 5706 bytes
Index: pkgsrc/devel/debugcon_printf/files/debugcon_printf-modload.in
diff -u /dev/null pkgsrc/devel/debugcon_printf/files/debugcon_printf-modload.in:1.1
--- /dev/null Sat Jun 8 23:52:09 2019
+++ pkgsrc/devel/debugcon_printf/files/debugcon_printf-modload.in Sat Jun 8 23:52:09 2019
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+modload @PREFIX@/stand/@MACHINE@/@OS_VERSION@/modules/debugcon_printf/debugcon_printf.kmod
Index: pkgsrc/devel/debugcon_printf/files/debugcon_printf-modunload
diff -u /dev/null pkgsrc/devel/debugcon_printf/files/debugcon_printf-modunload:1.1
--- /dev/null Sat Jun 8 23:52:09 2019
+++ pkgsrc/devel/debugcon_printf/files/debugcon_printf-modunload Sat Jun 8 23:52:09 2019
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+modunload debugcon_printf
Home |
Main Index |
Thread Index |
Old Index