svn commit: r469447 - in head/sysutils: . fcode-utils fcode-utils/files
Tobias Kortkamp
tobik at FreeBSD.org
Wed May 9 12:59:39 UTC 2018
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 at 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 at anongoth.pl>
+# $FreeBSD$
+
+PORTNAME= fcode-utils
+PORTVERSION= 1.0.2
+DISTVERSIONPREFIX= v
+CATEGORIES= sysutils
+
+MAINTAINER= pkubaj at 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
More information about the svn-ports-all
mailing list