Date: Wed, 21 Apr 2010 17:09:26 +0530 (IST) From: Ashish SHUKLA <wahjava@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/145914: New Port: sysutils/squashfs-tools Set of tools to manipulate squashfs images Message-ID: <20100421113926.4C79A50FCB@chateau.d.if> Resent-Message-ID: <201004211140.o3LBe2ko062644@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 145914 >Category: ports >Synopsis: New Port: sysutils/squashfs-tools Set of tools to manipulate squashfs images >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 Apr 21 11:40:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Ashish SHUKLA >Release: FreeBSD 8.0-RELEASE-p2 amd64 >Organization: N/A >Environment: System: FreeBSD chateau.d.if 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #3: Tue Mar 2 01:06:00 IST 2010 root@chateau.d.if:/usr/obj/usr/src/sys/CHATEAU amd64 >Description: Squashfs is a compressed read-only filesystem for Linux. Squashfs is intended for general read-only filesystem use, for archival use (i.e. in cases where a .tar.gz file may be used), and in constrained block device/memory systems (e.g. embedded systems) where low overhead is needed. The filesystem is currently stable, and has been tested on PowerPC, i586, Sparc and ARM architectures. squashfs-tools are the set of tools to manipulate squashfs images. WWW: http://squashfs.sourceforge.net/ >How-To-Repeat: >Fix: # 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: # # squashfs-tools/ # squashfs-tools/pkg-descr # squashfs-tools/Makefile # squashfs-tools/pkg-plist # squashfs-tools/distinfo # squashfs-tools/files # squashfs-tools/files/patch-squashfs-tools_pseudo.c # squashfs-tools/files/patch-squashfs-tools_unsquashfs.c # squashfs-tools/files/patch-squashfs-tools_Makefile # echo c - squashfs-tools/ mkdir -p squashfs-tools/ > /dev/null 2>&1 echo x - squashfs-tools/pkg-descr sed 's/^X//' >squashfs-tools/pkg-descr << '0b62b36cc2edebc11ebe1e464f87dc34' XSquashfs is a compressed read-only filesystem for Linux. Squashfs is Xintended for general read-only filesystem use, for archival use (i.e. Xin cases where a .tar.gz file may be used), and in constrained block Xdevice/memory systems (e.g. embedded systems) where low overhead is Xneeded. The filesystem is currently stable, and has been tested on XPowerPC, i586, Sparc and ARM architectures. X Xsquashfs-tools are the set of tools to manipulate squashfs images. X XWWW: http://squashfs.sourceforge.net/ 0b62b36cc2edebc11ebe1e464f87dc34 echo x - squashfs-tools/Makefile sed 's/^X//' >squashfs-tools/Makefile << 'd1522743f6ce112e86d6dd8a9e7fdaef' X# New ports collection makefile for: squashfs X# Date created: 2010-04-21 X# Whom: Ashish SHUKLA <wahjava@gmail.com> X# X# $FreeBSD$ X# X XPORTNAME= squashfs-tools XPORTVERSION= 4.0 XCATEGORIES= sysutils XMASTER_SITES= MASTER_SITE_SOURCEFORGE XMASTER_SITE_SUBDIR= project/squashfs/squashfs/${DISTNAME}/ XDISTNAME= squashfs${PORTVERSION} X XMAINTAINER= wahjava@gmail.com XCOMMENT= Set of tools to manipulate squashfs images X X.ifndef NOPORTDOCS XPORTDOCS= ACKNOWLEDGEMENTS CHANGES COPYING \ X PERFORMANCE.README README README-4.0 X.endif X Xpost-patch: X @${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" \ X ${WRKSRC}/squashfs-tools/Makefile X Xdo-build: X @${MAKE} -C ${WRKSRC}/squashfs-tools X Xdo-install: X @${MAKE} -C ${WRKSRC}/squashfs-tools ${INSTALL} X.ifndef NOPORTDOCS X @${MKDIR} ${DOCSDIR} X @for i in ${PORTDOCS}; do ${INSTALL_DATA} ${WRKSRC}/$$i ${DOCSDIR}; done X.endif X X.include <bsd.port.mk> d1522743f6ce112e86d6dd8a9e7fdaef echo x - squashfs-tools/pkg-plist sed 's/^X//' >squashfs-tools/pkg-plist << '27cf7416ffb3957135721912dc9dbab2' X@comment $FreeBSD$ Xbin/mksquashfs Xbin/unsquashfs 27cf7416ffb3957135721912dc9dbab2 echo x - squashfs-tools/distinfo sed 's/^X//' >squashfs-tools/distinfo << 'afb1226344cbf2978631791c7a3fa394' XMD5 (squashfs4.0.tar.gz) = a3c23391da4ebab0ac4a75021ddabf96 XSHA256 (squashfs4.0.tar.gz) = 18948edbe06bac2c4307eea99bfb962643e4b82e5b7edd541b4d743748e12e21 XSIZE (squashfs4.0.tar.gz) = 103979 afb1226344cbf2978631791c7a3fa394 echo c - squashfs-tools/files mkdir -p squashfs-tools/files > /dev/null 2>&1 echo x - squashfs-tools/files/patch-squashfs-tools_pseudo.c sed 's/^X//' >squashfs-tools/files/patch-squashfs-tools_pseudo.c << '39828bbd00e540dddff52058a2f02d06' X X$FreeBSD$ X X--- squashfs-tools/pseudo.c.orig X+++ squashfs-tools/pseudo.c X@@ -31,6 +31,10 @@ X #include <stdlib.h> X #include <sys/types.h> X X+#ifdef __FreeBSD__ X+#include <sys/stat.h> X+#endif X+ X #include "pseudo.h" X X #ifdef SQUASHFS_TRACE 39828bbd00e540dddff52058a2f02d06 echo x - squashfs-tools/files/patch-squashfs-tools_unsquashfs.c sed 's/^X//' >squashfs-tools/files/patch-squashfs-tools_unsquashfs.c << 'aecb59117f25b0dc9d3b206cf5c87b0d' X X$FreeBSD$ X X--- squashfs-tools/unsquashfs.c.orig X+++ squashfs-tools/unsquashfs.c X@@ -26,6 +26,10 @@ X #include "squashfs_compat.h" X #include "read_fs.h" X X+#ifdef __FreeBSD__ X+#include <sys/sysctl.h> X+#endif X+ X struct cache *fragment_cache, *data_cache; X struct queue *to_reader, *to_deflate, *to_writer, *from_writer; X pthread_t *thread, *deflator_thread; aecb59117f25b0dc9d3b206cf5c87b0d echo x - squashfs-tools/files/patch-squashfs-tools_Makefile sed 's/^X//' >squashfs-tools/files/patch-squashfs-tools_Makefile << 'bcbd4a922864729693ecc9535983af62' X X$FreeBSD$ X X--- squashfs-tools/Makefile.orig X+++ squashfs-tools/Makefile X@@ -1,8 +1,8 @@ X-INSTALL_DIR = /usr/local/bin X+INSTALL_DIR = %%PREFIX%%/bin X X INCLUDEDIR = . X X-CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2 X+CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2 -DFNM_EXTMATCH=0 X X all: mksquashfs unsquashfs X bcbd4a922864729693ecc9535983af62 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100421113926.4C79A50FCB>