# HG changeset patch # User Pascal Bellard # Date 1204933208 -3600 # Node ID 3f5d11d71f9e0c43ffd4d2be59c1ef2efb746cbb # Parent c678d87787b255e0ea09f2a065c84d208a8e6f88 Add: cromfs diff -r c678d87787b2 -r 3f5d11d71f9e cromfs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cromfs/receipt Sat Mar 08 00:40:08 2008 +0100 @@ -0,0 +1,32 @@ +# SliTaz package receipt. + +PACKAGE="cromfs" +VERSION="1.5.4" +CATEGORY="system-tools" +SHORT_DESC="Compressed read only filesystem implemented with FUSE." +MAINTAINER="pascal.bellard@slitaz.org" +BUILD_DEPENDS="fuse-dev" +DEPENDS="fuse lzma" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://bisqwit.iki.fi/source/cromts.html" +WGET_URL="http://bisqwit.iki.fi/src/arch/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + patch -p1 < ../stuff/FBLOCK_CACHE_MAX_SIZE.u + patch -p1 < ../stuff/openmp.u + chmod +x configure + ./configure --prefix=/usr $CONFIGURE_ARGS + make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/bin + cp $src/install/progs/mkcromfs $fs/usr/bin + cp $src/install/progs/cromfs-driver-static $fs/bin/cromfs-driver + cp $src/install/progs/unmkcromfs $fs/bin +} diff -r c678d87787b2 -r 3f5d11d71f9e cromfs/stuff/FBLOCK_CACHE_MAX_SIZE.u --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cromfs/stuff/FBLOCK_CACHE_MAX_SIZE.u Sat Mar 08 00:40:08 2008 +0100 @@ -0,0 +1,7 @@ +--- cromfs-1.5.4/cromfs.cc ++++ cromfs-1.5.4/cromfs.cc +@@ -51,3 +51,3 @@ + unsigned READDIR_CACHE_MAX_SIZE = 5; +-unsigned FBLOCK_CACHE_MAX_SIZE = 10; ++unsigned FBLOCK_CACHE_MAX_SIZE = 4; + diff -r c678d87787b2 -r 3f5d11d71f9e cromfs/stuff/openmp.u --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cromfs/stuff/openmp.u Sat Mar 08 00:40:08 2008 +0100 @@ -0,0 +1,8 @@ +--- cromfs-1.5.4/configure ++++ cromfs-1.5.4/configure +@@ -79,4 +79,3 @@ + +-do_echo -n "Checking if your compiler supports -fopenmp... " +-if cc_check '' '-fopenmp' 'int x,y[100];for(x=0; x<100;++x)y[x]=5;'; then ++if false; then + do_echo Yes