wok-next view tazpanel/receipt @ rev 20066

qtwebkit : up compile_rules
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Oct 24 16:18:07 2017 +0200 (2017-10-24)
parents 266eb7ab8b5a
children 71a9af106745
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpanel"
4 VERSION="613"
5 CATEGORY="system-tools"
6 SHORT_DESC="SliTaz administration and configuration panel."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://www.slitaz.org/"
10 HOST_ARCH="i486 arm"
11 CONFIG_FILES="/etc/slitaz/tazpanel.conf /etc/slitaz/httpd.conf"
12 SUGGESTED="tazinst-gui tazinst"
14 TARBALL="$PACKAGE-$VERSION.tar.bz2"
15 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.bz2"
17 DEPENDS="busybox gettext-base sundown"
18 BUILD_DEPENDS="gettext jsmin tidy-html5"
19 SIBLINGS="tazpanel-extra"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/etc/init.d
31 cp -a $install/* $fs
32 # Init script use tazpanel cmdline
33 cd $fs/etc/init.d && ln -s ../../usr/bin/tazpanel .
34 }
36 # Pre and post install commands for Tazpkg.
37 post_install()
38 {
39 rm -f "$1"/var/cache/tazpanel/* 2> /dev/null
40 grep -qs tazpanel "$1"/etc/hosts ||
41 sed -i 's/^127.0.0.1.*/& tazpanel/' "$1"/etc/hosts
43 # Do we need TazPanel restart? It freezes when updating using web interface.
44 #[ -z "$1" ] && tazpanel restart
45 }