wok-6.x annotate tazpanel/receipt @ rev 19601
Up: menu-cache (1.0.2)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Mon Jan 02 18:32:13 2017 +0000 (2017-01-02) |
parents | 8cb6d25ac28c |
children | d5add2d69322 |
rev | line source |
---|---|
pankso@9632 | 1 # SliTaz package receipt. |
pankso@9632 | 2 |
pankso@9632 | 3 PACKAGE="tazpanel" |
al@19507 | 4 VERSION="609" |
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 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@9632 | 10 WEB_SITE="http://www.slitaz.org/" |
Christian@12110 | 11 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.gz" |
pascal@10343 | 12 CONFIG_FILES="/etc/slitaz/tazpanel.conf /etc/slitaz/httpd.conf" |
pankso@16037 | 13 HOST_ARCH="i486 arm" |
al@19412 | 14 SIBLINGS="tazpanel-extra" |
pankso@9632 | 15 |
pankso@16040 | 16 SUGGESTED="tazinst-gui tazinst" |
al@18903 | 17 DEPENDS="busybox gettext-base sundown" |
al@18690 | 18 BUILD_DEPENDS="gettext jsmin tidy-html5" |
pankso@9632 | 19 |
pankso@9632 | 20 # Rules to configure and make the package. |
pankso@9632 | 21 compile_rules() |
pankso@9632 | 22 { |
pascal@17427 | 23 make && make DESTDIR=$DESTDIR VERSION=$VERSION install |
pankso@9632 | 24 } |
pankso@9632 | 25 |
pankso@9632 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9632 | 27 genpkg_rules() |
pankso@9632 | 28 { |
pankso@9632 | 29 mkdir -p $fs/etc/init.d |
pankso@10842 | 30 cp -a $install/* $fs |
pankso@9632 | 31 # Init script use tazpanel cmdline |
pankso@9632 | 32 cd $fs/etc/init.d && ln -s ../../usr/bin/tazpanel . |
pankso@9632 | 33 } |
pascal@11360 | 34 |
pascal@11360 | 35 # Pre and post install commands for Tazpkg. |
pascal@11360 | 36 post_install() |
pascal@11360 | 37 { |
pascal@18730 | 38 rm -f "$1"/var/cache/tazpanel/* 2> /dev/null |
pascal@18730 | 39 grep -qs tazpanel "$1"/etc/hosts || |
pascal@18730 | 40 sed -i 's/^127.0.0.1.*/& tazpanel/' "$1"/etc/hosts |
al@17910 | 41 |
al@17977 | 42 # Do we need TazPanel restart? It freezes when updating using web interface. |
al@17977 | 43 #[ -z "$1" ] && tazpanel restart |
pascal@11360 | 44 } |