# HG changeset patch # User Pascal Bellard # Date 1203175137 -3600 # Node ID f96f999ca4331179b1bd6343712fca576f3a52a0 # Parent 92615b1ee474e20f0510bd45527a7eaff0e79d6f Add: slitaz-loram diff -r 92615b1ee474 -r f96f999ca433 slitaz-loram/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/slitaz-loram/receipt Sat Feb 16 16:18:57 2008 +0100 @@ -0,0 +1,45 @@ +# SliTaz package receipt. + +PACKAGE="slitaz-loram" +VERSION="1.0" +CATEGORY="misc" +SHORT_DESC="Rules to build low ram rootfs.gz." +MAINTAINER="pascal.bellard@slitaz.org" +DEPENDS="squashfs" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/etc/tazlito + cat > $fs/etc/tazlito/loram.rootfs << EOF +mksquashfs usr .usr.sqfs && rm -rf usr/* && COMPRESSION="none" +EOF +} + +get_patch() +{ + cat <, to source a +EOF +} + +# Pre and post install commands for Tazpkg. +post_install() +{ + get_patch | patch -p0 +} + +# Pre remove commands for Tazpkg. +pre_remove() +{ + get_patch | patch -R -p0 +}