# openclip/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The source tarball used by this package has been renamed. #--------------------------------------------------------------------- 2. This package installs a local version of the Open ClipArt collec- # tion. #--------------------------------------------------------------------- 3. The clipart files are stored in a single XZM file located in the directory "/static/xzm/". The XZM-file name (excluding path) is "openclipdata.xzm". #--------------------------------------------------------------------- 3. CROMFS is a possible alternative to XZM (and has been used in the past). However, XZM is probably a better choice. Some related pros and cons: CROMFS offers good compression, but XZM (with a block size of one meg- abyte) is comparable in many cases. XZM also seems to be much faster at decompression time. Additionally, if the kernel is configured cor- rectly, XZM is supported directly; CROMFS filesystems need to be mounted by a special utility (cromfs-driver). Both filesystems can be mounted using loopback inside a higher-level loopback filesystem; this simplifies things in a LiveDistro con- text. #--------------------------------------------------------------------- [buildtimes] 00.02 hours (or 001.20 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.04 hours (or 002.10 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 01.58 hours (or 094.80 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] configure = none depends = squashfs-tools license = Public Domain setup = boot revision = 230305 tmpsize = 1408M unpack = relaxed #--------------------------------------------------------------------- [build] MNTDIR=/mnt/openclipdata XZMDIR=/static/xzm XZMBASE=openclipdata.xzm XZMPATH=$XZMDIR/$XZMBASE touch $PKGDIR_PROD/placeholder.txt umount $MNTDIR 2> /dev/null || true umount $XZMPATH 2> /dev/null || true rm -fr $MNTDIR mkdir -p $MNTDIR mkdir -p $XZMDIR rm -fr $XZMPATH mksquashfs . $XZMPATH -b 1048576 tardate $XZMPATH || true mkdir -p $DESKWRAP cd $PKGDIR_SPECIAL/wrappers for x in wrap-*-bin.in wrap-*-doc.in do if [ -f "$x" ]; then dest=$DESKWRAP/`echo $x | sed 's|\.in$||'` sed -e "s|__META_LOOPFILE__|$XZMPATH|g" \ -e "s|__META_MNTDIR__|$MNTDIR|g" \ < $x > $dest chmod 755 $dest fi done #--------------------------------------------------------------------- [setup.boot] if [ -d $PRODTREE/openclip ]; then MNTDIR=/mnt/openclipdata mkdir -p $MNTDIR umount -l $MNTDIR >& /dev/null chmod 777 $MNTDIR xzm-boot-setup openclipdata $MNTDIR fi #--------------------------------------------------------------------- [urls] url_debian = n/a url_home = n/a url_lfs = n/a url_tarball = n/a #--------------------------------------------------------------------- [history] 230305 Updated from 090217 to 230305