diff options
author | Cheng-Lung Sung <clsung@FreeBSD.org> | 2006-12-07 09:36:45 +0000 |
---|---|---|
committer | Cheng-Lung Sung <clsung@FreeBSD.org> | 2006-12-07 09:36:45 +0000 |
commit | 541a339c46eabe79052435427385b15edc931df7 (patch) | |
tree | 6283a080ef19f313836cc3b5d26697485fbec97c /sysutils | |
parent | 35b0d2b0dac4bc55bfab9cddba24ce5bb992b865 (diff) | |
download | ports-541a339c46eabe79052435427385b15edc931df7.tar.gz ports-541a339c46eabe79052435427385b15edc931df7.zip |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/cramfs/Makefile | 26 | ||||
-rw-r--r-- | sysutils/cramfs/distinfo | 3 | ||||
-rw-r--r-- | sysutils/cramfs/files/patch-GNUmakefile | 10 | ||||
-rw-r--r-- | sysutils/cramfs/files/patch-cramfsck.c | 19 | ||||
-rw-r--r-- | sysutils/cramfs/files/patch-mkcramfs.c | 12 | ||||
-rw-r--r-- | sysutils/cramfs/pkg-descr | 5 |
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/ |