wok annotate tazpanel/receipt @ rev 24010
created recipes for diffuse and diffuse-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jan 30 17:26:17 2021 +0100 (2021-01-30) |
parents | c34ef09acb7c |
children | 7e911016a644 |
rev | line source |
---|---|
pankso@9632 | 1 # SliTaz package receipt. |
pankso@9632 | 2 |
pankso@9632 | 3 PACKAGE="tazpanel" |
pascal@23956 | 4 VERSION="636" |
pankso@9632 | 5 CATEGORY="system-tools" |
pankso@9632 | 6 SHORT_DESC="SliTaz administration and configuration panel." |
pankso@9632 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15022 | 8 LICENSE="BSD" |
Hans-G?nter@21131 | 9 WEB_SITE="http://www.slitaz.org/" |
Hans-G?nter@21131 | 10 |
pankso@9632 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Christian@12110 | 12 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.gz" |
pascal@10343 | 13 CONFIG_FILES="/etc/slitaz/tazpanel.conf /etc/slitaz/httpd.conf" |
pankso@9632 | 14 |
pankso@16040 | 15 SUGGESTED="tazinst-gui tazinst" |
Hans-G?nter@21131 | 16 DEPENDS="busybox gettext-base libjpeg sundown" |
al@18690 | 17 BUILD_DEPENDS="gettext jsmin tidy-html5" |
al@19617 | 18 SIBLINGS="tazpanel-extra" |
Hans-G?nter@21131 | 19 HOST_ARCH="i486 arm" |
pankso@9632 | 20 |
pankso@9632 | 21 # Rules to configure and make the package. |
pankso@9632 | 22 compile_rules() |
pankso@9632 | 23 { |
Hans-G?nter@21131 | 24 make -j 1 && |
Hans-G?nter@21131 | 25 make DESTDIR=$DESTDIR VERSION=$VERSION install |
pankso@9632 | 26 } |
pankso@9632 | 27 |
pankso@9632 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9632 | 29 genpkg_rules() |
pankso@9632 | 30 { |
pankso@9632 | 31 mkdir -p $fs/etc/init.d |
pankso@10842 | 32 cp -a $install/* $fs |
Hans-G?nter@21131 | 33 |
pankso@9632 | 34 # Init script use tazpanel cmdline |
pankso@9632 | 35 cd $fs/etc/init.d && ln -s ../../usr/bin/tazpanel . |
pankso@9632 | 36 } |
pascal@11360 | 37 |
pascal@11360 | 38 # Pre and post install commands for Tazpkg. |
pascal@11360 | 39 post_install() |
pascal@11360 | 40 { |
pascal@18730 | 41 rm -f "$1"/var/cache/tazpanel/* 2> /dev/null |
pascal@18730 | 42 grep -qs tazpanel "$1"/etc/hosts || |
pascal@18730 | 43 sed -i 's/^127.0.0.1.*/& tazpanel/' "$1"/etc/hosts |
al@17910 | 44 |
al@17977 | 45 # Do we need TazPanel restart? It freezes when updating using web interface. |
al@17977 | 46 #[ -z "$1" ] && tazpanel restart |
pascal@11360 | 47 } |