wok-next view tazpanel/receipt @ rev 20931
pygobject3 -> python-pygobject (latest); pygobject -> python-pygobject2 (legacy)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Aug 23 08:03:04 2018 +0300 (2018-08-23) |
parents | c4e53a39395a |
children | d5aab818505e |
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 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 }