wok-next view tazpanel/receipt @ rev 21469

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