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 +# +# $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 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 + #include + #include +-#include + #include + #include + #define _LINUX_STRING_H_ +-#include + #include + #include ++ ++#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 + #include + ++#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/