wok-current annotate tazpanel-theme-sandfive/receipt @ rev 17734
dahdi-linux: save firmware as source
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 06 11:23:56 2015 +0100 (2015-03-06) |
parents | |
children | 9e01bc6321ea |
rev | line source |
---|---|
al@16784 | 1 # SliTaz package receipt. |
al@16784 | 2 |
al@16784 | 3 PACKAGE="tazpanel-theme-sandfive" |
al@16784 | 4 VERSION="1.0" |
al@16784 | 5 CATEGORY="misc" |
al@16784 | 6 SHORT_DESC="SliTaz Sand Five theme for TazPanel" |
al@16784 | 7 MAINTAINER="holkfoor@gmail.com" |
al@16784 | 8 LICENSE="PublicDomain" |
al@16784 | 9 WEB_SITE="http://www.slitaz.org/" |
al@16784 | 10 |
al@16784 | 11 DEPENDS="tazpanel" |
al@16784 | 12 |
al@16784 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16784 | 14 genpkg_rules() |
al@16784 | 15 { |
al@16784 | 16 mkdir -p $fs/var/www/tazpanel/styles/sandfive |
al@16784 | 17 cp -a stuff/* $fs/var/www/tazpanel/styles/sandfive |
al@16784 | 18 |
al@16784 | 19 # link absent files with default theme |
al@16784 | 20 cd $fs/var/www/tazpanel/styles/sandfive |
al@16784 | 21 for i in favicon.ico footer.html header.html images; do |
al@16784 | 22 ln -s ../default/$i $i |
al@16784 | 23 done |
al@16784 | 24 } |
al@16784 | 25 |
al@16784 | 26 # Pre and post install commands for Tazpkg. |
al@16784 | 27 post_install() |
al@16784 | 28 { |
al@16784 | 29 sed -i 's|STYLE=".*"|STYLE="sandfive"|' $1/etc/slitaz/tazpanel.conf |
al@16784 | 30 } |
al@16784 | 31 |
al@16784 | 32 pre_remove() |
al@16784 | 33 { |
al@16784 | 34 sed -i 's|STYLE=".*"|STYLE="default"|' $1/etc/slitaz/tazpanel.conf |
al@16784 | 35 } |