wok-next annotate tazpanel/receipt @ rev 19900

gtk-recordmydesktop: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 12 11:41:25 2017 +0200 (2017-10-12)
parents 266eb7ab8b5a
children 71a9af106745
rev   line source
pankso@9632 1 # SliTaz package receipt.
pankso@9632 2
pankso@9632 3 PACKAGE="tazpanel"
al@19826 4 VERSION="613"
pankso@9632 5 CATEGORY="system-tools"
pankso@9632 6 SHORT_DESC="SliTaz administration and configuration panel."
pankso@9632 7 MAINTAINER="pankso@slitaz.org"
pascal@15022 8 LICENSE="BSD"
pankso@9632 9 WEB_SITE="http://www.slitaz.org/"
al@19588 10 HOST_ARCH="i486 arm"
pascal@10343 11 CONFIG_FILES="/etc/slitaz/tazpanel.conf /etc/slitaz/httpd.conf"
al@19588 12 SUGGESTED="tazinst-gui tazinst"
pankso@9632 13
al@19588 14 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19588 15 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.bz2"
al@19588 16
al@18903 17 DEPENDS="busybox gettext-base sundown"
al@18690 18 BUILD_DEPENDS="gettext jsmin tidy-html5"
al@19588 19 SIBLINGS="tazpanel-extra"
pankso@9632 20
pankso@9632 21 # Rules to configure and make the package.
pankso@9632 22 compile_rules()
pankso@9632 23 {
pascal@17427 24 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
pankso@9632 25 }
pankso@9632 26
pankso@9632 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@9632 28 genpkg_rules()
pankso@9632 29 {
pankso@9632 30 mkdir -p $fs/etc/init.d
pankso@10842 31 cp -a $install/* $fs
pankso@9632 32 # Init script use tazpanel cmdline
pankso@9632 33 cd $fs/etc/init.d && ln -s ../../usr/bin/tazpanel .
pankso@9632 34 }
pascal@11360 35
pascal@11360 36 # Pre and post install commands for Tazpkg.
pascal@11360 37 post_install()
pascal@11360 38 {
pascal@18730 39 rm -f "$1"/var/cache/tazpanel/* 2> /dev/null
pascal@18730 40 grep -qs tazpanel "$1"/etc/hosts ||
pascal@18730 41 sed -i 's/^127.0.0.1.*/& tazpanel/' "$1"/etc/hosts
al@17910 42
al@17977 43 # Do we need TazPanel restart? It freezes when updating using web interface.
al@17977 44 #[ -z "$1" ] && tazpanel restart
pascal@11360 45 }