wok-6.x view tazpanel/receipt @ rev 19488
Update SliTaz projects: slitaz-base-files (312), slitaz-configs (295), slitaz-doc (158), slitaz-tools (1004), tazinst (83), tazlito (439), tazpanel (606), tazpkg (927), tazusb (192), tazweb (172).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 12 13:09:26 2016 +0200 (2016-11-12) |
parents | dd299a20bd7b |
children | 8cb6d25ac28c |
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpanel"
4 VERSION="606"
5 CATEGORY="system-tools"
6 SHORT_DESC="SliTaz administration and configuration panel."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.slitaz.org/"
11 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.gz"
12 CONFIG_FILES="/etc/slitaz/tazpanel.conf /etc/slitaz/httpd.conf"
13 HOST_ARCH="i486 arm"
14 SIBLINGS="tazpanel-extra"
16 SUGGESTED="tazinst-gui tazinst"
17 DEPENDS="busybox gettext-base sundown"
18 BUILD_DEPENDS="gettext jsmin tidy-html5"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/etc/init.d
30 cp -a $install/* $fs
31 # Init script use tazpanel cmdline
32 cd $fs/etc/init.d && ln -s ../../usr/bin/tazpanel .
33 }
35 # Pre and post install commands for Tazpkg.
36 post_install()
37 {
38 rm -f "$1"/var/cache/tazpanel/* 2> /dev/null
39 grep -qs tazpanel "$1"/etc/hosts ||
40 sed -i 's/^127.0.0.1.*/& tazpanel/' "$1"/etc/hosts
42 # Do we need TazPanel restart? It freezes when updating using web interface.
43 #[ -z "$1" ] && tazpanel restart
44 }