wok-next annotate tazpanel/receipt @ rev 21648
updated fetchmail (6.3.26 -> 6.4.8)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 26 17:32:09 2020 +0100 (2020-06-26) |
parents | cd7906120828 |
children |
rev | line source |
---|---|
al@20408 | 1 # SliTaz package receipt v2. |
pankso@9632 | 2 |
pankso@9632 | 3 PACKAGE="tazpanel" |
al@20408 | 4 VERSION="622" |
pankso@9632 | 5 CATEGORY="system-tools" |
al@20408 | 6 SHORT_DESC="SliTaz administration and configuration panel" |
al@20408 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15022 | 8 LICENSE="BSD" |
pankso@9632 | 9 WEB_SITE="http://www.slitaz.org/" |
al@20888 | 10 REPOLOGY="-" |
pankso@9632 | 11 |
al@19588 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19588 | 13 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.bz2" |
al@19588 | 14 |
al@21020 | 15 BUILD_DEPENDS="gettext-dev jsmin tidy-html5" |
al@21020 | 16 SPLIT="$PACKAGE-extra:extra" |
pankso@9632 | 17 |
al@20408 | 18 compile_rules() { |
al@20408 | 19 case $SET in |
al@20408 | 20 '') |
al@21020 | 21 make && |
al@21020 | 22 make DESTDIR=$install VERSION=$VERSION install || return 1 |
al@21020 | 23 |
al@20408 | 24 mkdir -p $install/etc/init.d |
al@20408 | 25 # Init script use tazpanel cmdline |
al@20408 | 26 ln -s ../../usr/bin/tazpanel $install/etc/init.d/tazpanel |
al@20408 | 27 ;; |
al@20408 | 28 extra) |
al@21020 | 29 make && |
al@21020 | 30 make DESTDIR=$install VERSION=$VERSION install_extra |
al@20408 | 31 ;; |
al@20408 | 32 esac |
pankso@9632 | 33 } |
pankso@9632 | 34 |
al@20408 | 35 genpkg_rules() { |
al@20408 | 36 copy @std *.mo |
al@20408 | 37 case $PACKAGE in |
al@20408 | 38 tazpanel) |
al@20408 | 39 DEPENDS="busybox gettext-base sundown" |
al@20408 | 40 CONFIG_FILES="/etc/slitaz/tazpanel.conf /etc/slitaz/httpd.conf" |
al@20408 | 41 SUGGESTED="tazinst-gui tazinst" |
al@20408 | 42 ;; |
al@20408 | 43 tazpanel-extra) |
al@20408 | 44 CAT="system-tools|extra modules" |
al@20408 | 45 DEPENDS="tazpanel" |
al@20408 | 46 ;; |
al@20408 | 47 esac |
pankso@9632 | 48 } |
pascal@11360 | 49 |
al@20408 | 50 post_install_tazpanel() { |
al@20408 | 51 rm -f "$1"/var/cache/tazpanel/* 2>/dev/null |
pascal@18730 | 52 grep -qs tazpanel "$1"/etc/hosts || |
pascal@18730 | 53 sed -i 's/^127.0.0.1.*/& tazpanel/' "$1"/etc/hosts |
al@17910 | 54 |
al@17977 | 55 # Do we need TazPanel restart? It freezes when updating using web interface. |
al@17977 | 56 #[ -z "$1" ] && tazpanel restart |
pascal@11360 | 57 } |
al@20408 | 58 |
al@20408 | 59 post_install_tazpanel_extra() { |
al@20408 | 60 rm -f "$1"/var/cache/tazpanel/* 2>/dev/null || true |
al@20408 | 61 } |