Received: by mail.netbsd.org (Postfix, from userid 605) id CDFAB84D7A; Sat, 8 Jun 2019 23:52:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 52AA784D6E for ; Sat, 8 Jun 2019 23:52:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id d3oVn-71HfCa for ; Sat, 8 Jun 2019 23:52:09 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 861F484D4D for ; Sat, 8 Jun 2019 23:52:09 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 75144FBF4; Sat, 8 Jun 2019 23:52:09 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1560037929134700" MIME-Version: 1.0 Date: Sat, 8 Jun 2019 23:52:09 +0000 From: "Kamil Rytarowski" Subject: CVS commit: pkgsrc/devel/debugcon_printf To: pkgsrc-changes@NetBSD.org Reply-To: kamil@netbsd.org X-Mailer: log_accum Message-Id: <20190608235209.75144FBF4@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1560037929134700 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1560037929134700 Content-Disposition: inline Content-Length: 4062 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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 +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 --_----------=_1560037929134700--