summaryrefslogtreecommitdiff
path: root/filesystems/genromfs
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2024-09-27 12:48:46 +0200
committerRobert Clausecker <fuz@FreeBSD.org>2024-11-06 16:17:35 +0100
commit6e2da9672f79f44048d597f0f61e4646cdeade9d (patch)
treec92e4b3158e3419e8cec38e00227d08dcdaab3e9 /filesystems/genromfs
parentmath/sdpa: speed up build (diff)
filesystems: add new category for file systems and related utilities
The filesystems category houses file systems and file system utilities. It is added mainly to turn the sysutils/fusefs-* pseudo-category into a proper one, but is also useful for the sundry of other file systems related ports found in the tree. Ports that seem like they belong there are moved to the new category. Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are not moved as they currently don't fetch and don't have TIMESTAMP set in their distinfo, but that is required to be able to push a rename of the port by the pre-receive hook. Approved by: portmgr (rene) Reviewed by: mat Pull Request: https://github.com/freebsd/freebsd-ports/pull/302 PR: 281988
Diffstat (limited to 'filesystems/genromfs')
-rw-r--r--filesystems/genromfs/Makefile20
-rw-r--r--filesystems/genromfs/distinfo3
-rw-r--r--filesystems/genromfs/files/patch-Makefile36
-rw-r--r--filesystems/genromfs/pkg-descr6
4 files changed, 65 insertions, 0 deletions
diff --git a/filesystems/genromfs/Makefile b/filesystems/genromfs/Makefile
new file mode 100644
index 000000000000..4114b7c8345e
--- /dev/null
+++ b/filesystems/genromfs/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= genromfs
+PORTVERSION= 0.5.7
+PORTREVISION= 1
+CATEGORIES= filesystems devel
+
+MAINTAINER= tomek@cedro.info
+COMMENT= Mkfs equivalent for romfs filesystem
+WWW= https://github.com/chexum/genromfs
+
+LICENSE= GPLv2
+
+USE_GITHUB= yes
+GH_ACCOUNT= chexum
+
+MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX}
+
+PLIST_FILES= bin/genromfs \
+ share/man/man8/genromfs.8.gz
+
+.include <bsd.port.mk>
diff --git a/filesystems/genromfs/distinfo b/filesystems/genromfs/distinfo
new file mode 100644
index 000000000000..d56cda096967
--- /dev/null
+++ b/filesystems/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/filesystems/genromfs/files/patch-Makefile b/filesystems/genromfs/files/patch-Makefile
new file mode 100644
index 000000000000..1b9e509d6c3e
--- /dev/null
+++ b/filesystems/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 = /share/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/filesystems/genromfs/pkg-descr b/filesystems/genromfs/pkg-descr
new file mode 100644
index 000000000000..af0611e1fed2
--- /dev/null
+++ b/filesystems/genromfs/pkg-descr
@@ -0,0 +1,6 @@
+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.