Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2006 12:57:21 +0800 (CST)
From:      Gea-Suan Lin <gslin@gslin.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gslin@gslin.org
Subject:   ports/105993: [NEW PORT] sysutils/cramfs: The compressed ROM filesystem
Message-ID:  <20061129045721.EFD2247@netnews.NCTU.edu.tw>
Resent-Message-ID: <200611290830.kAT8UDPP099036@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         105993
>Category:       ports
>Synopsis:       [NEW PORT] sysutils/cramfs: The compressed ROM filesystem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 29 08:30:12 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 6.1-RELEASE-p8 i386
>Organization:
>Environment:
System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE-p8 FreeBSD 6.1-RELEASE-p8 #0: Fri Sep 29 03:41:50 CST 2006
>Description:
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/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- cramfs-1.1.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	cramfs
#	cramfs/pkg-descr
#	cramfs/Makefile
#	cramfs/distinfo
#	cramfs/files
#	cramfs/files/patch-mkcramfs.c
#	cramfs/files/patch-cramfsck.c
#	cramfs/files/patch-GNUmakefile
#
echo c - cramfs
mkdir -p cramfs > /dev/null 2>&1
echo x - cramfs/pkg-descr
sed 's/^X//' >cramfs/pkg-descr << 'END-of-cramfs/pkg-descr'
XCramfs is a Linux filesystem designed to be simple, small, and to
Xcompress things well. It is used on a number of embedded systems and
Xsmall devices.
X
XWWW:	http://sourceforge.net/projects/cramfs/
END-of-cramfs/pkg-descr
echo x - cramfs/Makefile
sed 's/^X//' >cramfs/Makefile << 'END-of-cramfs/Makefile'
X# New ports collection makefile for:	cramfs
X# Date created:		2006-11-29
X# Whom:			Gea-Suan Lin <gslin@gslin.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	cramfs
XPORTVERSION=	1.1
XCATEGORIES=	sysutils
XMASTER_SITES=	SOURCEFORGE
XMASTER_SITE_SUBDIR=	cramfs
X
XMAINTAINER=	gslin@gslin.org
XCOMMENT=	The compressed ROM filesystem
X
XMAKEFILE=	GNUmakefile
XUSE_GMAKE=	yes
X
XPLIST_FILES=	sbin/cramfsck sbin/mkcramfs
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/cramfsck ${PREFIX}/sbin
X	${INSTALL_PROGRAM} ${WRKSRC}/mkcramfs ${PREFIX}/sbin
X
X.include <bsd.port.mk>
END-of-cramfs/Makefile
echo x - cramfs/distinfo
sed 's/^X//' >cramfs/distinfo << 'END-of-cramfs/distinfo'
XMD5 (cramfs-1.1.tar.gz) = d3912b9f7bf745fbfea68f6a9b9de30f
XSHA256 (cramfs-1.1.tar.gz) = 133caca2c4e7c64106555154ee0ff693f5cf5beb9421ce2eb86baee997d22368
XSIZE (cramfs-1.1.tar.gz) = 24179
END-of-cramfs/distinfo
echo c - cramfs/files
mkdir -p cramfs/files > /dev/null 2>&1
echo x - cramfs/files/patch-mkcramfs.c
sed 's/^X//' >cramfs/files/patch-mkcramfs.c << 'END-of-cramfs/files/patch-mkcramfs.c'
X--- mkcramfs.c.orig	Wed Nov 29 12:47:30 2006
X+++ mkcramfs.c	Wed Nov 29 12:49:25 2006
X@@ -36,6 +36,9 @@
X #include <linux/cramfs_fs.h>
X #include <zlib.h>
X 
X+#define	MAP_ANONYMOUS	0x20
X+typedef	long long	loff_t;
X+
X /* Exit codes used by mkfs-type programs */
X #define MKFS_OK          0	/* No errors */
X #define MKFS_ERROR       8	/* Operational error */
END-of-cramfs/files/patch-mkcramfs.c
echo x - cramfs/files/patch-cramfsck.c
sed 's/^X//' >cramfs/files/patch-cramfsck.c << 'END-of-cramfs/files/patch-cramfsck.c'
X--- cramfsck.c.orig	Wed Nov 29 12:49:40 2006
X+++ cramfsck.c	Wed Nov 29 12:51:12 2006
X@@ -47,13 +47,14 @@
X #include <stdlib.h>
X #include <errno.h>
X #include <string.h>
X-#include <sys/sysmacros.h>
X #include <utime.h>
X #include <sys/ioctl.h>
X #define _LINUX_STRING_H_
X-#include <linux/fs.h>
X #include <linux/cramfs_fs.h>
X #include <zlib.h>
X+
X+#define	BLKGETSIZE	_IO(0x12,96)
X+#define	MAP_ANONYMOUS	0x20
X 
X /* Exit codes used by fsck-type programs */
X #define FSCK_OK          0	/* No errors */
END-of-cramfs/files/patch-cramfsck.c
echo x - cramfs/files/patch-GNUmakefile
sed 's/^X//' >cramfs/files/patch-GNUmakefile << 'END-of-cramfs/files/patch-GNUmakefile'
X--- GNUmakefile.orig	Wed Nov 29 12:51:59 2006
X+++ GNUmakefile	Wed Nov 29 12:52:06 2006
X@@ -1,5 +1,5 @@
X-CC = gcc
X-CFLAGS = -W -Wall -O2 -g
X+CC ?= gcc
X+CFLAGS ?= -W -Wall -O2 -g
X CPPFLAGS = -I.
X LDLIBS = -lz
X PROGS = mkcramfs cramfsck
END-of-cramfs/files/patch-GNUmakefile
exit
--- cramfs-1.1.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061129045721.EFD2247>