wok-next view tazpanel/receipt @ rev 20869
mono: fix build on 32-bit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 02 10:15:48 2018 +0300 (2018-07-02) |
parents | 71a9af106745 |
children | cd7906120828 |
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.bz2"
14 BUILD_DEPENDS="gettext jsmin tidy-html5"
15 SPLIT="tazpanel tazpanel-extra:extra"
17 compile_rules() {
18 case $SET in
19 '')
20 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
21 mkdir -p $install/etc/init.d
22 # Init script use tazpanel cmdline
23 ln -s ../../usr/bin/tazpanel $install/etc/init.d/tazpanel
24 ;;
25 extra)
26 make && make DESTDIR=$DESTDIR VERSION=$VERSION install_extra
27 ;;
28 esac
29 }
31 genpkg_rules() {
32 copy @std *.mo
33 case $PACKAGE in
34 tazpanel)
35 DEPENDS="busybox gettext-base sundown"
36 CONFIG_FILES="/etc/slitaz/tazpanel.conf /etc/slitaz/httpd.conf"
37 SUGGESTED="tazinst-gui tazinst"
38 ;;
39 tazpanel-extra)
40 CAT="system-tools|extra modules"
41 DEPENDS="tazpanel"
42 ;;
43 esac
44 }
46 post_install_tazpanel() {
47 rm -f "$1"/var/cache/tazpanel/* 2>/dev/null
48 grep -qs tazpanel "$1"/etc/hosts ||
49 sed -i 's/^127.0.0.1.*/& tazpanel/' "$1"/etc/hosts
51 # Do we need TazPanel restart? It freezes when updating using web interface.
52 #[ -z "$1" ] && tazpanel restart
53 }
55 post_install_tazpanel_extra() {
56 rm -f "$1"/var/cache/tazpanel/* 2>/dev/null || true
57 }