wok annotate slitaz-configs/receipt @ rev 274

Readd slitaz-configs (You was right Pascal)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Feb 25 15:57:18 2008 +0100 (2008-02-25)
parents
children 508b841c38f4
rev   line source
pankso@274 1 # SliTaz package receipt.
pankso@274 2
pankso@274 3 PACKAGE="slitaz-configs"
pankso@274 4 VERSION="1.0"
pankso@274 5 CATEGORY="base-system"
pankso@274 6 SHORT_DESC="SliTaz JWM config, wallparers and sounds."
pankso@274 7 MAINTAINER="pankso@slitaz.org"
pankso@274 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@274 9 WEB_SITE="http://www.slitaz.org/"
pankso@274 10 WGET_URL="http://download.tuxfamily.org/slitaz/sources/base-files/$TARBALL"
pankso@274 11
pankso@274 12 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@274 13 genpkg_rules()
pankso@274 14 {
pankso@274 15 # Copy all rootfs from the stuff and set permissions.
pankso@274 16 cp -a $src/rootfs/* $fs
pankso@274 17 chown -R root.root $fs/*
pankso@274 18 }
pankso@274 19
pankso@274 20 # Pre and post install to backup all /etc/settings
pankso@274 21 #
pankso@274 22 pre_install()
pankso@274 23 {
pankso@274 24 local root
pankso@274 25 root=$1
pankso@274 26 echo ""
pankso@274 27 echo "Creating backup of JWM system configuration..."
pankso@274 28 cp -a $root/etc/jwm/system.jwmrc $root/etc/jwm/system.jwmrc.bak 2>/dev/null
pankso@274 29 echo ""
pankso@274 30 }