Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2018 12:59:37 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r469447 - in head/sysutils: . fcode-utils fcode-utils/files
Message-ID:  <201805091259.w49Cxb2o037049@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Wed May  9 12:59:36 2018
New Revision: 469447
URL: https://svnweb.freebsd.org/changeset/ports/469447

Log:
  New port: sysutils/fcode-utils
  
  A set of utilities to process FCODE, OpenFirmware's byte code. This
  includes:
  
  - the tokenizer toke,
  - the detokenizer detok,
  - and a PCI rom header utility.
  
  WWW: https://www.openfirmware.info/FCODE_suite
  
  PR:		213114
  Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl> (based on)
  Reviewed by:	pawel

Added:
  head/sysutils/fcode-utils/
  head/sysutils/fcode-utils/Makefile   (contents, props changed)
  head/sysutils/fcode-utils/distinfo   (contents, props changed)
  head/sysutils/fcode-utils/files/
  head/sysutils/fcode-utils/files/patch-shared_types.h   (contents, props changed)
  head/sysutils/fcode-utils/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Wed May  9 12:23:50 2018	(r469446)
+++ head/sysutils/Makefile	Wed May  9 12:59:36 2018	(r469447)
@@ -309,6 +309,7 @@
     SUBDIR += farbot
     SUBDIR += fastest_cvsup
     SUBDIR += fatback
+    SUBDIR += fcode-utils
     SUBDIR += fconfig
     SUBDIR += fcron
     SUBDIR += fd

Added: head/sysutils/fcode-utils/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fcode-utils/Makefile	Wed May  9 12:59:36 2018	(r469447)
@@ -0,0 +1,41 @@
+# Created by: Piotr Kubaj <pkubaj@anongoth.pl>
+# $FreeBSD$
+
+PORTNAME=	fcode-utils
+PORTVERSION=	1.0.2
+DISTVERSIONPREFIX=	v
+CATEGORIES=	sysutils
+
+MAINTAINER=	pkubaj@anongoth.pl
+COMMENT=	Utilities to process FCODE, OpenFirmware's byte code
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USES=		gmake
+USE_GITHUB=	yes
+GH_ACCOUNT=	openbios
+
+MAKE_ARGS=	CC=${CC}
+PLIST_FILES=	bin/detok \
+		bin/romheaders \
+		bin/toke
+PORTDOCS=	detok.html toke.html workbook.css
+
+OPTIONS_DEFINE=	DOCS
+
+do-build:
+.for f in detok romheaders toke
+	@${DO_MAKE_BUILD} -C ${WRKSRC}/${f}
+.endfor
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/detok/detok ${WRKSRC}/toke/toke \
+		${WRKSRC}/romheaders/romheaders ${STAGEDIR}${PREFIX}/bin
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/documentation && \
+		${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Added: head/sysutils/fcode-utils/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fcode-utils/distinfo	Wed May  9 12:59:36 2018	(r469447)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1475063061
+SHA256 (openbios-fcode-utils-v1.0.2_GH0.tar.gz) = 8d9979c269a60a6e2b9dcfb50d1515d0e750e95d7d2690b36620a614b0c163bc
+SIZE (openbios-fcode-utils-v1.0.2_GH0.tar.gz) = 4308712

Added: head/sysutils/fcode-utils/files/patch-shared_types.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fcode-utils/files/patch-shared_types.h	Wed May  9 12:59:36 2018	(r469447)
@@ -0,0 +1,11 @@
+--- shared/types.h.orig	2008-07-11 23:21:43 UTC
++++ shared/types.h
+@@ -39,7 +39,7 @@
+  *
+  **************************************************************************** */
+ 
+-#if defined(__ppc__) && defined(__APPLE__)
++#if defined(__ppc__) && defined(__APPLE__) || defined (__FreeBSD__)
+ #include <sys/types.h>
+ 
+ typedef int8_t s8;

Added: head/sysutils/fcode-utils/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fcode-utils/pkg-descr	Wed May  9 12:59:36 2018	(r469447)
@@ -0,0 +1,8 @@
+A set of utilities to process FCODE, OpenFirmware's byte code. This
+includes:
+
+- the tokenizer toke,
+- the detokenizer detok,
+- and a PCI rom header utility.
+
+WWW: https://www.openfirmware.info/FCODE_suite



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805091259.w49Cxb2o037049>