wok-next view tazpanel/receipt @ rev 20413
linux: add /proc/config.gz, /sbin/tazhw needs it
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 07 17:52:41 2018 +0100 (2018-01-07) |
parents | 35faee9ea669 |
children | c4e53a39395a |
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 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.bz2"
15 BUILD_DEPENDS="gettext jsmin tidy-html5"
16 SPLIT="tazpanel tazpanel-extra:extra"
18 compile_rules() {
19 case $SET in
20 '')
21 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
22 mkdir -p $install/etc/init.d
23 # Init script use tazpanel cmdline
24 ln -s ../../usr/bin/tazpanel $install/etc/init.d/tazpanel
25 ;;
26 extra)
27 make && make DESTDIR=$DESTDIR VERSION=$VERSION install_extra
28 ;;
29 esac
30 }
32 genpkg_rules() {
33 copy @std *.mo
34 case $PACKAGE in
35 tazpanel)
36 DEPENDS="busybox gettext-base sundown"
37 CONFIG_FILES="/etc/slitaz/tazpanel.conf /etc/slitaz/httpd.conf"
38 SUGGESTED="tazinst-gui tazinst"
39 ;;
40 tazpanel-extra)
41 CAT="system-tools|extra modules"
42 DEPENDS="tazpanel"
43 ;;
44 esac
45 }
47 post_install_tazpanel() {
48 rm -f "$1"/var/cache/tazpanel/* 2>/dev/null
49 grep -qs tazpanel "$1"/etc/hosts ||
50 sed -i 's/^127.0.0.1.*/& tazpanel/' "$1"/etc/hosts
52 # Do we need TazPanel restart? It freezes when updating using web interface.
53 #[ -z "$1" ] && tazpanel restart
54 }
56 post_install_tazpanel_extra() {
57 rm -f "$1"/var/cache/tazpanel/* 2>/dev/null || true
58 }