aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2006-12-07 17:36:45 +0800
committerclsung <clsung@FreeBSD.org>2006-12-07 17:36:45 +0800
commitaa182b7c6ad7c0374fb963d09bbcc2d876459b72 (patch)
treef04dbed21697af9de5f61aa44d227668330af2b1 /sysutils
parentc1196c94a7d448d17d289a115c1005a9a646cc5f (diff)
downloadfreebsd-ports-gnome-aa182b7c6ad7c0374fb963d09bbcc2d876459b72.tar.gz
freebsd-ports-gnome-aa182b7c6ad7c0374fb963d09bbcc2d876459b72.tar.zst
freebsd-ports-gnome-aa182b7c6ad7c0374fb963d09bbcc2d876459b72.zip
Add cramfs 1.1, the compressed ROM filesystem.
PR: ports/105993 Submitted by: Gea-Suan Lin <gslin at gslin.org>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/cramfs/Makefile26
-rw-r--r--sysutils/cramfs/distinfo3
-rw-r--r--sysutils/cramfs/files/patch-GNUmakefile10
-rw-r--r--sysutils/cramfs/files/patch-cramfsck.c19
-rw-r--r--sysutils/cramfs/files/patch-mkcramfs.c12
-rw-r--r--sysutils/cramfs/pkg-descr5
7 files changed, 76 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 24f36937df2d..751ac5f1e1b3 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -100,6 +100,7 @@
SUBDIR += cpdup
SUBDIR += cpu
SUBDIR += cpuburn
+ SUBDIR += cramfs
SUBDIR += crashme
SUBDIR += cromwell
SUBDIR += cronolog
diff --git a/sysutils/cramfs/Makefile b/sysutils/cramfs/Makefile
new file mode 100644
index 000000000000..5c4646583248
--- /dev/null
+++ b/sysutils/cramfs/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: cramfs
+# Date created: 2006-11-29
+# Whom: Gea-Suan Lin <gslin@gslin.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= cramfs
+PORTVERSION= 1.1
+CATEGORIES= sysutils
+MASTER_SITES= SOURCEFORGE
+MASTER_SITE_SUBDIR= cramfs
+
+MAINTAINER= gslin@gslin.org
+COMMENT= The compressed ROM filesystem
+
+MAKEFILE= GNUmakefile
+USE_GMAKE= yes
+
+PLIST_FILES= sbin/cramfsck sbin/mkcramfs
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/cramfsck ${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mkcramfs ${PREFIX}/sbin
+
+.include <bsd.port.mk>
diff --git a/sysutils/cramfs/distinfo b/sysutils/cramfs/distinfo
new file mode 100644
index 000000000000..f47e9e34a0fa
--- /dev/null
+++ b/sysutils/cramfs/distinfo
@@ -0,0 +1,3 @@
+MD5 (cramfs-1.1.tar.gz) = d3912b9f7bf745fbfea68f6a9b9de30f
+SHA256 (cramfs-1.1.tar.gz) = 133caca2c4e7c64106555154ee0ff693f5cf5beb9421ce2eb86baee997d22368
+SIZE (cramfs-1.1.tar.gz) = 24179
diff --git a/sysutils/cramfs/files/patch-GNUmakefile b/sysutils/cramfs/files/patch-GNUmakefile
new file mode 100644
index 000000000000..39ee95d61ca9
--- /dev/null
+++ b/sysutils/cramfs/files/patch-GNUmakefile
@@ -0,0 +1,10 @@
+--- GNUmakefile.orig Wed Nov 29 12:51:59 2006
++++ GNUmakefile Wed Nov 29 12:52:06 2006
+@@ -1,5 +1,5 @@
+-CC = gcc
+-CFLAGS = -W -Wall -O2 -g
++CC ?= gcc
++CFLAGS ?= -W -Wall -O2 -g
+ CPPFLAGS = -I.
+ LDLIBS = -lz
+ PROGS = mkcramfs cramfsck
diff --git a/sysutils/cramfs/files/patch-cramfsck.c b/sysutils/cramfs/files/patch-cramfsck.c
new file mode 100644
index 000000000000..cfd6aca01c5f
--- /dev/null
+++ b/sysutils/cramfs/files/patch-cramfsck.c
@@ -0,0 +1,19 @@
+--- cramfsck.c.orig Wed Nov 29 12:49:40 2006
++++ cramfsck.c Wed Nov 29 12:51:12 2006
+@@ -47,13 +47,14 @@
+ #include <stdlib.h>
+ #include <errno.h>
+ #include <string.h>
+-#include <sys/sysmacros.h>
+ #include <utime.h>
+ #include <sys/ioctl.h>
+ #define _LINUX_STRING_H_
+-#include <linux/fs.h>
+ #include <linux/cramfs_fs.h>
+ #include <zlib.h>
++
++#define BLKGETSIZE _IO(0x12,96)
++#define MAP_ANONYMOUS 0x20
+
+ /* Exit codes used by fsck-type programs */
+ #define FSCK_OK 0 /* No errors */
diff --git a/sysutils/cramfs/files/patch-mkcramfs.c b/sysutils/cramfs/files/patch-mkcramfs.c
new file mode 100644
index 000000000000..faf00df0d7df
--- /dev/null
+++ b/sysutils/cramfs/files/patch-mkcramfs.c
@@ -0,0 +1,12 @@
+--- mkcramfs.c.orig Wed Nov 29 12:47:30 2006
++++ mkcramfs.c Wed Nov 29 12:49:25 2006
+@@ -36,6 +36,9 @@
+ #include <linux/cramfs_fs.h>
+ #include <zlib.h>
+
++#define MAP_ANONYMOUS 0x20
++typedef long long loff_t;
++
+ /* Exit codes used by mkfs-type programs */
+ #define MKFS_OK 0 /* No errors */
+ #define MKFS_ERROR 8 /* Operational error */
diff --git a/sysutils/cramfs/pkg-descr b/sysutils/cramfs/pkg-descr
new file mode 100644
index 000000000000..ce77e14764d7
--- /dev/null
+++ b/sysutils/cramfs/pkg-descr
@@ -0,0 +1,5 @@
+Cramfs is a Linux filesystem designed to be simple, small, and to
+compress things well. It is used on a number of embedded systems and
+small devices.
+
+WWW: http://sourceforge.net/projects/cramfs/