git: 2bbf956529c5 - main - devel/genromfs: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Jan 2022 03:10:41 UTC
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=2bbf956529c5faaf1e622fec91b3ed307c4e53d9 commit 2bbf956529c5faaf1e622fec91b3ed307c4e53d9 Author: Tomasz "CeDeROM" CEDRO <tomek@cedro.info> AuthorDate: 2022-01-10 02:57:20 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2022-01-10 03:09:42 +0000 devel/genromfs: Add new port The mkfs equivalent for romfs filesystem. Port created for NuttX RTOS. ROM FileSystem (ROMFS), read only filesystem, mainly for initial RAM disks of installation disks. Using this filesystem, you get a very similar feature, and even the possibility of a small kernel, with a file system which doesn't take up useful memory from the router functions in the basement of your office. PR: 259242 --- devel/Makefile | 1 + devel/genromfs/Makefile | 18 ++++++++++++++++++ devel/genromfs/distinfo | 3 +++ devel/genromfs/files/patch-Makefile | 36 ++++++++++++++++++++++++++++++++++++ devel/genromfs/pkg-descr | 8 ++++++++ 5 files changed, 66 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 55fbb402663b..da7ddaa65f1e 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -814,6 +814,7 @@ SUBDIR += generate SUBDIR += gengetopt SUBDIR += genie + SUBDIR += genromfs SUBDIR += getoptions SUBDIR += gettext SUBDIR += gettext-lint diff --git a/devel/genromfs/Makefile b/devel/genromfs/Makefile new file mode 100644 index 000000000000..edb9d4601fe8 --- /dev/null +++ b/devel/genromfs/Makefile @@ -0,0 +1,18 @@ +PORTNAME= genromfs +PORTVERSION= 0.5.7 +CATEGORIES= devel + +MAINTAINER= tomek@cedro.info +COMMENT= Mkfs equivalent for romfs filesystem + +LICENSE= GPLv2 + +USE_GITHUB= yes +GH_ACCOUNT= chexum + +MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX} + +PLIST_FILES= bin/genromfs \ + man/man8/genromfs.8.gz + +.include <bsd.port.mk> diff --git a/devel/genromfs/distinfo b/devel/genromfs/distinfo new file mode 100644 index 000000000000..d56cda096967 --- /dev/null +++ b/devel/genromfs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1634516173 +SHA256 (chexum-genromfs-0.5.7_GH0.tar.gz) = 2d16d217b11a28809454ddab0cd7c1c0865af8ea79ac0e86af03ab82320f02ab +SIZE (chexum-genromfs-0.5.7_GH0.tar.gz) = 27929 diff --git a/devel/genromfs/files/patch-Makefile b/devel/genromfs/files/patch-Makefile new file mode 100644 index 000000000000..1ed8227f5cb7 --- /dev/null +++ b/devel/genromfs/files/patch-Makefile @@ -0,0 +1,36 @@ +--- Makefile.orig 2009-02-15 10:48:15 UTC ++++ Makefile +@@ -5,7 +5,7 @@ all: genromfs + + PACKAGE = genromfs + VERSION = 0.5.7 +-CC = gcc ++CC = cc + CFLAGS = -O2 -Wall -DVERSION=\"$(VERSION)\"#-g# + LDFLAGS = -s#-g + +@@ -17,9 +17,9 @@ FILES = COPYING NEWS ChangeLog Makefile \ + checkdist \ + .gitignore selftest + +-prefix = /usr +-bindir = $(prefix)/bin +-mandir = $(prefix)/man ++PREFIX ?= /usr ++bindir = /bin ++mandir = /man + + genromfs: genromfs.o + $(CC) $(LDFLAGS) genromfs.o -o genromfs +@@ -53,11 +53,6 @@ install-bin: + install -m 755 genromfs $(PREFIX)$(bindir)/ + + install-man: +- # genromfs 0.5 installed the man page in this file, +- # remove it before someone notices :) +- if [ -f $(PREFIX)$(bindir)/man8 ]; then \ +- rm -f $(PREFIX)$(bindir)/man8; \ +- fi + mkdir -p $(PREFIX)$(mandir)/man8 + install -m 644 genromfs.8 $(PREFIX)$(mandir)/man8/ + diff --git a/devel/genromfs/pkg-descr b/devel/genromfs/pkg-descr new file mode 100644 index 000000000000..b3a5b067a0ab --- /dev/null +++ b/devel/genromfs/pkg-descr @@ -0,0 +1,8 @@ +The mkfs equivalent for romfs filesystem. Port created for NuttX RTOS. +ROM FileSystem (ROMFS), read only filesystem, mainly for initial RAM +disks of installation disks. Using this filesystem, you get a very +similar feature, and even the possibility of a small kernel, with a +file system which doesn't take up useful memory from the router +functions in the basement of your office. + +WWW: https://github.com/chexum/genromfs