# HG changeset patch # User Pascal Bellard # Date 1219316426 0 # Node ID 755c0e3c3a5318ff0e64aa5357dd6a551f2ec4d3 # Parent 710881595f59d4b5ffde36a6dc9888600aad4ac6 Add slitaz-loram-http diff -r 710881595f59 -r 755c0e3c3a53 slitaz-loram-http/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/slitaz-loram-http/receipt Thu Aug 21 11:00:26 2008 +0000 @@ -0,0 +1,126 @@ +# SliTaz package receipt. + +PACKAGE="slitaz-loram-http" +VERSION="1.0" +CATEGORY="misc" +SHORT_DESC="Rules to build low ram system using http." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://www.slitaz.org/" +DEPENDS="httpfs-fuse funionfs" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/etc/tazlito + cp stuff/loram.* $fs/etc/tazlito +} + +set_patch() +{ + local tag + local line + local i + tag="Handle kernel cmdline parameter config" + i=$(grep -n "$tag" $1/etc/init.d/rcS | cut -d: -f1) + i=$(($i-1)) + tag=$(grep "$tag" $1/etc/init.d/rcS) + if [ "$2" = "-R" ]; then + line="-$(($i-50)),52 +$(($i-50)),2" + i="-" + else + grep -q 'from slitaz-loram-http package' $1/etc/init.d/rcS && return + line="-$i,2 +$i,52" + i="+" + fi + patch -p0 < /dev/null); do + [ "$i" = "$PACKAGE" ] && continue + yes y | tazpkg remove $i + . /etc/tazlito/tazlito.conf + rm -f $PACKAGES_REPOSITORY/slitaz-boot-scripts-*.tazpkg 2> /dev/null + done +} + +post_install() +{ + set_patch "$1" + if [ ! -x $1/bin/funionfs ]; then + cat <